# 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"
name = "nostro2"
version = "0.2.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Nostro2 is a simple toolset for interacting with the Nostr protocol."
homepage = "https://github.com/42Pupusas/NostrO2.git"
documentation = "https://docs.rs/nostro2/latest/nostro2/"
readme = "README.md"
license = "MIT"
repository = "https://github.com/42Pupusas/NostrO2.git"

[lib]
name = "nostro2"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[test]]
name = "main"
path = "tests/main.rs"

[dependencies.anyhow]
version = "1"

[dependencies.base64]
version = "0.22"

[dependencies.bech32]
version = "0.11"

[dependencies.bip39]
version = "2.1"
features = ["spanish"]

[dependencies.cbc]
version = "0.1"
features = ["alloc"]

[dependencies.chacha20]
version = "0.9"

[dependencies.chrono]
version = "0.4"

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.libaes]
version = "0.7"

[dependencies.secp256k1]
version = "0.30.0"
features = [
    "rand",
    "std",
    "alloc",
]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10.8"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"

[dependencies.web-sys]
version = "0.3"
features = [
    "SubtleCrypto",
    "CryptoKey",
    "Window",
    "Crypto",
    "AesKeyGenParams",
    "AesGcmParams",
    "Navigator",
    "Navigator",
]

[dev-dependencies.tokio]
version = "1"
features = [
    "test-util",
    "macros",
    "rt",
    "sync",
]

[dev-dependencies.tracing-test]
version = "0.2"

[dev-dependencies.wasm-bindgen-futures]
version = "0.4"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
    "sync",
    "io-util",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite]
version = "0.26"
features = ["rustls-tls-native-roots"]

[target.'cfg(target_arch = "wasm32")'.dependencies.ring]
version = "0.17"
features = ["wasm32_unknown_unknown_js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6.5"

[target.'cfg(target_arch = "wasm32")'.dependencies.tokio]
version = "1"
features = [
    "macros",
    "sync",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.tokio-tungstenite-wasm]
version = "0.4.0"
features = ["rustls-tls-webpki-roots"]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"
