Cargo Features

[dependencies]
jsonst = { version = "0.2.0", default-features = false, features = ["full", "minimal", "schemastore", "cache", "file-cache", "sled-cache", "all-validators", "txt-parsers", "bin-parsers", "all-parsers", "native-tls", "rust-tls", "crypto-hashes"] }
default = full, native-tls

These default features are set whenever jsonst is added without default-features = false somewhere in the dependency tree.

full default = all-parsers, all-validators, file-cache, infers, schemastore
minimal = serde, valico

Validation command only using valico validator

schemastore full = http_req, regex, serde, serde_with

Enables schemastore.org integration

Affects validate::Command.schema, command::Args.catalog_url, jsonst::State.schema_store

cache file-cache? sled-cache? = hmac-sha256

Affects command::Args.cache_dir, command::Args.no_cache

file-cache full = base64, cache

Enables caching using file backend

sled-cache = cache, sled

Enables caching suing sled backend

all-validators full = jsonschema, jsonschema-valid, valico

Enables all supported validators

txt-parsers all-parsers? = json5, ron, toml, yaml

Enables parsers for all supported text formats

bin-parsers all-parsers? = bson, cbor, pickle

Enables parsers for all supported binary formats

all-parsers full = bin-parsers, txt-parsers

Enables parsers for all supported formats

native-tls default

Use native TLS solution

Enables native-tls of http_req ^0.8

rust-tls

Use Rust TLS solution

Enables rust-tls of http_req ^0.8

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.

crypto-hashes implicit feature

Enables crypto-hashes

crypto-hashes:

Meta crate for cryptographic hash functions written in pure Rust

base64 file-cache?

Enables base64 ^0.13

bson bin-parsers?
cbor bin-parsers?

Enables serde_cbor

hmac-sha256 cache?
infers full

Enables infers-jsonschema

json5 txt-parsers?
jsonschema all-validators?

Enables jsonschema ^0.16

jsonschema-valid all-validators?

Enables jsonschema-valid ^0.4

pickle bin-parsers?

Enables serde-pickle

regex schemastore?
ron txt-parsers?

Enables ron ^0.7

serde_with schemastore?

Enables serde_with ^1

sled sled-cache?
toml txt-parsers?

Enables toml ^0.5

yaml txt-parsers?

Enables serde_yaml ^0.8

serde minimal? schemastore?
valico all-validators? minimal?

Enables valico ^3

http_req native-tls rust-tls? schemastore?

Enables http_req ^0.8