# 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 = "nix-bindings-store"
version = "0.2.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust bindings to Nix store library"
documentation = "https://nixops4.github.io/nix-bindings-rust/development/nix_bindings_store/"
readme = "README.md"
license = "LGPL-2.1"
repository = "https://github.com/nixops4/nix-bindings-rust"

[features]
harmonia = [
    "dep:harmonia-store-core",
    "dep:serde_json",
]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.harmonia-store-core]
version = "0.0.0-alpha.0"
optional = true

[dependencies.nix-bindings-store-sys]
version = "0.2.1"

[dependencies.nix-bindings-util]
version = "0.2.1"

[dependencies.nix-bindings-util-sys]
version = "0.2.1"

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.zerocopy]
version = "0.8"

[dev-dependencies.ctor]
version = "0.2"

[dev-dependencies.hex-literal]
version = "0.4"

[dev-dependencies.serde_json]
version = "1.0"

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

[build-dependencies.nix-bindings-util]
version = "0.2.1"

[build-dependencies.pkg-config]
version = "0.3"

[lints.clippy]
arc-with-non-send-sync = "allow"
type-complexity = "allow"

[lints.rust]
dead-code = "allow"
warnings = "deny"
