Skip to main content

export

Attribute Macro export 

Source
#[export]
Expand description

Exports a constant value to TypeScript.

Useful for sharing configuration or magic numbers between the backend and frontend.

ยงExample

#[tyzen::export]
pub const MAX_RETRIES: u32 = 5;