# 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.75"
name = "sacp-cbor"
version = "0.10.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SACP-CBOR/1: strict deterministic CBOR validation and canonical encoding (hot-path optimized, no_std-capable)."
readme = "README.md"
keywords = [
    "cbor",
    "canonical",
    "deterministic",
    "no_std",
    "sacp",
]
categories = [
    "encoding",
    "no-std",
]
license = "MIT"
repository = "https://github.com/Synext-Solution/sacp-cbor"

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

[features]
alloc = []
default = [
    "std",
    "alloc",
    "sha2",
]
serde = [
    "dep:serde",
    "alloc",
    "std",
]
sha2 = ["dep:sha2"]
simdutf8 = ["dep:simdutf8"]
std = []
unsafe = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.sacp-cbor-derive]
version = "0.10.2"

[dependencies.serde]
version = "1"
features = [
    "alloc",
    "derive",
    "std",
]
optional = true
default-features = false

[dependencies.sha2]
version = "0.10"
optional = true
default-features = false

[dependencies.simdutf8]
version = "0.1"
optional = true
default-features = false

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