# 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.70.0" name = "nostr" version = "0.37.0" authors = [ "Yuki Kishimoto ", "Rust Nostr Developers", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Rust implementation of the Nostr protocol." homepage = "https://github.com/rust-nostr/nostr" readme = "README.md" keywords = [ "nostr", "protocol", "no_std", ] license = "MIT" repository = "https://github.com/rust-nostr/nostr.git" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "nostr" path = "src/lib.rs" [[example]] name = "keys" path = "examples/keys.rs" required-features = ["std"] [[example]] name = "metadata" path = "examples/metadata.rs" required-features = ["std"] [[example]] name = "nip05" path = "examples/nip05.rs" required-features = [ "std", "nip05", ] [[example]] name = "nip06" path = "examples/nip06.rs" required-features = [ "std", "nip06", ] [[example]] name = "nip09" path = "examples/nip09.rs" required-features = ["std"] [[example]] name = "nip11" path = "examples/nip11.rs" required-features = [ "std", "nip11", ] [[example]] name = "nip13" path = "examples/nip13.rs" required-features = ["std"] [[example]] name = "nip15" path = "examples/nip15.rs" required-features = ["std"] [[example]] name = "nip19" path = "examples/nip19.rs" required-features = ["std"] [[example]] name = "nip57" path = "examples/nip57.rs" required-features = [ "std", "nip57", ] [[example]] name = "vanity" path = "examples/vanity.rs" required-features = ["std"] [dependencies.aes] version = "0.8" optional = true [dependencies.async-trait] version = "0.1" [dependencies.base64] version = "0.22" optional = true default-features = false [dependencies.bech32] version = "0.11" default-features = false [dependencies.bip39] version = "2.0" optional = true default-features = false [dependencies.bitcoin] version = "0.32" features = [ "rand", "serde", ] default-features = false [dependencies.cbc] version = "0.1" optional = true [dependencies.chacha20] version = "0.9" optional = true [dependencies.chacha20poly1305] version = "0.10" features = ["getrandom"] optional = true default-features = false [dependencies.negentropy] version = "0.4" default-features = false [dependencies.negentropy-deprecated] version = "0.3" default-features = false package = "negentropy" [dependencies.nostr-ots] version = "0.2" optional = true [dependencies.once_cell] version = "1.20" default-features = false [dependencies.reqwest] version = "0.12" features = [ "json", "rustls-tls", "socks", ] optional = true default-features = false [dependencies.scrypt] version = "0.11" optional = true default-features = false [dependencies.serde] version = "1.0" features = ["derive"] default-features = false [dependencies.serde_json] version = "1.0" default-features = false [dependencies.unicode-normalization] version = "0.1" optional = true default-features = false [dependencies.url] version = "2.5" features = ["serde"] optional = true default-features = false [dependencies.url-fork] version = "3.0" features = ["serde"] optional = true default-features = false [dev-dependencies.num_cpus] version = "1.15" [dev-dependencies.tokio] version = ">=1.37" features = ["full"] default-features = false [features] all-nips = [ "nip04", "nip05", "nip06", "nip07", "nip11", "nip44", "nip46", "nip47", "nip49", "nip57", "nip59", ] alloc = [ "dep:url-fork", "base64?/alloc", "bech32/alloc", "cbc?/alloc", "chacha20poly1305?/alloc", "once_cell/alloc", "serde/alloc", "serde_json/alloc", ] default = ["std"] nip03 = ["dep:nostr-ots"] nip04 = [ "dep:aes", "dep:base64", "dep:cbc", ] nip05 = ["dep:reqwest"] nip06 = ["dep:bip39"] nip07 = [ "dep:js-sys", "dep:wasm-bindgen", "dep:wasm-bindgen-futures", "dep:web-sys", ] nip11 = ["dep:reqwest"] nip44 = [ "dep:base64", "dep:chacha20", ] nip46 = [ "nip04", "nip44", ] nip47 = ["nip04"] nip49 = [ "dep:chacha20poly1305", "dep:scrypt", "dep:unicode-normalization", ] nip57 = [ "dep:aes", "dep:cbc", ] nip59 = ["nip44"] std = [ "dep:url", "base64?/std", "bech32/std", "bitcoin/std", "bitcoin/rand-std", "bip39?/std", "cbc?/std", "chacha20?/std", "chacha20poly1305?/std", "negentropy/std", "negentropy-deprecated/std", "once_cell/std", "scrypt?/std", "serde/std", "serde_json/std", "serde_json/preserve_order", "unicode-normalization?/std", ] [target.'cfg(target_arch = "wasm32")'.dependencies.getrandom] version = "0.2" features = ["js"] [target.'cfg(target_arch = "wasm32")'.dependencies.instant] version = "0.1" features = [ "wasm-bindgen", "inaccurate", ] [target.'cfg(target_arch = "wasm32")'.dependencies.js-sys] version = "0.3" optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen] version = "0.2" optional = true default-features = false [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures] version = "0.4" optional = true [target.'cfg(target_arch = "wasm32")'.dependencies.web-sys] version = "0.3" features = ["Window"] optional = true default-features = false [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(bench)"]