cargo-cacher
rust-playground
Our great sponsors
cargo-cacher | rust-playground | |
---|---|---|
2 | 49 | |
121 | 1,050 | |
- | 1.7% | |
10.0 | 9.2 | |
about 3 years ago | 7 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
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-cacher
-
Offline Rust
I had my own full local mirror with https://github.com/ChrisMacNaughton/cargo-cacher a few years back (repeated downloads in docker builds -.-). Iirc, it was 43 GB. I should probably donate some money for doing that… (To who, actually? Mozilla? Rust foundation?)
rust-playground
-
Enhance Rust errors with file and line details
We can also optimize this more (e.g. a simple optimization to be two words instead of three: https://play.rust-lang.org/?version=stable&mode=debug&editio.... Also allows opting `Send` and `Sync` out or using non-`'static` lifetimes), but this works as a baseline. The only disadvantage is that if called in a function with `#[track_caller]` this will report the location of the caller... But this is something I can live with.
-
Compiler Development: Rust or OCaml?
I like Rust, but this isn't one of it's strong suits. The code in the article is what Rustfmt outputs (playground link below), so it's syntactically idiomatic.
https://play.rust-lang.org/?version=stable&mode=debug&editio...
-
Access the rust playground right in terminal
A tool, allowing you to access the rust playground right in the terminal and retaining all the features available on the web version.
-
In Which I Claim Rich Hickey Is Wrong
This is a breaking change too, as it can break type inference: https://play.rust-lang.org/?edition=2021&gist=8d528bcec2b92b...
-
Examples of code playground/sandbox apps taken to the next level, how they work, and how far you would take a code playground site?
At first I was thinking about how to create a package manager website for a custom programming language, looking at crates.io and npmjs.com. But then you also want to have a "try" feature, if this package manager is for a language, so then it's like "code sandboxes" like play.rust-lang.org and the robust codesandbox.io for JS/TS.
-
Hey Rustaceans! Got a question? Ask here (25/2023)!
If you have a StackOverflow account, consider asking it there instead! StackOverflow shows up much higher in search results, so having your question there also helps future Rust users (be sure to give it the "Rust" tag for maximum visibility). Note that this site is very interested in question quality. I've been asked to read a RFC I authored once. If you want your code reviewed or review other's code, there's a codereview stackexchange, too. If you need to test your code, maybe the Rust playground is for you.
-
The Rust I wanted had no future
The compiler won't choke, but it will stop you from accessing the value.
It doesn't matter if you omit the `else` clause or not, the type system ensures that you can't access invalid values.
Here's a bit of an example based off of @Ygg2's code: https://play.rust-lang.org/?version=stable&mode=debug&editio...
-
It’s Not Wrong that “ ”.length == 7
https://play.rust-lang.org/?version=stable&mode=debug&editio...
So I tried this in Rust, when you use `.chars().count()`, it gives you that same useless 5 value. Should definitely be 1 in that case. One character, you press right or left once on the keyboard, etc.
-
Sigils are an underappreciated programming technology
> How would you write that, if the field access was spelled `self.foo`? The language wouldn't be able to tell that you're not just recursively calling the getter!
You can require parentheses for method calls put methods and fields in separate namespaces.
https://play.rust-lang.org/?version=stable&mode=debug&editio...
Elixir supports paren-free calls but the default linter and formatter won't let you use them except for a few whitelisted DSLs. I've never missed not having them.
-
Companies: We can't find any good candidates!!! Also companies:
aaand here it is in Rust ([repl](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=a57f434765c313334c38ee8b6dedf5a4)): struct A; impl PartialEq for A { fn eq(&self, _other: &isize) -> bool { true } }
What are some alternatives?
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
mdBook - Create book from markdown files. Like Gitbook but implemented in Rust
trunk - Build, bundle & ship your Rust WASM application to the web.
Rocket - A web framework for Rust.
egui - egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native
sqlx - 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL.
rust-analyzer - A Rust compiler front-end for IDEs
tuntap-mac
JS Bin - Collaborative JavaScript Debugging App
carbon - :black_heart: Create and share beautiful images of your source code
WebAssemblyStudio - Learn, Teach, Work and Play in the WebAssembly Studio
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]