Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ json = ["serde_json"]
safe-shared-libraries = ["findshlibs"]

[dependencies]
ipc-channel = "0.18.2"
ipc-channel = "0.19.0"
serde = { version = "1.0.104", features = ["derive"] }
backtrace = { version = "0.3.73", optional = true, features = ["serde"] }
libc = "0.2.66"
Expand All @@ -35,7 +35,7 @@ findshlibs = { version = "0.10.2", optional = true }
small_ctor = { version = "0.1.2", optional = true }

[target."cfg(windows)".dependencies]
windows-sys = { version = "0.48.0", features = ["Win32_System_Threading"] }
windows-sys = { version = "0.59.0", features = ["Win32_Foundation", "Win32_System_Threading"] }

[[example]]
name = "panic"
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,3 @@ pub use self::core::{assert_spawn_is_safe, init, ProcConfig};
pub use self::error::{Location, PanicInfo, SpawnError};
pub use self::pool::{Pool, PoolBuilder};
pub use self::proc::{spawn, Builder, JoinHandle};

#[cfg(feature = "async")]
pub use self::asyncsupport::{spawn_async, AsyncJoinHandle};
2 changes: 2 additions & 0 deletions src/panic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ pub fn take_panic(panic: &dyn Any) -> PanicInfo {
.unwrap_or_else(move || serialize_panic(panic))
}

// PanicInfo is replaced by PanicHookInfo in 1.81 and deprecated in 1.82, but MSRV is 1.70
#[allow(deprecated)]
pub fn panic_handler(info: &panic::PanicInfo<'_>, capture_backtraces: BacktraceCapture) {
PANIC_INFO.with(|pi| {
#[allow(unused_mut)]
Expand Down
2 changes: 1 addition & 1 deletion src/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ impl fmt::Debug for Shmem {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
struct ByteRepr<'a>(&'a Shmem);

impl<'a> fmt::Debug for ByteRepr<'a> {
impl fmt::Debug for ByteRepr<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "b\"")?;
for &byte in self.0.as_bytes() {
Expand Down