# 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 = "aprender-registry"
version = "0.40.1"
authors = ["Pragmatic AI Labs <info@paiml.com>"]
build = false
exclude = [
    "tests/",
    "benches/",
    "docs/",
    ".github/",
    "book/",
    ".pmat/",
    "target/",
    ".profraw",
    ".profdata",
    ".vscode/",
    ".idea/",
    "proptest-regressions/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Model, Data and Recipe Registry with full lineage tracking"
readme = "README.md"
keywords = [
    "ml",
    "registry",
    "mlops",
    "lineage",
    "reproducibility",
]
categories = [
    "science",
    "database",
]
license = "MIT"
repository = "https://github.com/paiml/pacha"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]

[package.metadata.release]
shared-version = true

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"

[features]
alimentar-integration = ["alimentar"]
aprender-integration = ["aprender"]
cli = ["clap"]
compression = ["zstd"]
default = [
    "compression",
    "cli",
    "signing",
]
encryption = [
    "chacha20poly1305",
    "argon2",
    "rand",
]
full = [
    "compression",
    "cli",
    "remote",
    "encryption",
    "signing",
    "lineage-graph",
    "aprender-integration",
    "alimentar-integration",
]
lineage-graph = ["trueno-graph"]
remote = [
    "reqwest",
    "tokio",
]
signing = [
    "ed25519-dalek",
    "rand",
]

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

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

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

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

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

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

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

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

[dependencies.alimentar]
version = "0.2.3"
optional = true

[dependencies.anyhow]
version = "1"

[dependencies.aprender]
version = "0.40.1"
optional = true
package = "aprender-core"

[dependencies.argon2]
version = "0.5"
optional = true

[dependencies.blake3]
version = "1"

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.ed25519-dalek]
version = "2.1"
features = ["rand_core"]
optional = true

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

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.rmp-serde]
version = "1"

[dependencies.rusqlite]
version = "0.32"
features = ["bundled"]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]
optional = true

[dependencies.toml]
version = "0.8"

[dependencies.trueno-graph]
version = "0.40.1"
optional = true
package = "aprender-graph"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dependencies.zstd]
version = "0.13"
optional = true

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

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

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

[lints.rust]
unsafe_code = "allow"

[profile.bench]
debug = 2
inherits = "release"

[profile.dev]
panic = "abort"

[profile.release]
lto = true
codegen-units = 1
strip = true
