[package]
edition = "2021"
rust-version = "1.75"
name = "interprocess"
version = "2.3.1"
authors = ["Goat"]
build = false
exclude = [
"/.github/",
"/.gitignore",
"/.editorconfig",
"/Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Interprocess communication toolkit"
readme = "README.md"
keywords = [
"ipc",
"pipe",
]
categories = [
"os",
"os::unix-apis",
"os::windows-apis",
"asynchronous",
]
license = "0BSD"
repository = "https://github.com/kotauskas/interprocess"
[package.metadata.docs.rs]
features = [
"doc_cfg",
"tokio",
]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
"x86_64-unknown-freebsd",
]
[features]
async = ["futures-core"]
default = []
doc_cfg = []
tokio = [
"dep:tokio",
"async",
]
[lib]
name = "interprocess"
path = "src/lib.rs"
[[bin]]
name = "inspect-platform"
path = "inspect-platform/main.rs"
test = false
[[example]]
name = "unnamed_pipe_sync"
path = "examples/unnamed_pipe/sync/main.rs"
[[example]]
name = "unnamed_pipe_tokio"
path = "examples/unnamed_pipe/tokio/main.rs"
[[example]]
name = "local_socket_sync_server"
path = "examples/local_socket/sync/listener.rs"
[[example]]
name = "local_socket_sync_client"
path = "examples/local_socket/sync/stream.rs"
[[example]]
name = "local_socket_tokio_server"
path = "examples/local_socket/tokio/listener.rs"
[[example]]
name = "local_socket_tokio_client"
path = "examples/local_socket/tokio/stream.rs"
[[example]]
name = "named_pipe_sync_server"
path = "examples/named_pipe/sync/listener.rs"
[[example]]
name = "named_pipe_sync_client_bytes"
path = "examples/named_pipe/sync/stream/bytes.rs"
[[example]]
name = "named_pipe_sync_client_msg"
path = "examples/named_pipe/sync/stream/msg.rs"
[[example]]
name = "named_pipe_tokio_server"
path = "examples/named_pipe/tokio/listener.rs"
[[example]]
name = "named_pipe_tokio_client_bytes"
path = "examples/named_pipe/tokio/stream/bytes.rs"
[[example]]
name = "named_pipe_tokio_client_msg"
path = "examples/named_pipe/tokio/stream/msg.rs"
[dependencies.doctest-file]
version = "1.0.0"
[dependencies.futures-core]
version = "0.3.28"
optional = true
[dependencies.tokio]
version = "1.36.0"
features = [
"sync",
"rt",
"net",
"time",
"io-util",
"macros",
]
optional = true
[dev-dependencies.color-eyre]
version = "0.6.2"
[dev-dependencies.tokio]
version = "1.36.0"
features = [
"sync",
"rt-multi-thread",
"fs",
"net",
"time",
"io-util",
"macros",
]
[target."cfg(unix)".dependencies.libc]
version = "0.2.137"
features = ["extra_traits"]
[target."cfg(windows)".dependencies.recvmsg]
version = "1.0.0"
[target."cfg(windows)".dependencies.tokio]
version = "1.36.0"
features = [
"sync",
"rt",
"fs",
"time",
"io-util",
]
optional = true
[target."cfg(windows)".dependencies.widestring]
version = "1.0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.52.0"
features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_Pipes",
"Win32_System_Threading",
"Win32_System_Memory",
"Win32_System_SystemServices",
"Win32_System_LibraryLoader",
]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "deny"
cast_sign_loss = "warn"
dbg_macro = "warn"
exit = "deny"
fn_to_numeric_cast_any = "deny"
get_unwrap = "deny"
option_map_unit_fn = "allow"
ptr_as_ptr = "forbid"
unnecessary_cast = "allow"
[lints.rust]
dead_code = "allow"
unsafe_op_in_unsafe_fn = "forbid"
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1