# 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"
name = "kbs-types"
version = "0.14.0"
authors = ["Sergio Lopez <slp@redhat.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust (de)serializable types for KBS"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/virtee/kbs-types"

[features]
alloc = [
    "base64/alloc",
    "serde/alloc",
    "serde_json/alloc",
]
default = ["std"]
std = [
    "base64/std",
    "serde/std",
    "serde_json/std",
    "sha2/std",
    "sm3/std",
    "strum/std",
    "thiserror/std",
    "dep:ear",
]

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

[dependencies.base64]
version = "0.22.1"
default-features = false

[dependencies.ear]
version = "0.4.0"
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]
default-features = false

[dependencies.serde_json]
version = "1.0"
default-features = false

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

[dependencies.sm3]
version = "0.4.2"
default-features = false

[dependencies.strum]
version = "0.27"
features = ["derive"]
default-features = false

[dependencies.thiserror]
version = "2.0.3"
default-features = false

[dev-dependencies.codicon]
version = "3.0.0"

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

[dev-dependencies.procfs]
version = "0.15"
