cargo-expand
rustviz
cargo-expand | rustviz | |
---|---|---|
16 | 8 | |
2,435 | 2,630 | |
- | 0.8% | |
9.0 | 5.1 | |
14 days ago | 3 months ago | |
Rust | Rust | |
Apache License 2.0 | 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.
cargo-expand
-
What is Rust doing behind the scenes?
It's been superseded by https://github.com/dtolnay/cargo-expand
-
Why dereferencing coercion is not used here?
Try installing cargo expand, it's useful to see how macros eventually get expanded. For example, if you run cargo expand on the following code
-
Procedural Macros are really hard to understand
You can use cargo expand to see what your code expands to: https://github.com/dtolnay/cargo-expand
-
[blog] Rust should own its debugger experience
Not too familiar with macros but does cargo-expand do what you want or did you mean something else?
-
Help me understand the borrowing and moving variable concept!
Yes. You can use Tools > Expand Macro on the playground or install and run cargo-expand to see what the macro expands to. It just adds a & before the argument.
- Advanced Metaprogramming in C: A select statement
-
How does declaring variables in macros work
cargo expand
-
How to see macro's source code in crate?
Along with what others are saying, there is also cargo expand which can show you what code a macro generates
-
How does Rust Python ffi work?
Something that may help you understand code with magic proc macros is this utility. It's basically a wrapper around a Rust compiler flag that allows you to expand macros for a file.
-
How does libtest know which functions are marked with #[test]?
You can use https://github.com/dtolnay/cargo-expand to examine how it works.
rustviz
- Website similar to cppinsights.io for Rust visualization
- [Media] Hot off the press (Rust For Rustaceans)
-
Visual lifetime indicator
Not ide plugin but there is this.
-
Where can I learn advanced Rust and how to think in Rust idioms?
There’s a cool project called RustViz that lets you interactively visualize lifetimes and borrowing. They have an examples directory here.
- RustViz: Generates Visualizations of Rust Lifetime and Borrowing Mechanism
- rustviz/rustviz
- Rustviz: Interactively Visualizing Ownership and Borrowing
What are some alternatives?
saito-rust - A high-performance (reference) implementation of Saito in Rust
flowistry - Flowistry is an IDE plugin for Rust that helps you focus on relevant code.
proc-macro-workshop - Learn to write Rust procedural macros [Rust Latam conference, Montevideo Uruguay, March 2019]
cargo-llvm-cov - Cargo subcommand to easily use LLVM source-based code coverage (-C instrument-coverage).
lol-html - Low output latency streaming HTML parser/rewriter with CSS selector-based API
idiomatic-rust - 🦀 A peer-reviewed collection of articles/talks/repos which teach concise, idiomatic Rust.
rust - Empowering everyone to build reliable and efficient software.
noria - Fast web applications through dynamic, partially-stateful dataflow
quote - Rust quasi-quoting
cargo-edit - A utility for managing cargo dependencies from the command line.
PyO3 - Rust bindings for the Python interpreter