-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
152 lines (133 loc) · 3.64 KB
/
Cargo.toml
File metadata and controls
152 lines (133 loc) · 3.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
[package]
name = "wireframe"
version = "0.1.0"
edition = "2024"
description = "Simplify building servers and clients for custom binary protocols."
license = "ISC"
repository = "https://github.com/leynos/wireframe"
readme = "README.md"
keywords = ["async", "networking", "binary-protocol", "protocol", "tokio"]
categories = ["network-programming", "asynchronous"]
documentation = "https://docs.rs/wireframe"
[lib]
name = "wireframe"
path = "src/lib.rs"
doctest = false
[package.metadata.docs.rs]
features = ["metrics"]
[dependencies]
serde = { version = "1.0.219", features = ["derive"] }
bincode = "2.0.1"
tokio = { version = "1.47.1", default-features = false, features = [
"net",
"signal",
"rt-multi-thread",
"macros",
"sync",
"time",
"io-util",
] }
tokio-util = { version = "0.7.16", features = ["rt", "codec"] }
tokio-stream = "0.1.17"
futures = "0.3.31"
async-trait = "0.1.89"
bytes = "1.10.1"
log = "0.4.28"
dashmap = "6.1.0"
leaky-bucket = "1.1.2"
tracing = { version = "0.1.41", features = ["log", "log-always"] }
tracing-subscriber = "0.3"
metrics = { version = "0.24.2", optional = true }
thiserror = "2.0.16"
static_assertions = "1"
derive_more = { version = "2.0.1", features = ["display", "from"] }
[dev-dependencies]
rstest = "0.26.1"
wireframe_testing = { path = "./wireframe_testing" }
logtest = "2.0.0"
proptest = "1.7.0"
loom = "0.7.2"
async-stream = "0.3.6"
serial_test = "3.2.0"
# Permit compatible bug fixes but block breaking updates
cucumber = "0.21.1"
metrics-util = "0.20.0"
tracing-test = "0.2.5"
mockall = "0.13.1"
tokio = { version = "1.47.1", default-features = false, features = [
"macros",
"rt-multi-thread",
"sync",
"time",
"io-util",
"net",
"test-util",
] }
[target.'cfg(loom)'.dependencies]
loom = "0.7.2"
[target.'cfg(not(loom))'.dependencies]
metrics-exporter-prometheus = { version = "0.17.2", optional = true, features = ["http-listener"] }
[features]
default = ["metrics", "serializer-bincode"]
metrics = ["dep:metrics", "dep:metrics-exporter-prometheus"]
serializer-bincode = []
advanced-tests = []
examples = []
cucumber-tests = []
test-support = []
[lints.clippy]
pedantic = { level = "warn", priority = -1 }
# 1. hygiene
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
blanket_clippy_restriction_lints = "deny"
cognitive_complexity = "deny"
needless_pass_by_value = "deny"
implicit_hasher = "deny"
# 2. debugging leftovers
dbg_macro = "deny"
print_stdout = "deny"
print_stderr = "deny"
# 2. panic-prone operations
unwrap_used = "deny"
expect_used = "deny"
indexing_slicing = "deny"
string_slice = "deny"
integer_division = "deny"
integer_division_remainder_used = "deny"
panic_in_result_fn = "deny"
unreachable = "deny"
[lints.rust]
unknown_lints = "deny"
renamed_and_removed_lints = "deny"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(loom)'] }
[lints.rustdoc]
missing_crate_level_docs = "deny"
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"
bare_urls = "deny"
invalid_html_tags = "deny"
invalid_codeblock_attributes = "deny"
unescaped_backticks = "deny"
[[example]]
name = "echo"
path = "examples/echo.rs"
required-features = ["examples"]
[[example]]
name = "packet_enum"
path = "examples/packet_enum.rs"
required-features = ["examples"]
[[example]]
name = "ping_pong"
path = "examples/ping_pong.rs"
required-features = ["examples"]
# The Cucumber test runner defines its own async main function,
# so the standard test harness must be disabled.
[[test]]
name = "cucumber"
harness = false
required-features = ["advanced-tests", "cucumber-tests"]
[[test]]
name = "concurrency_loom"
path = "tests/advanced/concurrency_loom.rs"
required-features = ["advanced-tests"]