redis-rs
rust-embed
Our great sponsors
redis-rs | rust-embed | |
---|---|---|
14 | 9 | |
3,410 | 1,505 | |
1.8% | - | |
9.3 | 7.3 | |
about 19 hours ago | 10 days ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | 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.
redis-rs
-
Meet Fred: The most awesome Redis client for Rust.
The goto Redis client for Rust is called redis-rs. It has over 3k stars on Github. but I found it very annoying to use because I quickly found out that if you want to set any value you had to get a mutable reference to the underlying client. Which meant great pain to store Redis client in the global scope. People who do not know what a mutable reference is consider the let keyword in JavaScript. you can mutate or change a variable that is initiated with let.
-
[I made this] – staticPi – websocket forwarder
staticpi, is a websocket forwarding service. Basically, it enables one to keep a Raspberry pi, or any computer, “connected”, in order to send and receive messages to and from any client, without having to deal with a static IP address, open ports on your router, or similar. Built in Rust, using axum, which in turn uses tungestine-rs for the websocket connections, tokio, sqlx, redis-rs and others.
-
A Rust client library for interacting with Microsoft Airsim https://github.com/Sollimann/airsim-client
redis (use streams and pubsub)
-
Redust: a new Redis client
Are you addressing the long-standing issue that the redis client has related to dropped connections?
-
Chumsky, a parser combinator crate that makes writing error-tolerant parsers with recovery easy and fun!
I switched to LALRPOP for gluon but I still use combine in https://github.com/mitsuhiko/redis-rs and some other projects which need to parse "protocols" (less need for good error messages/error recovery and more need for speed).
-
Getting started with MongoDB and Redis in Rust
The project is implemented with MongoDB Rust driver and redis-rs crate.
-
Redis Streams in Action - Part 2 (Rust app to consume from the Twitter Streaming API)
redis-rs, a Rust library for Redis with both high and low-level APIs
-
What are some examples of particularly well written crates?
I think the redis crate was a well-organized API library. It's still sometimes hard to know the right things to make public and I think they nailed it.
- Trying to utilize sqlx with postgresql and expecting performance on par with jdbc 😀. How do you guys do prepared statement, arg/param setting, batch insertions etc? The documentation doesn’t take me anywhere near that.
-
https://np.reddit.com/r/rust/comments/m1m742/klaxitredisstreamrs_consuming_highthroughput/grxjrki/
We have been using it before it got merged in redis-rs (we upvoted the PR here https://github.com/mitsuhiko/redis-rs/pull/319 a while back ;-))
rust-embed
-
Learn WGPU updated to 0.15!
Ref: https://github.com/pyrossh/rust-embed/issues/205 Rust-embed behavior in debug mode is incompatible with cross-compilation. It nails a path from build time into the executable. Force release mode o"
- How to include Rocket.rs template files and static files in built binary
-
Install package with third party files (ex. sql) - best practice
Not sure how common it is exactly but I've definitely seen it done here and there and done it myself in some projects. Having self-contained binaries is super nice and avoids a fair few issues. rust-embed makes it even better.
-
Serving a frontend with a Rust Web framework
They even accepted one of my feature requests to add some file metadata which makes doing this kind of thing easier: https://github.com/pyros2097/rust-embed/issues/140
-
Rust and Sqlite
Note: include_str! can make compilation a bit slow. The rust-embed crate can read files in debug mode as normal and embed the files in release mode.
-
Hey Rustaceans! Got an easy question? Ask here (6/2022)!
For reference, there are examples for several frameworks in the rust-embed repo.
-
Getting started with MongoDB and Redis in Rust
But then it turned out that the images can’t be read from the database due to the lack of GridFS support in MongoDB Rust Driver (open ticket). So for simplicity purposes, I decided to use rust_embed crate which allows including images in the application binary at compile time (at the development time they are loaded from a file system). (It is also possible to store images separately from the application; images folder should be mounted as a volume in the Docker Compose service definition)
-
Introduction to gRPC in Rust
Images of planets are included in the application binary at compile time using rust_embed crate (at the development time they are loaded from a file system).
-
What is the idiomatic way of embed files into Rust binary?
Maybe rust-embed can help you? I haven't used it myself, just came across the crate on this sub a while ago.
What are some alternatives?
tikv - Distributed transactional key-value database, originally created to complement TiDB
teloxide - 🤖 An elegant Telegram bots framework for Rust
r2d2 - A generic connection pool for Rust
sailfish - Simple, small, and extremely fast template engine for Rust
PickleDB - PickleDB-rs is a lightweight and simple key-value store. It is a Rust version for Python's PickleDB
MoonZoon - Rust Fullstack Framework
sled - the champagne of beta embedded databases
yew-sse-example - An example of use of yew-sse
MeiliSearch - A lightning-fast search API that fits effortlessly into your apps, websites, and workflow
bloomrpc - Former GUI client for gRPC services. No longer maintained.
Gibbs MySQL Spyglass - Gibbs MySQL Spyglass
mongo-rust-driver - The official MongoDB Rust Driver