6 releases (3 breaking)

Uses new Rust 2024

0.4.0 Mar 15, 2025
0.3.2 Feb 15, 2025
0.3.1 Jan 27, 2025
0.2.0 Dec 30, 2024
0.1.0 Dec 18, 2024

#782 in Procedural macros

Download history 46/week @ 2024-12-19 111/week @ 2024-12-26 17/week @ 2025-01-02 84/week @ 2025-01-09 32/week @ 2025-01-16 88/week @ 2025-01-23 25/week @ 2025-01-30 16/week @ 2025-02-06 137/week @ 2025-02-13 9/week @ 2025-02-20 7/week @ 2025-02-27 125/week @ 2025-03-13 8/week @ 2025-03-20

133 downloads per month

MIT license

76KB
2K SLoC

stable pipeline dev/1 pipeline docs crates.io

brisk-eframe

brisk-eframe provides integration with the eframe framework from egui.

Example

The following creates a user interface with an Hello World! banner.

use brisk_eframe::brisk_it;

struct MyApp {
}

impl MyApp {
    fn new(_: &eframe::CreationContext) -> Self {
        Self {
        }
    }
}

brisk_it! {
    Main
    {
        title: "My egui App",
        viewport: Viewport
        {
            inner_size: [320.0, 240.0],
        },
        App {
            target: MyApp,
            CentralPanel
            {
                Heading
                {
                    text: "Hello World!",
                },
            }
        }
    }
}

A more complete example is available in the hello world example.

Dependencies

~220–660KB
~15K SLoC