Documentation
[package]
name = "sn_api"
version = "0.82.1"
description = "Safe API"
authors = [
  "bochaco <gabrielviganotti@gmail.com>",
  "Josh Wilson <joshuef@gmail.com>"
]
license = "GPL-3.0"
repository = "https://github.com/maidsafe/sn_api"
include = [ "Cargo.toml", "src/*" ]
edition = "2021"

[lib]
crate-type = ["cdylib", "rlib"]

[dependencies]
anyhow = { version = "1.0.38", optional = true }
async_once = { version = "~0.2.6", optional = true }
bincode = "1.3.3"
bls = { package = "blsttc", version = "8.0.1" }
bytes = { version = "1.0.1", features = ["serde"] }
color-eyre = "~0.6"
dirs-next = "2.0.0"
ed25519-dalek = { version = "1.0.1", features = ["serde"] }
env_logger = { version = "~0.8", default_features = false, features = ["termcolor", "atty", "humantime"] }
futures = "~0.3"
hex = "~0.4"
hmac = "~0.10"
lazy_static = "1.4.0"
log = "~0.4"
mime_guess = "2.0.3"
multibase = "~0.9.1"
qjsonrpc = "0.4.0"
rand = "~0.8"
rand-07 = { package = "rand", version = "0.7.3", optional = true }
rand_core = "~0.5"
relative-path = "1.3.2"
rmp-serde = "1.0.0"
pbkdf2 = { version = "~0.7", default-features = false }
serde = "1.0.123"
serde_json = "1.0.62"
sha3 = "~0.9"
sn_client = { path = "../sn_client", version = "^0.84.1" }
sn_dbc = { version = "12.0.0", features = ["serdes"] }
sn_interface = { path = "../sn_interface", version = "^0.22.1" }
thiserror = "1.0.23"
time = { version = "~0.3.4", features = ["formatting"] }
tiny-keccak = { version = "2.0.2", features = ["sha3"] }
tracing = "~0.1.26"
tracing-subscriber = { version = "~0.3.1", optional = true }
tokio = { version = "1.6.0", features = ["rt"] }
uhttp_uri = "~0.5"
url = "2.2.0"
urlencoding = "1.1.1"
walkdir = "2.3.1"
xor_name = "~5.0.0"

[features]
authenticator = [ "rand-07" ]
authd_client = [ ]
app = [ ]
check-replicas = [ "sn_client/check-replicas" ]
cmd-happy-path = [ "sn_client/cmd-happy-path" ]
query-happy-path = [ "sn_client/query-happy-path" ]
msg-happy-path = [ "sn_client/msg-happy-path" ]
limit-client-upload-size = ["sn_client/limit-client-upload-size"]
test-utils = [ "sn_interface/test-utils", "sn_client/test-utils", "anyhow", "async_once", "tracing-subscriber" ]
default = [ "authenticator", "authd_client", "app" ]

[dev-dependencies]
anyhow = "1.0.38"
assert_fs = "1.0"
assert_matches = "1.3"
async_once = "~0.2.6"
hex = "~0.4"
predicates = "2.0"
proptest = "1.0.0"
sn_client = { path = "../sn_client", version = "^0.84.1", features = ["test-utils"] }
sn_interface = { path = "../sn_interface", version = "^0.22.1", features = ["test-utils"] }
tokio = { version = "1.6.0", features = ["macros"] }
tracing-subscriber = "~0.3.1"