egui 0.23 released
egui is an immediate mode GUI written in pure Rust, which is simple and easy to use.
A convenient image API has been added in egui 0.23. It is built based on the plug-in system and can specify the method and location of loading images.
// Load from web:
ui.image("https://www.example.com/some_image.png");
// Include image in the binary using `include_bytes`:
ui.image(egui::include_image!("../assets/ferris.svg"));
// With options:
ui.add(
egui::Image::new("file://path/to/image.jpg")
.max_width(200.0)
.rounding(10.0),
);
Announcing egui 0.23: https://www.reddit.com/r/rust/comments/16u9iu5/announcing_egui_023/
egui - online demo: https://www.egui.rs/
Article - async fn
Is it a design error?
A new article by seanmonstar, the author of hyper, discusses async fn
some of his views on this syntactic sugar, such as:
A bit of a bad magic return type
Possibly more elegant implementation:
fn call(&self, req: Request) -> Future<Response> = async { // ... }
Was async fn a mistake? : https://seanmonstar.com/post/66832922686/was-async-fn-a-mistake
Week In Rust 514
A new issue of Rust Weekly Express is released, come and see what content you have followed:)
This Week in Rust 514: https://this-week-in-rust.org/blog/2023/09/27/this-week-in-rust-514/
From Daily News Group PsiACE
Community learning exchange platform subscription:
Rust.cc Forum: support rss
WeChat public account: Rust language Chinese community