# 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"
rust-version = "1.93"
name = "astrid-core"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core types and traits for Astrid secure agent runtime"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/unicity-astrid/astrid"
resolver = "2"

[features]
reqwest = ["dep:reqwest"]

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

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

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

[dependencies.rand]
version = "0.8"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.43"
features = [
    "full",
    "time",
    "sync",
]

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

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

[dev-dependencies.tokio]
version = "1.43"
features = [
    "full",
    "rt-multi-thread",
    "macros",
    "time",
]

[lints.clippy]
arithmetic_side_effects = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"
