# 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 = "2018"
rust-version = "1.81.0"
name = "cddl-cat"
version = "0.7.1"
authors = ["Eric Seppanen <eds@reric.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parse CDDL schemas and validate CBOR or JSON serialized data"
readme = "README.md"
keywords = [
    "cddl",
    "cbor",
    "json",
]
categories = [
    "encoding",
    "network-programming",
    "parser-implementations",
]
license = "MIT"
repository = "https://github.com/ericseppanen/cddl-cat"

[package.metadata.release]
pre-release-commit-message = "release {{version}}"

[features]
default = [
    "serde_json",
    "ciborium",
]

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

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

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

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

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

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

[dependencies.base64]
version = "0.22.1"

[dependencies.ciborium]
version = "0.2.2"
optional = true

[dependencies.escape8259]
version = "0.5.0"

[dependencies.float-ord]
version = "0.3.0"

[dependencies.hex]
version = "0.4.0"

[dependencies.nom]
version = "7.0.0"
features = ["std"]
default-features = false

[dependencies.regex]
version = "1.5.5"

[dependencies.serde]
version = "1.0.97"

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

[dependencies.strum_macros]
version = "0.23.1"

[dependencies.thiserror]
version = "1.0.8"

[dev-dependencies.ntest]
version = "0.7.1"

[dev-dependencies.serde]
version = "1.0.97"
features = ["derive"]
