# test_egui **Repository Path**: naonao-learn/test_egui ## Basic Information - **Project Name**: test_egui - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-03 - **Last Updated**: 2026-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Test Egui A cross-platform GUI application built with Rust and egui. ## Documentation - [egui 入门教程](docs/egui-tutorial-zh.md) — 代码怎么读:Rust 基础、立即模式 GUI、组件拆解、真实踩坑、练习 - [Rust 工程指南](docs/cargo-guide-zh.md) — 工程怎么管:编译运行原理、规范项目结构、三方包管理、Cargo.lock、日常工具链 ## Features - Data visualization with charts (line + points, legend) - Drawing canvas with color and width controls - File management with open/save dialogs - Tabbed UI (Chart / Drawing / File Manager) ## Requirements - Rust 1.70+ (via rustup) ## Building ### Desktop ```bash cargo run ``` ### Quality checks ```bash cargo fmt cargo clippy cargo test ``` ### Web (WASM) Requires trunk: ```bash rustup target add wasm32-unknown-unknown cargo install --locked trunk trunk serve ``` > Note: native file dialogs (rfd) only work on desktop builds. ## Project Structure ``` src/ ├── main.rs # Entry point (native + wasm) ├── lib.rs # Crate root, declares modules, exports App ├── app.rs # Main application logic (tabs, panels) ├── ui/ # User interface components │ ├── mod.rs │ ├── charts.rs # Chart visualization (painter-based) │ ├── drawing.rs # Drawing canvas │ └── file_manager.rs # File dialogs (rfd) ├── data/ │ ├── mod.rs │ ├── types.rs # DataPoint / DataSet │ └── handlers.rs # CSV load/save placeholders └── utils/ ├── mod.rs └── helpers.rs # format_number ``` ## Dependencies - egui / eframe 0.27 - rfd 0.14 (native file dialogs, desktop only) - env_logger (native), wasm-bindgen-futures + web-sys (web) ## License MIT OR Apache-2.0