420 lines
7.0 KiB
TOML
420 lines
7.0 KiB
TOML
# 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.60"
|
|
name = "schemars"
|
|
version = "0.8.22"
|
|
authors = ["Graham Esau <gesau@hotmail.co.uk>"]
|
|
build = "build.rs"
|
|
autolib = 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"]
|
|
license = "MIT"
|
|
repository = "https://github.com/GREsau/schemars"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
|
|
[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 = "validate"
|
|
path = "examples/validate.rs"
|
|
|
|
[[test]]
|
|
name = "arrayvec"
|
|
path = "tests/arrayvec.rs"
|
|
required-features = [
|
|
"arrayvec05",
|
|
"arrayvec07",
|
|
]
|
|
|
|
[[test]]
|
|
name = "bound"
|
|
path = "tests/bound.rs"
|
|
|
|
[[test]]
|
|
name = "bytes"
|
|
path = "tests/bytes.rs"
|
|
required-features = ["bytes"]
|
|
|
|
[[test]]
|
|
name = "chrono"
|
|
path = "tests/chrono.rs"
|
|
required-features = ["chrono"]
|
|
|
|
[[test]]
|
|
name = "crate_alias"
|
|
path = "tests/crate_alias.rs"
|
|
|
|
[[test]]
|
|
name = "decimal"
|
|
path = "tests/decimal.rs"
|
|
required-features = [
|
|
"rust_decimal",
|
|
"bigdecimal03",
|
|
"bigdecimal04",
|
|
]
|
|
|
|
[[test]]
|
|
name = "default"
|
|
path = "tests/default.rs"
|
|
|
|
[[test]]
|
|
name = "deprecated"
|
|
path = "tests/deprecated.rs"
|
|
|
|
[[test]]
|
|
name = "dereference"
|
|
path = "tests/dereference.rs"
|
|
|
|
[[test]]
|
|
name = "docs"
|
|
path = "tests/docs.rs"
|
|
|
|
[[test]]
|
|
name = "either"
|
|
path = "tests/either.rs"
|
|
required-features = ["either"]
|
|
|
|
[[test]]
|
|
name = "enum"
|
|
path = "tests/enum.rs"
|
|
|
|
[[test]]
|
|
name = "enum_deny_unknown_fields"
|
|
path = "tests/enum_deny_unknown_fields.rs"
|
|
|
|
[[test]]
|
|
name = "enum_repr"
|
|
path = "tests/enum_repr.rs"
|
|
|
|
[[test]]
|
|
name = "enumset"
|
|
path = "tests/enumset.rs"
|
|
required-features = ["enumset"]
|
|
|
|
[[test]]
|
|
name = "examples"
|
|
path = "tests/examples.rs"
|
|
|
|
[[test]]
|
|
name = "ffi"
|
|
path = "tests/ffi.rs"
|
|
|
|
[[test]]
|
|
name = "flatten"
|
|
path = "tests/flatten.rs"
|
|
|
|
[[test]]
|
|
name = "from_value"
|
|
path = "tests/from_value.rs"
|
|
|
|
[[test]]
|
|
name = "indexmap"
|
|
path = "tests/indexmap.rs"
|
|
required-features = ["indexmap"]
|
|
|
|
[[test]]
|
|
name = "indexmap2"
|
|
path = "tests/indexmap2.rs"
|
|
required-features = ["indexmap2"]
|
|
|
|
[[test]]
|
|
name = "inline_subschemas"
|
|
path = "tests/inline_subschemas.rs"
|
|
|
|
[[test]]
|
|
name = "macro"
|
|
path = "tests/macro.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_for_schema"
|
|
path = "tests/schema_for_schema.rs"
|
|
required-features = ["impl_json_schema"]
|
|
|
|
[[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 = ["semver"]
|
|
|
|
[[test]]
|
|
name = "skip"
|
|
path = "tests/skip.rs"
|
|
|
|
[[test]]
|
|
name = "smallvec"
|
|
path = "tests/smallvec.rs"
|
|
required-features = ["smallvec"]
|
|
|
|
[[test]]
|
|
name = "smol_str"
|
|
path = "tests/smol_str.rs"
|
|
required-features = ["smol_str"]
|
|
|
|
[[test]]
|
|
name = "struct"
|
|
path = "tests/struct.rs"
|
|
|
|
[[test]]
|
|
name = "struct_additional_properties"
|
|
path = "tests/struct_additional_properties.rs"
|
|
|
|
[[test]]
|
|
name = "time"
|
|
path = "tests/time.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 = ["url"]
|
|
|
|
[[test]]
|
|
name = "uuid"
|
|
path = "tests/uuid.rs"
|
|
required-features = [
|
|
"uuid08",
|
|
"uuid1",
|
|
]
|
|
|
|
[[test]]
|
|
name = "validate"
|
|
path = "tests/validate.rs"
|
|
|
|
[[test]]
|
|
name = "validate_inner"
|
|
path = "tests/validate_inner.rs"
|
|
|
|
[dependencies.arrayvec05]
|
|
version = "0.5"
|
|
optional = true
|
|
default-features = false
|
|
package = "arrayvec"
|
|
|
|
[dependencies.arrayvec07]
|
|
version = "0.7"
|
|
optional = true
|
|
default-features = false
|
|
package = "arrayvec"
|
|
|
|
[dependencies.bigdecimal03]
|
|
version = "0.3"
|
|
optional = true
|
|
default-features = false
|
|
package = "bigdecimal"
|
|
|
|
[dependencies.bigdecimal04]
|
|
version = "0.4"
|
|
optional = true
|
|
default-features = false
|
|
package = "bigdecimal"
|
|
|
|
[dependencies.bytes]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[dependencies.chrono]
|
|
version = "0.4"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.dyn-clone]
|
|
version = "1.0"
|
|
|
|
[dependencies.either]
|
|
version = "1.3"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.enumset]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[dependencies.indexmap]
|
|
version = "1.2"
|
|
features = ["serde-1"]
|
|
optional = true
|
|
|
|
[dependencies.indexmap2]
|
|
version = "2.0"
|
|
features = ["serde"]
|
|
optional = true
|
|
package = "indexmap"
|
|
|
|
[dependencies.rust_decimal]
|
|
version = "1"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.schemars_derive]
|
|
version = "=0.8.22"
|
|
optional = true
|
|
|
|
[dependencies.semver]
|
|
version = "1.0.9"
|
|
features = ["serde"]
|
|
optional = true
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
features = ["derive"]
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0.25"
|
|
|
|
[dependencies.smallvec]
|
|
version = "1.0"
|
|
optional = true
|
|
|
|
[dependencies.smol_str]
|
|
version = "0.1.17"
|
|
optional = true
|
|
|
|
[dependencies.url]
|
|
version = "2.0"
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.uuid08]
|
|
version = "0.8"
|
|
optional = true
|
|
default-features = false
|
|
package = "uuid"
|
|
|
|
[dependencies.uuid1]
|
|
version = "1.0"
|
|
optional = true
|
|
default-features = false
|
|
package = "uuid"
|
|
|
|
[dev-dependencies.pretty_assertions]
|
|
version = "1.2.1"
|
|
|
|
[dev-dependencies.trybuild]
|
|
version = "1.0"
|
|
|
|
[features]
|
|
arrayvec = ["arrayvec05"]
|
|
bigdecimal = ["bigdecimal03"]
|
|
default = ["derive"]
|
|
derive = ["schemars_derive"]
|
|
derive_json_schema = ["impl_json_schema"]
|
|
impl_json_schema = ["derive"]
|
|
indexmap1 = ["indexmap"]
|
|
preserve_order = ["indexmap"]
|
|
raw_value = ["serde_json/raw_value"]
|
|
ui_test = []
|
|
uuid = ["uuid08"]
|