mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-23 09:19:32 +00:00
Motivation: the git pre-commit hook is confused by the mix of 2021 and
2024 in the same workspace...
The only problem this raises is the std::env::set_var("LANGUAGE", lang) in
demos/printerdemo/rust/lib.rs, pre-existing but now explicitly marked as unsafe
because it actually is. Added a TODO there.
|
||
|---|---|---|
| .. | ||
| Cargo.toml | ||
| index.html | ||
| main.rs | ||
| plotter.slint | ||
| README.md | ||
| wasm_backend.rs | ||
plotter
A Rust-only example that shows how to use the Rust plotters crate to do plot a graph and integrate the result into Slint.
.slint Design |
Rust Source | Online wasm Preview |
|---|---|---|
plotter.slint |
main.rs |
Online simulation |
