# 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.0"
name = "ftracker-identifiers"
version = "0.0.2"
build = false
exclude = [
    "/data",
    "/src/bin/generate_cfi_table.rs",
    "/fuzz",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validated, no_std-first identifier types: CNPJ, ISIN, CFI, and ISO 3166-1 country codes."
documentation = "https://docs.rs/ftracker-identifiers"
readme = "README.md"
keywords = [
    "cnpj",
    "isin",
    "cfi",
    "iso3166",
    "no_std",
]
categories = [
    "parser-implementations",
    "no-std",
    "data-structures",
    "finance",
]
license = "MIT"
repository = "https://github.com/lnivva/ftracker-identifiers"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
arbitrary = ["dep:arbitrary"]
codegen = ["dep:serde_json"]
default = ["std"]
proptest = [
    "dep:proptest",
    "proptest/alloc",
    "proptest/no_std",
]
schemars = [
    "dep:schemars",
    "serde",
]
serde = ["dep:serde"]
std = [
    "serde?/std",
    "schemars?/std",
    "proptest?/std",
]

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

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

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

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

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

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true

[dependencies.proptest]
version = "1"
optional = true
default-features = false

[dependencies.schemars]
version = "1"
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
default-features = false

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

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

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

[dev-dependencies.serde_json]
version = "1"
