strum
A small rust library for adding custom derives to enums (by Peternator7)
heed
A fully typed LMDB wrapper with minimum overhead 🐦 (by meilisearch)
Our great sponsors
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
strum
Posts with mentions or reviews of strum.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-11.
-
What are some common verbose code patterns in rust and unique ways to reduce the said verbosity?
Take a look at the strum crate. https://crates.io/crates/strum
-
Published my first Crate today to map Environment Variables to Enums
I would be use something like https://github.com/Peternator7/strum if I need map string to enum and serde is not the option.
-
Two-way alternative to enum_kinds crate?
Looks like proper support for this in strum has been proposed.
-
Best way of associating enums with values?
This crate can generate an iterator for you using a macro https://github.com/Peternator7/strum
-
Hey Rustaceans! Got a question? Ask here (4/2023)!
The strum crate is also good for removing this kind of boilerplate, and worth checking out!
-
What are some less popular but well-made crates you'd like others to know about?
strum is among my favorite crates to recommend. Favorites of this crate include EnumProperty and EnumIter
-
What's everyone working on this week (45/2022)?
I released my first crate that provides a derive macro to easily obtain a name of a current variant in an enum as a string. I did it mostly to learn about procedural macros and the process of releasing a crate. I then found out there is strum which does this and much more. Nonetheless, I learned a lot and I found couple of nice tools like ```cargo-release and git-cliff.
-
Hey Rustaceans! Got a question? Ask here! (33/2022)!
I used https://crates.io/crates/strum to iterate over the enum variants, otherwise you'd have to hardcode the list of variants and wouldn't gain anything.
-
Questions about enums
If you chose to go with the "derive a trait" route the strum crate might be what you're looking for. It lets you use derive to add information about variant count, discriminants or even iterators over variants to an enum.
-
Match enum with String
You might want something like strum
heed
Posts with mentions or reviews of heed.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-06.
-
What's everyone working on this week (10/2023)?
At Meilisearch we are currently trying to add a better error handling in heed v0.20, our LMDB key-value store wrapper. Unfortunately, when there are a lot of generics it can become harder to play with…
-
We’re the Meilisearch team! To celebrate v1.0 of our open-source search engine, Ask us Anything!
There are issues and pull requests but I advise you to look at the milli folder in the Meilisearch repository, it’s where all the logic is done. We extensively use RoaringBitmaps, heed the LMDB wrapper and grenad when indexing.
-
Release of an alpha version to perfect the heed library: the most maintained Rust LMDB wrapper
I’ll continue to introduce new features and new safety guards until v0.20.0. Can you tell me more about your project? Or is it private?
-
Are there any embedded databases that have multiple-process support?
LMDB support multiple readers and one writer at the same time. It is ensured by the library. Note that LMDB is a key-value store. You can use the heed library which is the most maintained Rust wrapper.
-
Key/Value Store Recommendations
Note that heed is ensuring that you are not trying to use transactions, databases and environments in the right way. I have added much more work in that regard in the important update that I am working on too!
-
What's everyone working on this week (45/2022)?
I am currently working on exposing the new LMDB encryption feature from heed the safe LMDB wrapper with the help of the Cryptography community.
- Ask for advice from the cryptographic community about heed: the LMDB wrapper
-
redb: high performance, embedded, key-value database in pure Rust
Have you considered heed or even sanakirja?
-
[Requesting Help] LMDB Databases in Rust
rkv hasn't been updated for a while. I recommend using heed - https://docs.rs/heed
-
I need a stable Key-Value database
For wrappers around LMBD, I'd recommend RKV or Heed https://github.com/mozilla/rkv https://github.com/Kerollmops/heed
What are some alternatives?
When comparing strum and heed you can also consider the following projects:
enum-map
sled - the champagne of beta embedded databases
serde-plain - A serde serializer that serializes a subset of types into plain strings
KeyDB - A Multithreaded Fork of Redis
enum-iterator - Tools to iterate over all values of a type
lmdb-rs - Rust bindings for LMDB
rust-djangohashers - A Rust port of the password primitives used in Django Project.
rkv - A simple, humane, typed key-value storage solution.
sonyflake-rs - 🃏 A distributed unique ID generator inspired by Twitter's Snowflake.
milli - Search engine library for Meilisearch ⚡️
goblin - An impish, cross-platform binary parsing crate, written in Rust
nanodb-specification - Nano ledger database format specification and Python sample