# 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.70"
name = "alec"
version = "1.3.9"
authors = ["David Martin Venti <contact@alec-codec.com>"]
build = false
exclude = [
    "docs/",
    "prompts/",
    ".github/",
    "scripts/",
    "LICENSE-COMMERCIAL.md",
    "*.prompt.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Adaptive Lazy Evolving Compression - Smart codec for IoT sensor data with 90% compression ratio"
homepage = "https://alec-codec.com"
documentation = "https://docs.rs/alec"
readme = "README.md"
keywords = [
    "compression",
    "iot",
    "codec",
    "embedded",
    "sensor",
]
categories = [
    "compression",
    "embedded",
    "encoding",
]
license = "AGPL-3.0"
repository = "https://github.com/zeekmartin/alec-codec"

[badges.maintenance]
status = "actively-developed"

[features]
default = ["std"]
full = [
    "std",
    "logging",
    "timestamps",
    "tls",
]
logging = ["log"]
no_std = []
std = ["thiserror"]
timestamps = ["chrono"]
tls = [
    "rustls",
    "webpki-roots",
]

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

[[bin]]
name = "alec"
path = "src/main.rs"

[[example]]
name = "emitter_receiver"
path = "examples/emitter_receiver.rs"

[[example]]
name = "fleet_demo"
path = "examples/fleet_demo.rs"

[[example]]
name = "generate_preloads"
path = "examples/generate_preloads.rs"

[[example]]
name = "metrics_demo"
path = "examples/metrics_demo.rs"

[[example]]
name = "simple_sensor"
path = "examples/simple_sensor.rs"

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

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

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

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

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

[[bench]]
name = "encoding"
path = "benches/encoding.rs"
harness = false

[dependencies.chrono]
version = "0.4"
features = ["std"]
optional = true
default-features = false

[dependencies.crc]
version = "3.0"
default-features = false

[dependencies.log]
version = "0.4"
optional = true

[dependencies.rustls]
version = "0.21"
optional = true

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

[dependencies.webpki-roots]
version = "0.25"
optional = true

[dependencies.xxhash-rust]
version = "0.8"
features = [
    "xxh64",
    "xxh32",
]

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

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

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

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

[profile.bench]
lto = true
codegen-units = 1

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
