winit
rust-sdl2
winit | rust-sdl2 | |
---|---|---|
51 | 36 | |
5,220 | 2,832 | |
2.8% | 0.6% | |
9.3 | 8.3 | |
7 days ago | 22 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
winit
-
Dioxus 0.6 – Crossplatform apps with Rust
> Is this something Flutter doesn't do?
Flutter does do this (at least to some extent) on Desktop/Mobile. It attempts to create a hidden DOM tree for accessibility on web. Which generally doesn't seem to be thought to work very well.
> One of the most jarring experiences I have with Flutter Desktop was it lacked MacOS Emacs-style key bindings for text editing (ctrl-a, ctrl-e, etc.). Not sure if Dioxus solved this?
Ah, we're nearly there on that one. We have a PR [0] accepted into Winit (the underlying windowing library we use) which will allow us to access those events. We're just waiting on Winit to do a new release and then we can integrate it into Dioxus.
[0]: https://github.com/rust-windowing/winit/pull/3824)
- Building Zerocalc, part V - Iced UI, subscriptions, and code release!
- Industry forms consortium to drive adoption of Rust in safety-critical systems
-
Linux version of Warp terminal is here
Hi! I’m Aloke, an engineer at Warp.
I’m really excited to share that Warp is now available on Linux! If you’re interested in trying it out, you can download Warp: https://warp.dev/
Building Warp on Linux was quite an undertaking. Warp uses a custom Rust-based UI framework that we built in house and renders natively on the GPU. To get Warp running on Linux, we built a version of our UI framework that supports winit [1] as a windowing backend. We also built a version of our renderer that uses wgpu [2]. Reducing complexity by using these well-supported, cross platform, frameworks let us bootstrap a version of Linux quicker than expected and should make it easier to build Warp for other platforms (like Windows).
Please let me know what you think! Happy to answer any questions, either about the product or about technical challenges.
[1] https://github.com/rust-windowing/winit
- Container2wasm: Convert Containers to WASM Blobs
-
Can't get winit sample to compile
This link: https://github.com/rust-windowing/winit has this code:
-
Hey Rustaceans! Got a question? Ask here (28/2023)!
Have you seen the official example?
-
Hey Rustaceans! Got a question? Ask here (20/2023)!
That's a bit shortsighted given that there is an active discussion about reducing the interior mutability.
-
File dialog with ImGui?
I really need a file dialog for my ImGui-based project in Rust. I tried using this crate but it's wayyyyyyy too old. I also saw this but considering the date it was last updated and the look of the repo, it's not gonna work either. Also I maintain my own library for such things, but it's currently blocked by this issue. What options do I have?
-
Announcing async-winit, a new way to use winit as an async runtime
In this case, I used the "A"GPL because this crate could feasibly run on the web. winit has a web backend. At the moment I don't support it (there's a PR that needs to land first), but in the near future it's not implausible that this crate could be used in a web environment.
rust-sdl2
-
SDL3 new GPU API merged
It exists, but IMO it's not a good choice.
First of all, it doesn't support RenderGeometry or RenderGeometryRaw, which are necessary for high-performance 2D rendering. I doubt it will support any of the GPU stuff at this rate, as the geometry rendering is pretty much a prerequisite. Maybe both will land all at once, though. To wit, the relevant issue hasn't seen much activity: https://github.com/Rust-SDL2/rust-sdl2/issues/1180
Secondly, the abstractions chosen by rust-sdl2 are quite different from those of SDL2 itself. There seems to have been an aggressive attempt by the Rust library authors to make something more Rust-friendly, which maybe has made it more approachable for people who don't know SDL2, but it has IMO made it less approachable for people who do know SDL2. The crate gets plenty of downloads, so maybe it's just me.
- Nannou – An open-source creative-coding framework for Rust
- SDL2 issues
-
SDL&C Or Wgpu&Rust, for Learning Graphics Programming ?
I don't think that SDL and WGPU are really comparable. You'd be better off comparing SDL to something like Notan or even the SDL bindings for Rust. That said, SDL will have vastly more learning resources than Wgpu or Notan or any Rust alternative. If you know and like rust you can probably use the resources with the Rust SDL bindings.
-
Game Lib similar to LWJGL Pygame SDL
Those are 3 very different libraries. Are you looking for something in the middle, or do you want all of the features you described? For what it's worth, there's SLD2 bindings for Rust https://github.com/Rust-SDL2/rust-sdl2
-
How would I connect renderer coded in C and logic coded in rust?
There's already a Rust binding for SDL2. See https://crates.io/crates/sdl2
-
SDL2 vs Winit/Pixels/CPAL/etc. Is going "native" really worth it?
nope. https://github.com/Rust-SDL2/rust-sdl2/issues/884 emscripten target won't work yet either.
-
I would like a simple, but abstracted, drawing library
it seems like what you are looking for is sdl2 bindings
-
cannot borrow `renderer` as mutable more than once at a time
Dude. It's literally at most 50 lines of code, the entire project. What kind of documentation do you expect me to write? The library I'm using is this one. I don't know why you'd need to know anything about it since it's purely something that can appear literally anywhere, it's part of the language.
-
C++ coders, why do you stick with the language?
*and* SDL2-sys *and* Rust-SDL2
What are some alternatives?
minifb - MiniFB is a small cross platform library to create a frame buffer that you can draw pixels in
bevy - A refreshingly simple data-driven game engine built in Rust
learn-wgpu - Guide for using gfx-rs's wgpu library.
rust-sdl - SDL bindings for Rust
raw-window-handle - A common windowing interoperability library for Rust
piston - A modular game engine written in Rust