-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (61 loc) · 2.1 KB
/
Copy pathCargo.toml
File metadata and controls
72 lines (61 loc) · 2.1 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
[package]
name = "ant-protocol"
version = "2.2.0"
edition = "2021"
authors = ["MaidSafe Developers <[email protected]>"]
description = "Wire protocol for the Autonomi decentralized network (WithAutonomi fork)"
license = "MIT OR Apache-2.0"
repository = "https://github.com/WithAutonomi/ant-protocol"
homepage = "https://autonomi.com"
readme = "README.md"
keywords = ["p2p", "decentralized", "quantum-safe", "post-quantum", "protocol"]
categories = ["network-programming", "cryptography"]
rust-version = "1.75"
[lib]
name = "ant_protocol"
path = "src/lib.rs"
[dependencies]
# The three "shared protocol" deps. Both ant-client and ant-node consume
# these through `ant_protocol::{transport, pqc, evm}` re-exports so the
# version is pinned in exactly one place. Changing these versions is a
# breaking change for both downstream crates.
saorsa-core = "0.26.0"
saorsa-pqc = "0.5"
evmlib = "0.8.1"
# Content addressing (BLAKE3)
blake3 = "1"
# Async runtime (used by send_and_await_chunk_response)
tokio = { version = "1.35", features = ["sync", "time", "rt"] }
# Serialization
serde = { version = "1", features = ["derive"] }
postcard = { version = "1.1.3", features = ["use-std"] }
rmp-serde = "1"
# Byte utilities
bytes = { version = "1", features = ["serde"] }
hex = "0.4"
# Logging (optional — behind `logging` feature flag, mirroring ant-node)
tracing = { version = "0.1", optional = true }
[dev-dependencies]
alloy = { version = "1", features = ["node-bindings"] }
rand = "0.8"
url = "2"
xor_name = "5"
serial_test = "3"
tokio = { version = "1.35", features = ["full"] }
[features]
# Default: logging enabled so downstream tests and dev builds emit diagnostics.
# Release consumers can strip logging with `--no-default-features`.
default = ["logging"]
# Enable `tracing` macros inside the crate.
logging = ["tracing"]
[lints.rust]
unsafe_code = "deny"
missing_docs = "warn"
[lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
# Allow non-const functions — the constructors may gain runtime behaviour.
missing_const_for_fn = "allow"