-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
85 lines (75 loc) · 2.64 KB
/
Cargo.toml
File metadata and controls
85 lines (75 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[package]
name = "uaddr"
version = "0.4.3"
edition = "2021"
rust-version = "1.82.0"
authors = ["Hantong Chen <[email protected]>"]
categories = ["network-programming", "no-std"]
description = "A unified address type that can represent an IPv4 / IPv6 socket address, a UNIX domain socket (UDS) address, or a hostname with a port."
keywords = ["addr", "inet", "unix", "host"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/hanyu-dev/uaddr"
[package.metadata.docs.rs]
features = ["std", "serde", "tokio", "socket2"]
[dependencies]
itoa = "1.0"
memchr = { version = "2.8", default-features = false }
serde = { version = "1.0", default-features = false, optional = true }
socket2 = { version = "0.6.3", optional = true }
tokio = { version = "1.51", features = ["net", "rt"], optional = true }
wrapper-lite = "0.5.2"
[target.'cfg(unix)'.dependencies]
libc = { version = "0.2.184", default-features = false }
[dev-dependencies]
foldhash = { version = "0.2.0", default-features = false }
rstest = { version = "0.26.1", default-features = false }
serde_test = "1.0"
tokio = { version = "1.51", features = ["rt", "macros"] }
uaddr = { path = ".", features = ["std", "tokio", "serde", "socket2"] }
[features]
default = ["std"]
# Enable Rust's `std` support.
std = ["memchr/std"]
# Bridge feature: enable features related to crate `serde`.
serde = ["dep:serde"]
# Bridge feature: enable features related to crate `tokio`.
tokio = ["std", "dep:tokio"]
# Bridge feature: enable features related to crate `socket2`.
socket2 = ["std", "dep:socket2"]
[lints]
# ---
clippy.pedantic = { level = "warn", priority = -1 }
clippy.nursery = { level = "warn", priority = -1 }
# ---
clippy.allow_attributes_without_reason = "warn"
clippy.assertions_on_result_states = "warn"
clippy.cognitive_complexity = "warn"
clippy.create_dir = "warn"
clippy.dbg_macro = "warn"
clippy.disallowed_script_idents = "deny"
clippy.else_if_without_else = "deny"
clippy.exhaustive_enums = "warn"
clippy.exhaustive_structs = "warn"
clippy.filetype_is_file = "warn"
clippy.mem_forget = "warn"
clippy.missing_errors_doc = "allow"
clippy.mod_module_files = "deny"
clippy.module_name_repetitions = "allow"
clippy.multiple_inherent_impl = "warn"
clippy.must_use_candidate = "allow"
clippy.mutex_atomic = "warn"
clippy.mutex_integer = "warn"
clippy.panic = "warn"
clippy.string_slice = "warn"
clippy.todo = "warn"
clippy.unimplemented = "warn"
clippy.unreachable = "warn"
clippy.wildcard_dependencies = "deny"
# ---
rust.missing_docs = "warn"
rust.missing_debug_implementations = "warn"
rust.unexpected_cfgs = "allow"
rust.unknown_lints = "allow"
rust.unreachable_pub = "warn"
rust.unsafe_code = "warn"