# 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.65" name = "schemars" version = "1.0.0-alpha.15" authors = ["Graham Esau "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Generate JSON Schemas from Rust code" homepage = "https://graham.cool/schemars/" readme = "README.md" keywords = [ "rust", "json-schema", "serde", ] categories = [ "encoding", "no-std", ] license = "MIT" repository = "https://github.com/GREsau/schemars" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--extend-css", "docs-rs-custom.css", ] [lib] name = "schemars" path = "src/lib.rs" [[example]] name = "custom_serialization" path = "examples/custom_serialization.rs" [[example]] name = "custom_settings" path = "examples/custom_settings.rs" [[example]] name = "doc_comments" path = "examples/doc_comments.rs" [[example]] name = "enum_repr" path = "examples/enum_repr.rs" [[example]] name = "from_value" path = "examples/from_value.rs" [[example]] name = "main" path = "examples/main.rs" [[example]] name = "remote_derive" path = "examples/remote_derive.rs" [[example]] name = "schemars_attrs" path = "examples/schemars_attrs.rs" [[example]] name = "serde_attrs" path = "examples/serde_attrs.rs" [[example]] name = "serialize_contract" path = "examples/serialize_contract.rs" [[example]] name = "validate" path = "examples/validate.rs" [[test]] name = "arrayvec" path = "tests/arrayvec.rs" required-features = ["arrayvec07"] [[test]] name = "bound" path = "tests/bound.rs" [[test]] name = "bytes" path = "tests/bytes.rs" required-features = ["bytes1"] [[test]] name = "chrono" path = "tests/chrono.rs" required-features = ["chrono04"] [[test]] name = "contract" path = "tests/contract.rs" [[test]] name = "crate_alias" path = "tests/crate_alias.rs" [[test]] name = "decimal" path = "tests/decimal.rs" required-features = [ "rust_decimal1", "bigdecimal04", ] [[test]] name = "default" path = "tests/default.rs" [[test]] name = "deprecated" path = "tests/deprecated.rs" [[test]] name = "docs" path = "tests/docs.rs" [[test]] name = "either" path = "tests/either.rs" required-features = ["either1"] [[test]] name = "enum" path = "tests/enum.rs" [[test]] name = "enum_deny_unknown_fields" path = "tests/enum_deny_unknown_fields.rs" [[test]] name = "enum_flatten" path = "tests/enum_flatten.rs" [[test]] name = "enum_repr" path = "tests/enum_repr.rs" [[test]] name = "enumset" path = "tests/enumset.rs" required-features = ["enumset1"] [[test]] name = "examples" path = "tests/examples.rs" [[test]] name = "extend" path = "tests/extend.rs" [[test]] name = "ffi" path = "tests/ffi.rs" required-features = ["std"] [[test]] name = "flatten" path = "tests/flatten.rs" [[test]] name = "from_value" path = "tests/from_value.rs" [[test]] name = "garde" path = "tests/garde.rs" [[test]] name = "indexmap" path = "tests/indexmap.rs" required-features = ["indexmap2"] [[test]] name = "inline_subschemas" path = "tests/inline_subschemas.rs" [[test]] name = "macro" path = "tests/macro.rs" [[test]] name = "no_std" path = "tests/no_std.rs" [[test]] name = "nonzero_ints" path = "tests/nonzero_ints.rs" [[test]] name = "property_name" path = "tests/property_name.rs" [[test]] name = "range" path = "tests/range.rs" [[test]] name = "remote_derive" path = "tests/remote_derive.rs" [[test]] name = "remote_derive_generic" path = "tests/remote_derive_generic.rs" [[test]] name = "result" path = "tests/result.rs" [[test]] name = "same_name" path = "tests/same_name.rs" [[test]] name = "schema_name" path = "tests/schema_name.rs" [[test]] name = "schema_settings" path = "tests/schema_settings.rs" [[test]] name = "schema_with_enum" path = "tests/schema_with_enum.rs" [[test]] name = "schema_with_struct" path = "tests/schema_with_struct.rs" [[test]] name = "semver" path = "tests/semver.rs" required-features = ["semver1"] [[test]] name = "skip" path = "tests/skip.rs" [[test]] name = "smallvec" path = "tests/smallvec.rs" required-features = ["smallvec1"] [[test]] name = "smol_str" path = "tests/smol_str.rs" required-features = ["smol_str02"] [[test]] name = "std_time" path = "tests/std_time.rs" required-features = ["std"] [[test]] name = "struct" path = "tests/struct.rs" [[test]] name = "struct_additional_properties" path = "tests/struct_additional_properties.rs" [[test]] name = "transform" path = "tests/transform.rs" [[test]] name = "transparent" path = "tests/transparent.rs" [[test]] name = "ui" path = "tests/ui.rs" required-features = ["_ui_test"] [[test]] name = "url" path = "tests/url.rs" required-features = ["url2"] [[test]] name = "uuid" path = "tests/uuid.rs" required-features = ["uuid1"] [[test]] name = "validate" path = "tests/validate.rs" [[test]] name = "validate_inner" path = "tests/validate_inner.rs" [dependencies.arrayvec07] version = "0.7" optional = true default-features = false package = "arrayvec" [dependencies.bigdecimal04] version = "0.4" optional = true default-features = false package = "bigdecimal" [dependencies.bytes1] version = "1.0" optional = true default-features = false package = "bytes" [dependencies.chrono04] version = "0.4" optional = true default-features = false package = "chrono" [dependencies.dyn-clone] version = "1.0" [dependencies.either1] version = "1.3" optional = true default-features = false package = "either" [dependencies.enumset1] version = "1.0" optional = true default-features = false package = "enumset" [dependencies.indexmap2] version = "2.0" optional = true default-features = false package = "indexmap" [dependencies.ref-cast] version = "1.0.22" [dependencies.rust_decimal1] version = "1" optional = true default-features = false package = "rust_decimal" [dependencies.schemars_derive] version = "=1.0.0-alpha.15" optional = true [dependencies.semver1] version = "1.0.9" optional = true default-features = false package = "semver" [dependencies.serde] version = "1.0" features = ["alloc"] default-features = false [dependencies.serde_json] version = "1.0.127" features = ["alloc"] default-features = false [dependencies.smallvec1] version = "1.0" optional = true default-features = false package = "smallvec" [dependencies.smol_str02] version = "0.2.1" optional = true default-features = false package = "smol_str" [dependencies.url2] version = "2.0" optional = true default-features = false package = "url" [dependencies.uuid1] version = "1.0" optional = true default-features = false package = "uuid" [dev-dependencies.pretty_assertions] version = "1.2.1" [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.trybuild] version = "1.0" [features] _ui_test = [] default = [ "derive", "std", ] derive = ["schemars_derive"] preserve_order = ["serde_json/preserve_order"] raw_value = ["serde_json/raw_value"] std = []