[dependencies.libc]
version = "0.2.178"
[dependencies.rustix]
features = ["event", "pipe"]
optional = true
version = "1.1"
[dependencies.socket2]
features = ["all"]
version = "0.6.1"
[dependencies.tokio]
features = ["net", "time"]
version = "1.48"
[dependencies.tokio-splice2]
optional = true
version = "0.3.2"
[dependencies.uni-addr]
default-features = false
features = ["feat-tokio", "feat-socket2"]
version = "0.3.7"
[dependencies.wrapper-lite]
version = "0.4.0"
[dev-dependencies.network-interface]
version = "2.0.3"
[dev-dependencies.rstest]
default-features = false
version = "0.26.1"
[dev-dependencies.tokio]
features = ["io-util", "macros", "rt-multi-thread"]
version = "1.48"
[[example]]
name = "proxy"
path = "examples/proxy.rs"
[features]
default = []
splice = ["dep:rustix"]
splice-legacy = ["dep:tokio-splice2"]
[lib]
name = "uni_socket"
path = "src/lib.rs"
[lints.clippy]
allow_attributes_without_reason = "warn"
assertions_on_result_states = "warn"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
cognitive_complexity = "warn"
create_dir = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
default_trait_access = "warn"
disallowed_script_idents = "deny"
doc_link_with_quotes = "warn"
doc_markdown = "warn"
else_if_without_else = "deny"
enum_glob_use = "warn"
filetype_is_file = "warn"
inefficient_to_string = "warn"
mem_forget = "warn"
missing_panics_doc = "warn"
mod_module_files = "deny"
multiple_inherent_impl = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_continue = "warn"
panic = "warn"
significant_drop_in_scrutinee = "warn"
todo = "warn"
unimplemented = "warn"
unreachable = "warn"
wildcard_dependencies = "deny"
wildcard_imports = "warn"
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
[package]
authors = ["Hantong Chen <cxwdyx620@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["network-programming"]
description = """
Async TCP / Unix Domain Socket abstraction, cross platform development friendly.
"""
edition = "2021"
keywords = ["socket", "tcp", "unix", "stream", "tokio"]
license = "MIT OR Apache-2.0"
name = "uni-socket"
readme = "README.md"
repository = "https://github.com/hanyu-dev/uni-socket"
rust-version = "1.71.0"
version = "0.0.1"
[package.metadata.docs.rs]
features = ["splice"]
targets = ["x86_64-unknown-linux-gnu"]
[profile.dev]
debug = "line-tables-only"
[profile.release]
codegen-units = 1
incremental = false
lto = true
opt-level = 3
panic = "abort"
strip = true
[target.'cfg(target_os = "linux")'.dev-dependencies]
[[test]]
name = "basic"
path = "tests/basic.rs"