p2p/Cargo.toml
2025-05-30 13:20:04 +02:00

31 lines
833 B
TOML

[package]
name = "dt-p2p"
version = "0.1.0"
edition = "2024"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
bincode = "2.0.1"
bstr = "1.12.0"
color-eyre = "0.6.4"
libc = "0.2.144"
libp2p = { version = "0.55.0", features = ["tokio", "tcp", "noise", "yamux", "ping", "gossipsub"] }
log = { version = "0.4.27", features = ["release_max_level_info"] }
tokio = { version = "1.45.0", features = ["macros", "rt", "sync"] }
[build-dependencies]
bindgen = "0.71.0"
[lib]
crate-type = ["cdylib", "lib"]
[profile.release]
strip = "debuginfo"
# The MSVC toolchain cannot handle LTO properly. Some symbol related to
# panic unwind would always be missing.
# So we use a separate profile for when we can compile with LTO.
[profile.release-lto]
inherits = "release"
lto = true