stilltypes 0.2.1

Domain-specific refined types for the Rust and Stillwater ecosystem
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 = "2024"
rust-version = "1.89"
name = "stilltypes"
version = "0.2.1"
authors = ["Glen Baker <iepathos@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Domain-specific refined types for the Rust and Stillwater ecosystem"
readme = "README.md"
keywords = [
    "validation",
    "types",
    "refinement",
    "domain",
    "stillwater",
]
categories = [
    "development-tools",
    "rust-patterns",
]
license = "MIT"
repository = "https://github.com/iepathos/stilltypes"

[features]
default = [
    "email",
    "url",
]
email = ["dep:email_address"]
financial = [
    "dep:iban",
    "dep:creditcard",
]
full = [
    "email",
    "url",
    "uuid",
    "phone",
    "financial",
    "network",
    "geo",
    "numeric",
    "identifiers",
]
geo = []
identifiers = []
network = []
numeric = []
phone = ["dep:phonenumber"]
serde = [
    "stillwater/serde",
    "uuid?/serde",
    "url?/serde",
]
url = ["dep:url"]
uuid = ["dep:uuid"]

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

[[example]]
name = "api_handler"
path = "examples/api_handler.rs"
required-features = ["full"]

[[example]]
name = "discount_validation"
path = "examples/discount_validation.rs"
required-features = ["full"]

[[example]]
name = "financial_validation"
path = "examples/financial_validation.rs"
required-features = ["financial"]

[[example]]
name = "form_validation"
path = "examples/form_validation.rs"
required-features = ["full"]

[[example]]
name = "geo_validation"
path = "examples/geo_validation.rs"
required-features = ["full"]

[[example]]
name = "network_validation"
path = "examples/network_validation.rs"
required-features = ["full"]

[[example]]
name = "slug_validation"
path = "examples/slug_validation.rs"
required-features = ["full"]

[[example]]
name = "uuid_validation"
path = "examples/uuid_validation.rs"
required-features = ["uuid"]

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

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

[dependencies.creditcard]
version = "0.1"
optional = true

[dependencies.email_address]
version = "0.2"
optional = true

[dependencies.iban]
version = "5"
optional = true
package = "iban_validate"

[dependencies.phonenumber]
version = "0.3"
optional = true

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

[dependencies.stillwater]
version = "1.0"

[dependencies.url]
version = "2"
optional = true

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

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]