cargo-expand VS rental

Compare cargo-expand vs rental and see what are their differences.

cargo-expand

Subcommand to show result of macro expansion (by dtolnay)

rental

Rust macro to generate self-referential structs (by jpernst)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
cargo-expand rental
16 3
2,435 211
- -
9.0 1.2
14 days ago about 3 years ago
Rust Rust
Apache License 2.0 GNU General Public License v3.0 or later
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.

cargo-expand

Posts with mentions or reviews of cargo-expand. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-02-04.

rental

Posts with mentions or reviews of rental. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-15.
  • Workaround for self-referential structs?
    1 project | /r/rust | 28 Dec 2021
    Before choosing rental, one should be aware that, according to a huge disclaimer on crates.io, rental is no longer maintained or supported. (The repository is archived.)
  • Things you can’t do in Rust (and what to do instead)
    6 projects | news.ycombinator.com | 15 May 2021
    Overall this is a great blog post that highlights many of the things newcomers to Rust try out or are surprised why they are so hard and discouraged. One nit:

    > Luckily there are some crates that take the solution and present a safe interface, such as the rental and once_self_cell crates.

    Please don't link to the rental crate any more, as it's out of maintenance. The github repo is archived [0] and the maintainer explicitly stated they don't want to hand over maintenance to someone else. Thankfully the maintainer was still available to implement one tiny patch recently to make it not fire a future compat lint [1], but given this announcement by the maintainer, generally I'd recommend people to move to maintained alternatives. Especially new projects should build on something else. Instead of rental, the blog post could mention ouroboros. Also as a nit, the once_self_cell crate has been renamed to self_cell. There is also selfstack but I haven't used it so don't know how good it is.

    [0]: https://github.com/jpernst/rental/commit/213671ab3aab3452efd...

    [1]: https://github.com/rust-lang/rust/issues/84428

    5 projects | /r/rust | 14 May 2021
    I agree with the general sentiment, and much of the stuff I build has little activity after an initial phase of getting it "done". However, I'm still around to merge important patches. But in the case of rental, the git repository is archived and most importantly the author has written that "users are encouraged to explore other solutions". Recently users of rental have been facing a future compat lint in rental, and thankfully the maintainer fixed it, but I think their intent of urging users to alternatives remains as immediately afterwards the repo got re-archived.

What are some alternatives?

When comparing cargo-expand and rental you can also consider the following projects:

saito-rust - A high-performance (reference) implementation of Saito in Rust

lol-html - Low output latency streaming HTML parser/rewriter with CSS selector-based API

proc-macro-workshop - Learn to write Rust procedural macros  [Rust Latam conference, Montevideo Uruguay, March 2019]

wg - Coordination repository of the embedded devices Working Group

index-list - A doubly-linked list implementation in safe Rust using vector indexes

rust - Empowering everyone to build reliable and efficient software.

not-yet-awesome-embedded-rust - A collection of items that are not yet awesome in Embedded Rust

quote - Rust quasi-quoting

cargo-llvm-cov - Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).

rustviz - Interactively Visualizing Ownership and Borrowing for Rust

cargo-edit - A utility for managing cargo dependencies from the command line.