mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
961 B
961 B
SixtyFPS build guide
This page explain how to build and test sixtyfps.
Prerequisites
Installing Rust
Install Rust by following the Rust Getting Started Guide.
Once this is done, you should have the rustc
compiler and the cargo
build system installed in your path.
Testing
Most of the project is written in Rust, and compiling and running the test can done with cargo.
cargo build
cargo test
Note that cargo test
does not work without first calling cargo build
because the
C++ tests will not find the dynamic library
See the examples folder for examples to build, run and test.
Running the viewer
SixtyFPS also includes a viewer tool that can load .60
files dynamically at run-time. It is a
cargo-integrated binary and can be run directly on the .60
files, for example:
cargo run --bin viewer -- examples/printerdemo/ui/printerdemo.60