# 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"
name = "armour-core"
version = "0.1.8"
authors = ["Rail Khusnutdinov <rail@33.run>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types for armour ecosystem"
homepage = "https://github.com/libfunc/armour/"
documentation = "https://docs.rs/armour/"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/libfunc/armour/"

[features]
bitcode = ["dep:bitcode"]
cipher = [
    "dep:blowfish_rs",
    "dep:const-decoder",
]
compact_str = ["dep:compact_str"]
default = [
    "std",
    "cipher",
]
deserialize = ["std"]
dyn-value = [
    "std",
    "rust_decimal",
]
facet = ["dep:facet"]
fake = ["dep:fake"]
rkyv = [
    "dep:rkyv",
    "rkyv/std",
    "rkyv/alloc",
    "rkyv/bytecheck",
]
rust_decimal = ["dep:rust_decimal"]
smol_str = ["dep:smol_str"]
solana = [
    "solana-pubkey",
    "solana-signature",
]
std = [
    "thiserror",
    "serde/derive",
    "parking_lot",
    "serde_json",
    "time/std",
    "time/serde-human-readable",
    "arrayvec/serde",
    "dep:bytes",
    "dep:rand",
]
ts-rs = ["dep:ts-rs"]

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

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

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

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

[[bench]]
name = "gen_fuids"
path = "benches/gen_fuids.rs"
harness = false
required-features = ["cipher"]

[dependencies.armour-derive]
version = "0.27"

[dependencies.arrayvec]
version = "0.7"

[dependencies.bitcode]
version = "0.6"
optional = true

[dependencies.blowfish_rs]
version = "0.1"
optional = true

[dependencies.bytemuck]
version = "1.23"
features = [
    "derive",
    "extern_crate_alloc",
]

[dependencies.bytes]
version = "1.5"
optional = true

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

[dependencies.const-decoder]
version = "0.4"
optional = true

[dependencies.const-fnv1a-hash]
version = "1.1"

[dependencies.data-encoding]
version = "2.4"

[dependencies.data-encoding-macro]
version = "0.1"

[dependencies.facet]
version = "0.46"
optional = true

[dependencies.fake]
version = "5.1"
optional = true

[dependencies.parking_lot]
version = "0.12"
optional = true

[dependencies.rand]
version = "0.10"
optional = true

[dependencies.rapira]
version = "0.12"

[dependencies.rend]
version = "0.5"
features = [
    "zerocopy-0_8",
    "bytemuck-1",
]

[dependencies.rkyv]
version = "0.8"
features = []
optional = true
default-features = false

[dependencies.rust_decimal]
version = "1.30"
optional = true

[dependencies.serde]
version = "1.0"

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

[dependencies.smallvec]
version = "1.10"
features = [
    "union",
    "const_generics",
    "const_new",
    "serde",
]
optional = true

[dependencies.smol_str]
version = "0.3"
optional = true

[dependencies.solana-pubkey]
version = "4.0"
optional = true

[dependencies.solana-signature]
version = "3.1"
optional = true

[dependencies.thiserror]
version = "2.0"
optional = true

[dependencies.time]
version = "0.3"
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.ts-rs]
version = "12.0"
features = ["no-serde-warnings"]
optional = true

[dependencies.uuid]
version = "1.3"
default-features = false

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

[dependencies.zerocopy]
version = "0.8"
features = ["derive"]

[dev-dependencies.bs58]
version = "0.5"

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

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

[dev-dependencies.sqids]
version = "0.4"

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