Skip to content

pantoken-root / rust

rust ​

Compatibility ​

Target: Rust GUI frameworks. Current format: Generated egui Color32 accessors and iced_core Color constants compile with the Rust toolchain. Minimum host version: 1.95.0. Tested through 1.95.0. Newer releases require review.

Full compatibility matrix

实验性

@pantoken/rust — 将 Instructure 设计令牌作为 Rust 常量导出,适用于两种主流原生 Rust GUI:egui (Color32) 和 iced (Color)。颜色将成为框架的颜色 type;尺寸以 f32(px)表示。用于 Web 渲染的 Rust UI(Tauri、Dioxus-web、Leptos、Yew)应改为使用 @pantoken/css。

接口 ​

类型别名 ​

函数 ​

引用 ​

default ​

重命名并重新导出 generateRust