Cargo Features

ts-rs = { version = "7.0.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"] }
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

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

heapless heapless-impl?

Enables default (cas) of heapless ^0.7

dprint-plugin-typescript format?

Enables dprint-plugin-typescript ^0.85.1

chrono chrono-impl?

With default features

bigdecimal bigdecimal-impl?

Enables serde of bigdecimal >=0.0.13, <0.4.0

uuid uuid-impl?

With default (std)

bson bson-uuid-impl?
bytes bytes-impl?

With default (std)

url url-impl?
indexmap indexmap-impl?

With default (std)

ordered-float ordered-float-impl?

Enables default (std) of ordered-float ^3.0.0