vouched 0.2.0

A derive macro for validated tuple-struct wrappers.
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.86"
name = "vouched"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A derive macro for validated tuple-struct wrappers."
documentation = "https://docs.rs/vouched"
readme = "README.md"
keywords = [
    "derive",
    "newtype",
    "proc-macro",
    "validation",
]
categories = ["rust-patterns"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yuly3/vouched"

[package.metadata.docs.rs]
all-features = true

[features]
alloc = ["vouched-core/alloc"]
default = ["std"]
std = [
    "alloc",
    "vouched-core/std",
]
valuable = [
    "alloc",
    "vouched-core/valuable",
]

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

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

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

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

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

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

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

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

[dependencies.vouched-core]
version = "0.2.0"

[dependencies.vouched-derive]
version = "0.2.0"

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

[dev-dependencies.trybuild]
version = "1.0"

[dev-dependencies.valuable-serde]
version = "0.1"

[lints.clippy]
allow_attributes_without_reason = "deny"
arithmetic_side_effects = "deny"
as_conversions = "deny"
assigning_clones = "deny"
bool_to_int_with_if = "deny"
branches_sharing_code = "deny"
equatable_if_let = "deny"
expect_used = "deny"
filter_map_next = "deny"
imprecise_flops = "deny"
lossy_float_literal = "deny"
match_wildcard_for_single_variants = "deny"
needless_continue = "deny"
needless_pass_by_ref_mut = "deny"
needless_pass_by_value = "deny"
option_option = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
ref_option = "deny"
rest_pat_in_fully_bound_structs = "deny"
str_to_string = "deny"
suboptimal_flops = "deny"
trivially_copy_pass_by_ref = "deny"
uninlined_format_args = "deny"
unnested_or_patterns = "deny"
unused_self = "deny"
unwrap_used = "deny"
use_self = "deny"
verbose_file_reads = "deny"