vector-core 0.10.0

Core library for Vector — the single source of truth for all Vector clients, SDKs, and interfaces.
Documentation
# 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 = "vector-core"
version = "0.10.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for Vector — the single source of truth for all Vector clients, SDKs, and interfaces."
homepage = "https://vectorapp.io"
documentation = "https://docs.rs/vector-core"
readme = "README.md"
keywords = [
    "nostr",
    "messaging",
    "encryption",
    "vector",
]
categories = [
    "network-programming",
    "cryptography",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/VectorPrivacy/Vector"

[features]
calls = ["dep:iroh"]
default = []
tor = [
    "dep:arti-client",
    "dep:tor-rtcompat",
    "dep:tokio-util",
    "dep:tor-circmgr",
    "dep:tor-dirmgr",
    "dep:tor-linkspec",
    "dep:tor-guardmgr",
]
xdc = [
    "dep:iroh",
    "dep:iroh-gossip",
    "dep:noq-proto",
    "dep:zip",
    "dep:toml",
]

[lib]
name = "vector_core"
path = "src/lib.rs"

[[example]]
name = "concord_control_dump"
path = "examples/concord_control_dump.rs"

[[example]]
name = "crypto_bench"
path = "examples/crypto_bench.rs"

[[example]]
name = "invite_probe"
path = "examples/invite_probe.rs"

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

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

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

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

[dependencies.aes]
version = "0.9"

[dependencies.argon2]
version = "0.5.3"

[dependencies.arti-client]
version = "0.45"
features = [
    "tokio",
    "rustls",
    "experimental-api",
    "bridge-client",
    "pt-client",
]
optional = true
default-features = false

[dependencies.async-trait]
version = "0.1"

[dependencies.base64-simd]
version = "0.8"

[dependencies.bip39]
version = "2.2.2"
features = ["rand"]

[dependencies.bitcoin_hashes]
version = "1.2"
features = [
    "std",
    "hex",
]
default-features = false

[dependencies.bytes]
version = "1.9"

[dependencies.chacha20]
version = "0.9"

[dependencies.ctr]
version = "0.10"

[dependencies.fast-thumbhash]
version = "0.2"

[dependencies.futures-util]
version = "0.3.31"

[dependencies.ghash]
version = "0.6"

[dependencies.hkdf]
version = "0.12"

[dependencies.hmac]
version = "0.12"

[dependencies.image]
version = "0.25.9"
features = [
    "png",
    "jpeg",
    "gif",
    "webp",
]
default-features = false

[dependencies.iroh]
version = "1.0"
features = ["tls-ring"]
optional = true
default-features = false

[dependencies.iroh-gossip]
version = "0.101"
features = ["net"]
optional = true
default-features = false

[dependencies.noq-proto]
version = "1.1"
optional = true

[dependencies.nostr]
version = "=0.45.1"
features = [
    "nip04",
    "nip06",
    "nip44",
    "nip46",
    "nip59",
    "rand",
    "os-rng",
]

[dependencies.nostr-blossom]
version = "=0.45.0"

[dependencies.nostr-connect]
version = "=0.45.1"

[dependencies.nostr-sdk]
version = "=0.45.1"

[dependencies.rand]
version = "0.8"

[dependencies.rusqlite]
version = "0.38"
features = [
    "bundled",
    "fallible_uint",
]

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

[dependencies.serde_json]
version = "1.0"
features = ["raw_value"]

[dependencies.sha2]
version = "0.10.9"

[dependencies.tokio]
version = "1.49.0"
features = [
    "sync",
    "time",
    "io-util",
    "macros",
    "rt",
]

[dependencies.tokio-util]
version = "0.7"
features = ["compat"]
optional = true

[dependencies.toml]
version = "0.8"
optional = true

[dependencies.tor-circmgr]
version = "0.45"
optional = true
default-features = false

[dependencies.tor-dirmgr]
version = "0.45"
optional = true
default-features = false

[dependencies.tor-guardmgr]
version = "0.45"
features = [
    "bridge-client",
    "pt-client",
]
optional = true
default-features = false

[dependencies.tor-linkspec]
version = "0.45"
optional = true
default-features = false

[dependencies.tor-rtcompat]
version = "0.45"
features = [
    "tokio",
    "rustls",
]
optional = true
default-features = false

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.url]
version = "2.5.7"

[dependencies.vector-calls]
version = "0.1.0"

[dependencies.web-time]
version = "1"

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[dependencies.zip]
version = "2.4"
features = [
    "deflate-flate2",
    "flate2",
]
optional = true
default-features = false

[dev-dependencies.aes-gcm]
version = "0.11"

[dev-dependencies.chacha20poly1305]
version = "0.10.1"

[dev-dependencies.poly1305]
version = "0.8"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1.49.0"
features = ["test-util"]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.libc]
version = "0.2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "stream",
    "rustls-tls",
    "charset",
    "socks",
    "http2",
]
default-features = false

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.49.0"
features = [
    "net",
    "rt-multi-thread",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom_02]
version = "0.2"
features = ["js"]
package = "getrandom"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom_04]
version = "0.4"
features = ["wasm_js"]
package = "getrandom"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
]
default-features = false

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

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.wasmtimer]
version = "0.4"