[package]
edition = "2021"
rust-version = "1.71.0"
name = "uni-addr"
version = "0.3.8"
authors = ["Hantong Chen <cxwdyx620@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A unified address type that can represent a `std::net::SocketAddr`, a `std::os::unix::net::SocketAddr`, or a host name with port."
readme = "README.md"
keywords = [
"addr",
"inet",
"unix",
"socket",
"host",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/hanyu-dev/uni-addr"
[features]
default = [
"feat-tokio",
"feat-serde",
]
feat-serde = ["dep:serde"]
feat-socket2 = ["dep:socket2"]
feat-tokio = ["dep:tokio"]
[lib]
name = "uni_addr"
path = "src/lib.rs"
[dependencies.serde]
version = "1.0"
optional = true
[dependencies.socket2]
version = "0.6.1"
optional = true
[dependencies.tokio]
version = "1.41"
features = [
"net",
"rt",
]
optional = true
[dependencies.wrapper-lite]
version = "0.4.0"
[dev-dependencies.foldhash]
version = "0.2.0"
default-features = false
[dev-dependencies.rstest]
version = "0.26.1"
default-features = false
[dev-dependencies.tokio]
version = "1.48.0"
features = [
"rt",
"macros",
]
[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"