remoc
strum
remoc | strum | |
---|---|---|
6 | 19 | |
148 | 1,590 | |
3.4% | - | |
7.9 | 8.0 | |
about 1 month 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.
remoc
-
Inter-process Communication between two programs on Linux.
u/OP if you want to use unix/tcp socket directly check out https://crates.io/crates/remoc it works over both and is a WAY better idea then http...
-
the best way to pass parameters to egui
You can use an RPC framework to not invent the wheel from scratch like for example https://crates.io/crates/remoc Why? Because such program as an https proxy will likely often run as a daemon started via an init system for example systemd. As you can not start a GUI program as a daemon under unix the GUI wouldn't work anyway. It might even run on a headless server with any GUI and you might want to start you GUI remotely and connect to it.
-
What are some less popular but well-made crates you'd like others to know about?
remoc - a really good rpc framework with agnostic transport and encoding and support for observable/streamable objects.
-
Tsyncp: Channel-like primitives (mpsc, broadcast, etc) over TCP
We had the same challenge and developed Remoc for that. There also is Tarpc, however it does not support channels, only RPC.
-
Pubsub-like library for microservices?
Remoc might do what you want, basically channels generic for anything that implements AsyncRead and AsyncWrite. https://github.com/ENQT-GmbH/remoc/
strum
-
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
What are some alternatives?
nvim-send - Essentially "nvim --remote-expr <expr>" / "nvim --remote-send <keys>" or "nvr --nostart --remote-send <keys>" in Rust
enum-map
Coerce-rs - Actor runtime and distributed systems framework for Rust
serde-plain - A serde serializer that serializes a subset of types into plain strings
rmp-rpc - a msgpack-rpc rust library based on tokio
enum-iterator - Tools to iterate over all values of a type
postage-rs - The feature-rich, portable async channel library
rust-djangohashers - A Rust port of the password primitives used in Django Project.
lifeline-rs - A dependency injection library for message-based applications
sonyflake-rs - 🃏 A distributed unique ID generator inspired by Twitter's Snowflake.
micromath - Embedded Rust arithmetic, 2D/3D vector, and statistics library
goblin - An impish, cross-platform binary parsing crate, written in Rust