# 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.96"
name = "refining"
version = "0.2.0"
authors = ["nekitdev <nekit@nekit.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Refinement types."
documentation = "https://docs.rs/refining"
readme = "README.md"
keywords = [
    "refinement",
    "type",
]
categories = [
    "no-std",
    "no-std::no-alloc",
    "rust-patterns",
]
license = "MIT"
repository = "https://github.com/nekitdev/refining"

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

[features]
alloc = [
    "refining-empty?/alloc",
    "refining-length?/alloc",
]
char = ["refining-char"]
default = [
    "std",
    "empty",
    "length",
    "int",
    "char",
    "str",
    "regex",
    "serde",
]
empty = ["refining-empty"]
int = ["refining-int"]
length = ["refining-length"]
regex = [
    "refining-regex",
    "std",
]
serde = ["refining-core/serde"]
std = [
    "refining-empty?/std",
    "refining-length?/std",
]
str = ["refining-str"]
unsafe-assert = ["refining-core/unsafe-assert"]

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

[[example]]
name = "device"
path = "examples/device.rs"

[dependencies.refining-char]
version = "0.2.0"
optional = true
default-features = false

[dependencies.refining-core]
version = "0.2.0"
default-features = false

[dependencies.refining-empty]
version = "0.2.0"
optional = true
default-features = false

[dependencies.refining-int]
version = "0.2.0"
optional = true
default-features = false

[dependencies.refining-length]
version = "0.2.0"
optional = true
default-features = false

[dependencies.refining-regex]
version = "0.2.0"
optional = true
default-features = false

[dependencies.refining-str]
version = "0.2.0"
optional = true
default-features = false

[dev-dependencies.anyhow]
version = "1.0.102"
default-features = false

[dev-dependencies.tiny-input]
version = "0.2.0"
default-features = false
