# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.73.0" name = "libp2p-identity" version = "0.2.9" description = "Data structures and algorithms for identifying peers in libp2p." keywords = [ "peer-to-peer", "libp2p", "networking", "cryptography", ] categories = ["cryptography"] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" [package.metadata.docs.rs] all-features = true rustc-args = [ "--cfg", "docsrs", ] rustdoc-args = [ "--cfg", "docsrs", ] [[bench]] name = "peer_id" harness = false [dependencies.asn1_der] version = "0.7.6" optional = true [dependencies.bs58] version = "0.5.1" optional = true [dependencies.ed25519-dalek] version = "2.1" optional = true [dependencies.hkdf] version = "0.12.4" optional = true [dependencies.libsecp256k1] version = "0.7.0" optional = true [dependencies.multihash] version = "0.19.1" optional = true [dependencies.p256] version = "0.13" features = [ "ecdsa", "std", "pem", ] optional = true default-features = false [dependencies.quick-protobuf] version = "0.8.1" [dependencies.rand] version = "0.8" optional = true [dependencies.sec1] version = "0.7" optional = true default-features = false [dependencies.serde] version = "1" features = ["derive"] optional = true [dependencies.sha2] version = "0.10.8" optional = true [dependencies.thiserror] version = "1.0" optional = true [dependencies.tracing] version = "0.1.37" [dependencies.void] version = "1.0" optional = true [dependencies.zeroize] version = "1.8" optional = true [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:void", "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", ] [target."cfg(not(target_arch = \"wasm32\"))".dependencies.ring] version = "0.17.8" features = [ "alloc", "std", ] optional = true [lints.clippy] dbg_macro = "warn" manual_let_else = "warn" pedantic = "allow" type_complexity = "allow" unnecessary_wraps = "warn" used_underscore_binding = "warn" [lints.rust] unreachable_pub = "warn"