# 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.80"
name = "aranya-client"
version = "0.4.0"
authors = ["SpiderOak, Inc."]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Client library for using Aranya"
readme = "README.md"
license = "AGPL-3.0-only"
repository = "https://github.com/aranya-project/aranya"

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

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

[dependencies.anyhow]
version = "1.0.86"

[dependencies.aranya-base58]
version = "0.1.0"
features = ["std"]

[dependencies.aranya-buggy]
version = "0.1.0"
features = ["std"]

[dependencies.aranya-crypto]
version = "0.2.1"
features = [
    "alloc",
    "fs-keystore",
    "clone-aead",
    "std",
]

[dependencies.aranya-daemon-api]
version = "0.4.0"

[dependencies.aranya-fast-channels]
version = "0.3.0"
features = [
    "posix",
    "std",
    "memory",
    "std",
    "posix",
]

[dependencies.aranya-util]
version = "0.4.0"

[dependencies.indexmap]
version = "2.7"

[dependencies.libc]
version = "0.2"

[dependencies.postcard]
version = "1"
features = [
    "use-std",
    "heapless",
    "experimental-derive",
]
default-features = false

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

[dependencies.tarpc]
version = "0.35.0"
features = [
    "unix",
    "serde-transport",
    "serde-transport-json",
]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.40"
features = [
    "io-util",
    "macros",
    "net",
    "sync",
]

[dependencies.tracing]
version = "0.1.40"

[dev-dependencies.aranya-daemon]
version = "0.4.0"

[dev-dependencies.backon]
version = "1.2.0"

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

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

[dev-dependencies.test-log]
version = "0.2.14"
features = ["trace"]
default-features = false

[features]
debug = []
default = []

[lints.clippy]
cast_lossless = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
panic = "warn"
undocumented_unsafe_blocks = "warn"
unsafe_derive_deserialize = "warn"
unwrap_used = "warn"
wildcard_imports = "warn"

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1