Cargo Features

[dependencies]
ts-rs = { version = "8.1.0", default-features = false, features = ["chrono-impl", "bigdecimal-impl", "uuid-impl", "bson-uuid-impl", "bytes-impl", "url-impl", "serde-compat", "format", "indexmap-impl", "ordered-float-impl", "heapless-impl", "semver-impl", "serde-json-impl", "no-serde-warnings", "import-esm"] }
default = serde-compat

The serde-compat feature is set by default whenever ts-rs is added without default-features = false somewhere in the dependency tree.

chrono-impl = chrono
bigdecimal-impl = bigdecimal
uuid-impl = uuid
bson-uuid-impl = bson
bytes-impl = bytes
url-impl = url
serde-compat default

Enables serde-compat of ts-rs-macros

format = dprint-plugin-typescript
indexmap-impl = indexmap
ordered-float-impl = ordered-float
heapless-impl = heapless
semver-impl = semver
serde-json-impl = serde_json
no-serde-warnings

Enables no-serde-warnings of ts-rs-macros

import-esm

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.

heapless heapless-impl?
dprint-plugin-typescript format?

Enables dprint-plugin-typescript ^0.89

chrono chrono-impl?
bigdecimal bigdecimal-impl?
uuid uuid-impl?
bson bson-uuid-impl?
bytes bytes-impl?
url url-impl?
semver semver-impl?
indexmap indexmap-impl?
ordered-float ordered-float-impl?
serde_json serde-json-impl?