# 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" name = "type-rules" version = "0.2.3" authors = ["Théo Oiry "] description = "A crate to easily constrain a struct" homepage = "https://github.com/TheoOiry/type-rules" documentation = "https://docs.rs/type-rules" readme = "README.md" keywords = [ "rule", "type", "contraint", "restrict", "validate", ] categories = ["data-structures"] license = "MIT OR Apache-2.0" repository = "https://github.com/TheoOiry/type-rules" resolver = "2" [package.metadata.docs.rs] features = [ "regex", "serde", ] rustdoc-args = [ "--cfg", "docsrs", ] [[example]] name = "derive" path = "examples/derive.rs" required-features = [ "derive", "regex", ] [dependencies.regex] version = "1.5.4" optional = true [dependencies.serde] version = "1.0" optional = true [dependencies.type-rules-derive] version = "0.2.3" optional = true [dev-dependencies.chrono] version = "0.4.19" [dev-dependencies.claim] version = "0.5.0" [dev-dependencies.serde_derive] version = "1.0.137" [dev-dependencies.serde_json] version = "1.0.81" [features] derive = ["type-rules-derive"]