Cargo Features

[dependencies]
trenchcoat = { version = "0.5.1", default-features = false, features = ["use-std", "alloc", "full", "log", "defmt", "tty", "compiler"] }
default = full

The full feature is set by default whenever trenchcoat is added without default-features = false somewhere in the dependency tree.

use-std compiler? full = alloc, thiserror
alloc use-std?

Enables alloc of postcard

full default = compiler, log, tty, use-std
log full

Enables log

defmt

Enables defmt

tty full

Enables clap, termcolor and tty-emitter of optional swc_common ^0.29

Affects compiler::Source

compiler full = use-std

Enables anyhow, phf, swc_common ^0.29, swc_ecma_ast ^0.94, swc_ecma_parser ^0.122, swc_ecma_utils ^0.105, and swc_ecma_visit ^0.80

Affects forth::compiler, trenchcoat::prelude, ffi::FFI_FUNCS, ffi::FFI_FUNCS

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.

thiserror use-std?

Enables thiserror ^1