Cargo Features

[dependencies]
tamasfe-schemars = { version = "0.8.1", default-features = false, features = ["derive", "preserve_order", "impl_json_schema", "derive_json_schema", "ui_test", "chrono", "either", "uuid", "smallvec", "arrayvec", "time"] }
default = derive

The derive feature is set by default whenever tamasfe-schemars is added without default-features = false somewhere in the dependency tree.

derive default impl_json_schema? = schemars_derive
preserve_order = indexmap

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.

Affects tamasfe-schemars::Map, tamasfe-schemars::MapEntry

impl_json_schema derive_json_schema? = derive
derive_json_schema = impl_json_schema

derive_json_schema will be removed in a later version

ui_test

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

schemars_derive derive

Enables tamasfe-schemars_derive

chrono implicit feature

Enables chrono

chrono:

Date and time library for Rust

indexmap preserve_order?

Enables indexmap ^1.2

either implicit feature

Enables either

either:

The enum Either with variants Left and Right is a general purpose sum type with two cases

uuid implicit feature

Enables uuid ^0.8

uuid:

A library to generate and parse UUIDs

smallvec implicit feature

Enables smallvec

smallvec:

'Small vector' optimization: store up to a small number of items on the stack

arrayvec implicit feature

Enables arrayvec ^0.5

time implicit feature

Enables time ^0.2