# 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.95"
name = "ma-core"
version = "0.10.33"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "DIDComm service library: inboxes, outboxes, DID document publishing, and transport abstraction"
documentation = "https://docs.rs/ma-core"
readme = "README.md"
keywords = [
    "did",
    "didcomm",
    "ipfs",
    "messaging",
]
categories = [
    "network-programming",
    "authentication",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/bahner/ma-core"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
acl = ["dep:serde_yaml"]
config = [
    "dep:argon2",
    "dep:clap",
    "dep:directories",
    "dep:serde_yaml",
    "dep:tracing-subscriber",
    "dep:zeroize",
]
default = [
    "iroh",
    "gossip",
]
gossip = [
    "iroh",
    "dep:iroh-gossip",
]
iroh = ["dep:iroh"]
kubo = []

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

[dependencies.anyhow]
version = "1.0"

[dependencies.argon2]
version = "0.5"
optional = true

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

[dependencies.base64]
version = "0.22"

[dependencies.blake3]
version = "1"

[dependencies.bytes]
version = "1.12.0"

[dependencies.chacha20poly1305]
version = "0.10"

[dependencies.ciborium]
version = "0.2"

[dependencies.cid]
version = "0.11.3"
features = ["serde"]

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]
optional = true

[dependencies.directories]
version = "6"
optional = true

[dependencies.ed25519-dalek]
version = "2.2"
features = ["rand_core"]

[dependencies.hex]
version = "0.4"

[dependencies.ipld-core]
version = "0.4"
features = ["serde"]

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

[dependencies.iroh-base]
version = "^1"

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

[dependencies.libp2p-identity]
version = "0.2"
features = [
    "ed25519",
    "peerid",
]

[dependencies.multibase]
version = "0.9"

[dependencies.nanoid]
version = "0.5"

[dependencies.rand]
version = "0.10"

[dependencies.rand_core]
version = "0.6"
features = ["getrandom"]

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "multipart",
    "query",
    "rustls",
]
default-features = false

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

[dependencies.serde_ipld_dagcbor]
version = "0.6"

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.52"
features = [
    "io-util",
    "sync",
    "time",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dependencies.unsigned-varint]
version = "0.8"

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

[dependencies.x25519-dalek]
version = "2.0"
features = ["static_secrets"]

[dependencies.zeroize]
version = "1"
features = ["derive"]
optional = true

[dev-dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt",
]

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

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom-v03]
version = "~0.3"
features = ["wasm_js"]
package = "getrandom"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom-v04]
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.wasm-bindgen]
version = "0.2"

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

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

[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
version = "1"
