Cargo Features

Tia has no features set by default.

[dependencies]
tia = { version = "1.0.3", features = ["disable", "file", "file-pretty", "include", "include-force", "include-pretty", "print"] }
disable

Disable all tia features for temporary.

Affects tia::derive_tia

file

Output the generated code to <src/.tia/{TargetTypeSymbol}.rs>.

file-pretty

file + rustfmt(via command call).

include

Use include!("<src/.tia/{TargetTypeSymbol}.rs>") instead if generated file is exists.

include-force

include, but not generate if file is not exists.

include-pretty

include + file-pretty.

print

In building time, tia will show the generated result to stderr.