Cargo Features

specta has no features set by default.

[dependencies]
specta = { version = "2.0.0-rc.20", features = ["derive", "function", "serde", "serde_json", "serde_yaml", "toml", "uuid", "ulid", "chrono", "time", "bigdecimal", "rust_decimal", "indexmap", "ipnetwork", "mac_address", "bit-vec", "bson", "uhlc", "bytesize", "glam", "tokio", "url", "either", "bevy_ecs", "bevy_input", "interop"] }

Run node ./.github/features.js to update the docs

derive

Derive macros

Enables specta-macros

function

Features
Support for exporting the types of Rust functions.

Enables paste, DO_NOT_USE_function of optional specta-macros

Affects specta::function

serde

Compatability Support for serde

Enables serde

TODO: Can we remove this?

serde_json

Support for serde-json

Enables serde_json

serde_yaml

Support for serde_yaml

Enables serde_yaml

toml

Support for toml

Enables toml

uuid

External types uuid crate

Enables uuid

ulid

uuid crate

Enables ulid

chrono

chrono crate

Enables chrono

time

time crate

Enables time

bigdecimal

bigdecimal crate

Enables bigdecimal

rust_decimal

rust_decimal crate

Enables rust_decimal

indexmap

indexmap crate

Enables indexmap

TODO: Don't require std

ipnetwork

ipnetwork crate

Enables ipnetwork

mac_address

mac_address crate

Enables mac_address

bit-vec

bit-vec crate

Enables bit-vec ^0.7.0

bson

bson crate

Enables bson

uhlc

uhlc crate

Enables uhlc

bytesize

bytesize crate

Enables bytesize

glam

glam crate

Enables glam ^0.28

tokio

tokio crate

Enables tokio

url

url crate

Enables url

either

either crate

Enables either

bevy_ecs

bevy_ecs crate

Enables bevy_ecs

bevy_input

bevy_input crate

Enables bevy_ecs, bevy_input, and glam ^0.28

interop

Internal features (unstable)

Enables specta

TODO: To be deprecated

Affects internal::interop