Crate tauri_ts_generator_derive

Crate tauri_ts_generator_derive 

Source
Expand description

Derive macro for tauri-ts-generator

This crate provides the #[derive(TS)] macro which registers the ts attribute namespace, allowing #[ts(optional)] annotations on struct fields.

The derive macro itself is a no-op - it doesn’t generate any runtime code. Its sole purpose is to make the Rust compiler accept #[ts(...)] attributes which are then parsed at code generation time by tauri-ts-generator.

Derive Macros§

TS
Derive macro that enables #[ts(...)] attributes on struct/enum fields.