3 releases (breaking)

new 0.3.0 Jan 14, 2025
0.2.0 Dec 30, 2024
0.1.0 Dec 18, 2024

#827 in Procedural macros

Download history 113/week @ 2024-12-14 12/week @ 2024-12-21 117/week @ 2024-12-28 12/week @ 2025-01-04 87/week @ 2025-01-11

234 downloads per month

MIT license

67KB
1.5K 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

~225–670KB
~16K SLoC