[package]
edition = "2021"
name = "mti"
version = "1.1.2"
authors = ["rrrodzilla@proton.me"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generates human-readable, prefixed, and globally unique identifiers (based on the TypeID spec) for Rust. Improves clarity, type-safety, debugging, and identifier management in your applications."
documentation = "https://docs.rs/mti"
readme = "README.md"
keywords = [
"typeid",
"uuid",
"identifier",
"distributed-systems",
]
categories = [
"data-structures",
"development-tools",
"encoding",
"parser-implementations",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/GovCraft/mti"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
instrument = [
"dep:tracing",
"typeid_prefix/instrument",
"typeid_suffix/instrument",
]
serde = [
"dep:serde",
"typeid_prefix/serde",
"typeid_suffix/serde",
]
[lib]
name = "mti"
path = "src/lib.rs"
[[test]]
name = "invalid_test_vectors"
path = "tests/invalid_test_vectors.rs"
[[test]]
name = "magic_type_id_ext"
path = "tests/magic_type_id_ext.rs"
[[test]]
name = "serde_tests"
path = "tests/serde_tests.rs"
[[test]]
name = "tests"
path = "tests/tests.rs"
[[test]]
name = "valid_test_vectors"
path = "tests/valid_test_vectors.rs"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dependencies.typeid_prefix]
version = "1.2.0"
[dependencies.typeid_suffix]
version = "1.3.0"
[dev-dependencies.proptest]
version = "1.5.0"
features = ["proptest-macro"]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.uuid]
version = "1.10"
features = [
"v1",
"v3",
"v4",
"v5",
"v6",
"v7",
"v4",
]
[lints.clippy]
cargo_common_metadata = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
module_name_repetitions = "allow"
must_use_candidate = "warn"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unsafe_code = "deny"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"
unused_results = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]