[[bench]]
harness = false
name = "peer_id"
path = "benches/peer_id.rs"
[dependencies.asn1_der]
optional = true
version = "0.7.6"
[dependencies.bs58]
optional = true
version = "0.5.1"
[dependencies.ed25519-dalek]
optional = true
version = "2.1"
[dependencies.hkdf]
optional = true
version = "0.12.4"
[dependencies.libsecp256k1]
optional = true
version = "0.7.0"
[dependencies.multihash]
optional = true
version = "0.19.1"
[dependencies.p256]
default-features = false
features = ["ecdsa", "std", "pem"]
optional = true
version = "0.13"
[dependencies.quick-protobuf]
version = "0.8.1"
[dependencies.rand]
optional = true
version = "0.8"
[dependencies.sec1]
default-features = false
optional = true
version = "0.7"
[dependencies.serde]
features = ["derive"]
optional = true
version = "1"
[dependencies.sha2]
optional = true
version = "0.10.8"
[dependencies.thiserror]
optional = true
version = "1.0"
[dependencies.tracing]
version = "0.1.37"
[dependencies.zeroize]
optional = true
version = "1.8"
[dev-dependencies.base64]
version = "0.22.1"
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.hex-literal]
version = "0.4.1"
[dev-dependencies.rmp-serde]
version = "1.3"
[dev-dependencies.serde_json]
version = "1.0"
[features]
ecdsa = ["dep:p256", "dep:zeroize", "dep:sec1", "dep:sha2", "dep:hkdf"]
ed25519 = ["dep:ed25519-dalek", "dep:zeroize", "dep:sha2", "dep:hkdf"]
peerid = ["dep:multihash", "dep:bs58", "dep:thiserror", "dep:sha2", "dep:hkdf"]
rand = ["dep:rand", "ed25519-dalek?/rand_core"]
rsa = ["dep:ring", "dep:asn1_der", "dep:rand", "dep:zeroize"]
secp256k1 = ["dep:libsecp256k1", "dep:asn1_der", "dep:sha2", "dep:hkdf", "dep:zeroize"]
[lib]
name = "libp2p_identity"
path = "src/lib.rs"
[lints.clippy]
dbg_macro = "warn"
manual_let_else = "warn"
type_complexity = "allow"
unnecessary_wraps = "warn"
used_underscore_binding = "warn"
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.rust]
unreachable_pub = "warn"
[package]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = false
categories = ["cryptography"]
description = "Data structures and algorithms for identifying peers in libp2p."
edition = "2021"
keywords = ["peer-to-peer", "libp2p", "networking", "cryptography"]
license = "MIT"
name = "libp2p-identity"
readme = false
repository = "https://github.com/libp2p/rust-libp2p"
rust-version = "1.73.0"
version = "0.2.10"
[package.metadata.docs.rs]
all-features = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ring]
features = ["alloc", "std"]
optional = true
version = "0.17.8"
[[test]]
name = "keypair_api"
path = "tests/keypair_api.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"