type-lib 1.0.0

Validation and type constraint library. Declare domain types with invariants enforced at construction. Parse-dont-validate pattern as a first-class citizen. Zero-overhead wrappers with derive macros.
Documentation
# 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"
rust-version = "1.75"
name = "type-lib"
version = "1.0.0"
authors = ["James Gober <me@jamesgober.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Validation and type constraint library. Declare domain types with invariants enforced at construction. Parse-dont-validate pattern as a first-class citizen. Zero-overhead wrappers with derive macros."
homepage = "https://github.com/jamesgober/type-lib"
documentation = "https://docs.rs/type-lib"
readme = "README.md"
keywords = [
    "types",
    "validation",
    "newtype",
    "parse",
    "rust",
]
categories = [
    "data-structures",
    "rust-patterns",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/jamesgober/type-lib"

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

[features]
alloc = []
default = ["std"]
derive = ["dep:type-lib-derive"]
std = ["alloc"]

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

[[example]]
name = "built_in_rules"
path = "examples/built_in_rules.rs"
required-features = ["std"]

[[example]]
name = "composing_rules"
path = "examples/composing_rules.rs"
required-features = ["std"]

[[example]]
name = "custom_rule"
path = "examples/custom_rule.rs"
required-features = ["std"]

[[example]]
name = "derive_newtype"
path = "examples/derive_newtype.rs"
required-features = [
    "std",
    "derive",
]

[[example]]
name = "quick_start"
path = "examples/quick_start.rs"
required-features = ["std"]

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

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

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

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

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

[dependencies.type-lib-derive]
version = "1.0.0"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false

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

[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 2

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"