# 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 = "2024"
rust-version = "1.96"
name = "p2panda-spaces"
version = "0.7.0"
authors = [
    "adz <x12@adz.garden>",
    "sandreae <contact@samandreae.com>",
    "glyph <glyph@mycelial.technology>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Data encryption for multi-device groups"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/p2panda/p2panda"
resolver = "2"

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

[features]
test_utils = [
    "p2panda-auth/test_utils",
    "p2panda-encryption/test_utils",
    "p2panda-store/macros",
    "p2panda-store/test_utils",
]

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

[dependencies.p2panda-auth]
version = "0.7.0"
features = ["serde"]
default-features = false

[dependencies.p2panda-core]
version = "0.7.0"
default-features = false

[dependencies.p2panda-encryption]
version = "0.7.0"
features = ["data_scheme"]
default-features = false

[dependencies.p2panda-store]
version = "0.7.0"
features = [
    "sqlite",
    "spaces",
]
default-features = false

[dependencies.petgraph]
version = "0.8.2"

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

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.3"
features = ["sync"]
default-features = false

[dev-dependencies.tokio]
version = "1.52.3"
features = [
    "rt",
    "macros",
]
default-features = false

[lints.clippy]
needless_pass_by_ref_mut = "warn"
unused_async = "warn"
