# 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 = "borromean"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Efficient multi-collection storage for flash devices."
homepage = "https://github.com/moore/borromean"
readme = "README.md"
keywords = [
    "embedded",
    "no-std",
    "storage",
    "flash",
    "collections",
]
license = "MIT"
repository = "https://github.com/moore/borromean"

[features]
default = []
embedded-storage = ["dep:embedded-storage-traits"]
file-backing = [
    "std",
    "dep:libc",
    "dep:memmap2",
]
perf-counters = ["std"]
perf-tools = [
    "file-backing",
    "perf-counters",
    "dep:fjall",
    "dep:redb",
    "dep:serde_json",
    "dep:toml",
]
std = ["serde/std"]

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

[[bin]]
name = "file_backing_perf"
path = "src/bin/file_backing_perf.rs"
required-features = ["perf-tools"]

[[bin]]
name = "traceability_audit"
path = "src/bin/traceability_audit.rs"

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

[[bench]]
name = "file_backing_mmap"
path = "benches/file_backing_mmap.rs"
harness = false
required-features = ["file-backing"]

[dependencies.crc]
version = "3.2.1"

[dependencies.embedded-storage-traits]
version = "0.3.1"
optional = true
default-features = false
package = "embedded-storage"

[dependencies.fjall]
version = "3.1"
optional = true
default-features = false

[dependencies.heapless]
version = "0.8.0"
features = ["serde"]

[dependencies.libc]
version = "0.2"
optional = true

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

[dependencies.postcard]
version = "1.0.8"
features = ["use-crc"]

[dependencies.redb]
version = "4.1"
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

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

[dependencies.toml]
version = "0.8"
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1.0.0"
