Skip to main content

Crate tyzen_macro

Crate tyzen_macro 

Source
Expand description

Procedural macros for the Tyzen ecosystem.

This crate provides the bridge between Rust types/functions and TypeScript code generation. It handles attribute parsing, type metadata collection, and code expansion for Tauri commands.

Attribute Macros§

command
Marks a function as a Tyzen command.
event
Marks a struct as a Tyzen Event.
export
Exports a constant value to TypeScript.
tauri_command
Marks a function as both a Tyzen command and a Tauri command.

Derive Macros§

Event
Derives the TsEvent trait for a struct.
Type
Derives the TsType trait and registers metadata for TypeScript generation.