arewegameyet
rust-rdkafka
Our great sponsors
arewegameyet | rust-rdkafka | |
---|---|---|
99 | 8 | |
675 | 1,469 | |
0.9% | - | |
7.0 | 8.4 | |
8 days ago | 10 days ago | |
SCSS | Rust | |
Creative Commons Attribution 4.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.
arewegameyet
-
Is rust suitable for multiplayer games?
arewegameyet
-
Someday, maybe, we will be game. I hope.
"While the ecosystem is still very young, you can find enough libraries and game engines to sink your teeth into doing some slightly experimental gamedev."
-
Egregoria is a city simulation with high granularity
I think Rust for games has come really far. I will cite https://arewegameyet.rs/ "Almost. We have the blocks, bring your own glue.".
All the blocks are there and the language is really well suited to games.
On top of my head:
The pros:
- The crate ecosystem and the package manager makes it really easy to integrate any useful component such as pathfinding, spatial partitioning, graphics backend, audio system.. Most crates take a lot of effort to be cross-platform so I can develop on linux and not spend too much time debugging windows releases.
- The strong typing and algebraic data types makes expressing the game state very pleasant. I also found I was able to develop a very big game without too many bugs even though I don't write many tests.
- Ahead of time compilation + LLVM guarantees you won't have to optimise for weird things around a virtual machine. Rust gives you more control to optimise hot loops as you can go low-level.
- I find wgpu to be the perfect balance between ergonomics and power compared to Vulkan. OpenGL support through wgpu is also a nice addition for lower end devices.
- The Rust community is very helpful, you can often talk directly to crate maintainers
The cons:
- Compilation times, when compared to JITed languages such as C# can be very painful. It can be alleviated by buying a 3950X but I still often get 10-30s iteration times.
- The static nature of Rust means you often need a dynamism layer above to tweak stuff that can be awkward to manage. I made inline_tweak for this purpose but it's really far from how easy Unity makes it. https://github.com/Uriopass/inline_tweak
- Since Rust feels very ergonomic, you are tempted to write almost all game logic within it, so mod support feels very backwards to implement as you cannot really tweak "everything" like in Unity games. Thankfully "Systems" game like Factorio or Egregoria can be theoretically split into the "simulation" and the "entities" so mod can still have a great impact. Factorio is built in C++ so has the same problematic. Their Lua API surface is quite insane to be able to hook into everything. https://lua-api.factorio.com/latest/
Now, I have to talk about Bevy: https://bevyengine.org/. It did not exist when I started but it is a revolution in the Rust gamedev space. It is a very powerful 100% Rust game engine that makes you write game code in Rust too. It has incredible energy behind it and I feel like if I'd used Bevy from the start I wouldn't have had to develop many core engine systems. Its modular design is also incredibly pleasant as you can just replace any part you don't like with your own.
- What is Rust's potential in game development?
-
Struggling to find practical uses for Rust
For practical uses of Rust? Whatever you want to program. People use Rust for game development, GUIs, web dev, and more. Anything where abstraction, speed, concurrency, memory safety, etc. are important, Rust will probably be a good fit.
-
Latest Zen Kernel......
Are we game yet? "Almost. We have the blocks, bring your own glue"
-
Really frustrated. [Warning: Bit of a negative rant]
Not seeing anything else that's close to photo realistic. I'm hitting the tough bugs first all too often. More than half my time has been spent on ecosystem problems.
-
What are some stuff that Rust isn't good at?
I also know of https://arewegameyet.rs/
-
Chrome ships WebGPU, a sort-of successor to WebGL. How soon do you see this being adopted by the game dev community?
Yes — and in fact, Firefox's implementation has been the go-to graphics API for folks trying to make Rust gamedev happen for a long time now. Bevy Engine's renderer is built on it, for example.
-
Are We <Thing> Yet?
They're all/mostly websites about the state of the Rust language ecosystem. For example, can you write games in Rust (https://arewegameyet.rs/) or what's the state of the async (https://areweasyncyet.rs/)
rust-rdkafka
-
Rust Cpp Interop via Cxx, Autocxx / any best practices out there
I use this library a lot and it's got some nice touches for how to handle wrapping a C library: https://github.com/fede1024/rust-rdkafka
-
Trace Through a Kafka Cluster with Rust and OpenTelemetry
For this example, we're using rdkafka to build producers and consumers, because it allows us to specify custom headers for each record.
-
A Rust client library for interacting with Microsoft Airsim https://github.com/Sollimann/airsim-client
kafka
-
is there any other alternative for hadoop ecosystem that runs on rust?
You might find https://crates.io/crates/rdkafka helpful
-
Hey Rustaceans! Got an easy question? Ask here (46/2021)!
I am playing with tokio and rust-rdkafka library, following the examples like this one: https://github.com/fede1024/rust-rdkafka/blob/6fb2c37/examples/asynchronous_processing.rs
-
confluent Schema Registry and Rust
The source for the current version of the library can be found on Github. I had to increase the major version because I needed to break the API in order to support all formats supported by the current Schema Registry version. I also added the possibility to set an API key, so it can be used with Confluent Cloud, the cloud offering from Confluent. As part of the latest major refactoring it's also supporting async. This might improve performance of your app, and is also the default for the major Kafka client, more information about why you would want to use async can be found in the async book. The schemas retrieved from the Schema Registry are cached. This way the schema is only retrieved once for each id, and reused for other messages with the same id.
-
Is there an alternative to Kafka that has better support in Rust?
What's wrong with rust-rdkafka?
-
Getting started with Kafka and Rust: Part 2
This is a two-part series to help you get started with Rust and Kafka. We will be using the rust-rdkafka crate which itself is based on librdkafka (C library).
What are some alternatives?
Godot - Godot Engine – Multi-platform 2D and 3D game engine
Kafka Rust Client - Rust client for Apache Kafka [Moved to: https://github.com/kafka-rust/kafka-rust]
RG3D - 3D and 2D game engine written in Rust [Moved to: https://github.com/FyroxEngine/Fyrox]
schema-registry - Confluent Schema Registry for Kafka
GameDev-Resources - :video_game: :game_die: A wonderful list of Game Development resources.
kafka-go - Kafka library in Go
detonator - 2D game engine and editor 💥💣
franz-go - franz-go contains a feature complete, pure Go library for interacting with Kafka from 0.8.0 through 3.6+. Producing, consuming, transacting, administrating, etc.
awesome-bevy - A collection of Bevy assets, plugins, learning resources, and apps made by the community
kafka-rust - Rust client for Apache Kafka
bevy - A refreshingly simple data-driven game engine built in Rust
ksqlDB-GraphQL-poc - A fairly simple setup to show how ksqlDB can be used with GraphQL.