77
Announcing Freya GUI library (marc0.hashnode.dev)
top 7 comments
sorted by: hot top controversial new old
[-] BB_C@programming.dev 20 points 1 year ago

Languages: Just Rust!

You got my attention.

fn app(cx: Scope) -> Element {
    let mut count = use_state(cx, || 0);

    render!(
        rect {
            height: "20%",
            width: "100%",
            background: "rgb(233, 196, 106)",
            padding: "12",
            color: "rgb(20, 33, 61)",
            label { 
                font_size: "20", 
                "Number is: {count}"
            }
        }
        rect {
            height: "80%",
            width: "100%",
            background: "rgb(168, 218, 220)",
            color: "black",
            padding: "12",
            onclick: move |_| count += 1,
            label { "Click to increase!" }
        }
    )
}

Oh, it's stringly-typed Rust.
Yeah, no thanks.

[-] HoloPengin@lemmy.world 9 points 1 year ago

Yeah why do this when rust's type system is so rich

[-] southernwolf@pawb.social 0 points 1 year ago

Haven't looked at a lot of Rust front-end GUI libraries recently, eh?

[-] Black616Angel@feddit.de 11 points 1 year ago* (last edited 1 year ago)

Native GUI library for Rust

Oh, you have my attention.

stringly-typed

Ummm....

simple click counter example doesn't work on my phone

Aw shit.

Project website

[-] Anders429@lemmy.world 2 points 1 year ago

The counter doesn't work on my phone, either.

[-] Rustmilian@lemmy.world 8 points 1 year ago* (last edited 1 year ago)

Loving these, the more toolkits like this the better.
Let's build the Rust ecosystem into the most useful & complete tool in any developers arsenal for all use cases one ever might need.

[-] thann@lemmy.world 2 points 1 year ago

Seems pretty legit!

The live refresh seems cool, would love to try it out

this post was submitted on 02 Sep 2023
77 points (95.3% liked)

Rust

5980 readers
92 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS