inventory
typetag
Our great sponsors
inventory | typetag | |
---|---|---|
6 | 9 | |
454 | 547 | |
- | - | |
6.5 | 5.8 | |
over 2 years ago | over 2 years ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
inventory
-
Announcing Rust 1.62.0
Yesss! This release finally lets David Tolnay's inventory crate live again as v0.3! 🙌🏻
-
What are legitimate problems with Rust?
Regarding static init: https://crates.io/crates/inventory (https://github.com/dtolnay/inventory)
-
dtolnay/inventory got archived, is there an alternative ?
@dtolnay I noticed you just archived the repos for inventory, linkme, gflags, and typetag, which I assume implies a deprecation.
-
I'm building a modular stream relay in Rust and looking for some advice
Plugin systems. At first I wanted each component to be a separate .so file and let the engine loads them dynamically. However this turns out to be extreamly hard, especially since I want asynchronous. Now I have switched to compile-time components selection. It still has one problem: the repetition of the componenet list. I have to list all components in the toml file, as well as in my main.rs. So far I only found https://github.com/dtolnay/inventory, but it looks "hacky" for me. I have also considered build scripts, but it pretty much destroyed the IDE experience.
-
What's your favourite under-rated Rust crate and why?
I like dtolnay's inventory or linkme crates to register items in a central list, just using decentralized annotations.
typetag
-
How to save a Box<dyn Trait> varialble to a local file?
The error message is pretty clear: this behavior has just not been implemented in typetag. There's even an open issue discussing why this is difficult to do.
- TypeTag/inventory/linkme are unarchived
-
Mapping between JSON and a list of structs which implement a trait
So something like this then? https://github.com/dtolnay/typetag
-
Ideal way of converting trait objects into other trait objects
My thought process is I will use Serde deserialization and typetag so that I can get a Vec> from the configuration file. Then I just have to figure out a way to construct Vec> from it and I will be set.
-
Question on the future of inventory, typetag, linkme, ctor, and related crates affected by #47384
I am using the typetag crate in a project. I have a use case that is very similar to the example laid out in the crate's documentation. Given the issue being discussed in #47384, it seems evident that using typetag would be a bad idea, for the time being.
-
dtolnay/inventory got archived, is there an alternative ?
@dtolnay I noticed you just archived the repos for inventory, linkme, gflags, and typetag, which I assume implies a deprecation.
-
Instantiate a struct from TypeId
You're right, you'd basically need some kind of hashmap, that gets initialized before the application starts. It might work with a similar approach like in typetag. typetag is a library that allows (de)serializing into/from dynamic objects. But it requires annotating each type you're planning to use with an attribute.
-
Untapped potential in Rust's type system
This allows me define methods on both borrowed (`Message<&str>`) and owned (`Message`) versions without issues. When remaining inside the process, the borrowed version is passed around and when sent across the process boundaries I can deserialize it to an owned version. This problem prevent me from using Typetag and I am still not sure how it should be solved.
[0]: https://github.com/dtolnay/typetag
-
Serialize arbitrary struct using traits?
ended up using https://github.com/dtolnay/typetag which uses this under the hood, so thanks!
What are some alternatives?
fusioninventory-for-glpi - FusionInventory plugin for GLPI
linkme - Safe cross-platform linker shenanigans
rfcs - RFCs for changes to Rust
magento-2-social-login - Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
rust-ctor - Module initialization/global constructor functions for Rust
magento2-replace-tools
n98-magerun2 - The swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
enarx - Enarx: Confidential Computing with WebAssembly
magento2-regenerate_url_rewrites - Magento 2 extension which add feature of regenerating a url rewrites of products/categories
rust-djangohashers - A Rust port of the password primitives used in Django Project.
logos - Create ridiculously fast Lexers