schemars 0.8.3

Generate JSON Schemas from Rust code
Documentation
[package]

name = "schemars"

description = "Generate JSON Schemas from Rust code"

homepage = "https://graham.cool/schemars/"

repository = "https://github.com/GREsau/schemars"

version = "0.8.3"

authors = ["Graham Esau <gesau@hotmail.co.uk>"]

edition = "2018"

license = "MIT"

readme = "README.md"

keywords = ["rust", "json-schema", "serde"]

categories = ["encoding"]

build = "build.rs"



[dependencies]

schemars_derive = { version = "=0.8.3", optional = true, path = "../schemars_derive" }

serde = { version = "1.0", features = ["derive"] }

serde_json = "1.0"

dyn-clone = "1.0"



chrono = { version = "0.4", default-features = false, optional = true }

indexmap = { version = "1.2", features=["serde-1"], optional = true }

either = { version = "1.3", default-features = false, optional = true }

uuid = { version = "0.8", default-features = false, optional = true }

smallvec = { version = "1.0", optional = true }

arrayvec = { version = "0.5", default-features = false, optional = true }

url = { version = "2.0", default-features = false, optional = true }

bytes = { version = "1.0", optional = true }



[dev-dependencies]

pretty_assertions = "0.6.1"

trybuild = "1.0"



[features]

default = ["derive"]



derive = ["schemars_derive"]



# Use a different representation for the map type of Schemars.

# This allows data to be read into a Value and written back to a JSON string

# while preserving the order of map keys in the input.

preserve_order = ["indexmap"]



impl_json_schema = ["derive"]

# derive_json_schema will be removed in a later version

derive_json_schema = ["impl_json_schema"]



ui_test = []



[[test]]

name = "chrono"

required-features = ["chrono"]



[[test]]

name = "indexmap"

required-features = ["indexmap"]



[[test]]

name = "either"

required-features = ["either"]



[[test]]

name = "uuid"

required-features = ["uuid"]



[[test]]

name = "smallvec"

required-features = ["smallvec"]



[[test]]

name = "bytes"

required-features = ["bytes"]



[[test]]

name = "arrayvec"

required-features = ["arrayvec"]



[[test]]

name = "schema_for_schema"

required-features = ["impl_json_schema"]



[[test]]

name = "ui"

required-features = ["ui_test"]



[[test]]

name = "url"

required-features = ["url"]



[package.metadata.docs.rs]

all-features = true