12 releases

new 0.1.5 Nov 24, 2021
0.1.2 Sep 9, 2021
0.1.0 Jun 30, 2021
0.0.5 Jan 29, 2021
0.0.2 Oct 22, 2020

#170 in GUI

Download history 61/week @ 2021-08-09 161/week @ 2021-08-16 101/week @ 2021-08-23 77/week @ 2021-08-30 121/week @ 2021-09-06 129/week @ 2021-09-13 119/week @ 2021-09-20 96/week @ 2021-09-27 179/week @ 2021-10-04 210/week @ 2021-10-11 308/week @ 2021-10-18 142/week @ 2021-10-25 90/week @ 2021-11-01 107/week @ 2021-11-08 93/week @ 2021-11-15 130/week @ 2021-11-22

578 downloads per month
Used in 2 crates

GPL-3.0-only

565KB
10K SLoC

SixtyFPS-rs

Crates.io Docs.rs

A Rust UI toolkit

SixtyFPS is a UI toolkit that supports different programming languages. SixtyFPS-rs is the Rust API to interact with a SixtyFPS UI design from Rust.

The complete Rust documentation can be viewed online at https://sixtyfps.io/docs/rust/sixtyfps/.

Getting Started

The crate documentation shows how to use this crate.

Hello World

The most basic "Hello world" application can be achieved with a few lines of code:

In your Cargo.toml add:

[dependencies]
sixtyfps = "0.1.5"

And in your main.rs:

sixtyfps::sixtyfps!{
    HelloWorld := Window {
        Text {
            text: "hello world";
            color: green;
        }
    }
}
fn main() {
    HelloWorld::new().run();
}

The sixtyfps crate documentation contains more advanced examples and alternative ways to use this crate.

To quickly get started, you can use the Template Repository with the code of a minimal application using SixtyFPS that can be used as a starting point to your program.

cargo install cargo-generate
cargo generate --git https://github.com/sixtyfpsui/sixtyfps-rust-template

More examples

You can quickly try out the examples by cloning this repo and running them with cargo run

# Runs the "printerdemo" example
cargo run --release --bin printerdemo

Minimum Supported Rust Version

This crate's minimum supported rustc version is 1.54.0.

Dependencies

~7–17MB
~319K SLoC