cargo-llvm-lines
Count lines of LLVM IR per generic function (by dtolnay)
async-trait
Type erasure for async trait methods (by dtolnay)
cargo-llvm-lines | async-trait | |
---|---|---|
3 | 7 | |
379 | 1,708 | |
- | - | |
7.4 | 8.2 | |
7 days ago | 4 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
cargo-llvm-lines
Posts with mentions or reviews of cargo-llvm-lines.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-10-22.
-
Making a Rust crate compile faster [video]
This is a livestream, the "offline" artefact is a function of that but not the primary one. Jon essentially uses livestreams as exploratory labs / presentations, and even ignoring the regular Q&As audience interaction is both common and commonly useful there — for instance in this one /u/dtolnay suggests something about cargo-llvm-lines as Jon is working with it.
-
1.56 Compile time is through the roof!?
If you want to dig further, I see though that some of this time is spent in codegen (generating LLVM IR) and in LLVM. Maybe something is generating much more IR than before, which then takes a lot of time to process. Another tool is https://github.com/dtolnay/cargo-llvm-lines which shows the number of lines of unoptimized LLVM IR for each of your functions. In general it can be useful to optimize compile times of your project, in this case it might show which area of your code triggers this bug.
-
David Tolnay - thank you
cargo llvm-lines, too.
async-trait
Posts with mentions or reviews of async-trait.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-09-05.
-
Introduction to Rust generics [1/2]: Traits
As of today, async functions in traits are not natively supported by Rust. Fortunately, David Tolnay got our back covered (one more time): we can use the async-trait crate.
- How to assign async fn to type?
-
Understanding lifetimes for real?
You might want to check out https://github.com/dtolnay/async-trait to be able to declare async functions in a trait.
-
David Tolnay - thank you
Also async-trait (GitHub), dtolnay has done some great work!
-
What are your favorite tricks or hacks in rust?
Does async-trait count as a trick or hack? It's not my hack, but it's a workaround/hack that I use every single day.
-
Why asynchronous Rust doesn't work
This macro goes a very long way toward solving the problem: https://github.com/dtolnay/async-trait
-
Question about traits, associated types, Future, Pin, and Send...
I'm still learning async to I cannot answer all the questions. First of all, I use this -> https://github.com/dtolnay/async-trait to take care of the async-inside-traits mess.
What are some alternatives?
When comparing cargo-llvm-lines and async-trait you can also consider the following projects:
rust-quiz - Medium to hard Rust questions with explanations
monadless - Syntactic sugar for monad composition in Scala
measureme - Support crate for rustc's self-profiling feature
ureq - A simple, safe HTTP client
semver-trick - How to avoid complicated coordinated upgrades
reqwest - An easy and powerful Rust HTTP Client
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
serde-yaml - Strongly typed YAML library for Rust
cargo-bisect-rustc - Bisects rustc, either nightlies or CI artifacts
db-dump - Library for scripting analyses against crates.io's database dumps
toml-rs - A TOML encoding/decoding library for Rust
cargo-llvm-lines vs rust-quiz
async-trait vs monadless
cargo-llvm-lines vs measureme
async-trait vs ureq
cargo-llvm-lines vs semver-trick
async-trait vs reqwest
cargo-llvm-lines vs axum
async-trait vs serde-yaml
cargo-llvm-lines vs cargo-bisect-rustc
async-trait vs rust-quiz
cargo-llvm-lines vs db-dump
async-trait vs toml-rs