Our great sponsors
|over 2 years ago||6 days ago|
|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.
Hey Rustaceans! Got an easy question? Ask here (29/2021)!
5 projects | reddit.com/r/rust | 20 Jul 2021
There is https://github.com/vishusandy/rocket-auth-login IIRC. It's "third-party" (e.g. not by the rocket team). I haven't used it really (just tinkered around with it). I am also no expert when it comes down to authentication. But I do remember taking a look at the code. It looked all right.
Announcing `stabby`: a stable ABI for Rust with niche optimizations and much more!
5 projects | reddit.com/r/rust | 24 Mar 2023
"Experimental feature gate proposal interoperable_abi #105586"
Embedded Rust on BBC Micro Bit: unlocking Vec and HashMap
4 projects | dev.to | 24 Mar 2023
As an engineer having spent most of 2022 learning the Rust language, I was a little worried about the no_std side of embedded systems programming.4 projects | dev.to | 24 Mar 2023
The reason we are providing our own hasher is that the default one relies on the sys crate which is platform dependent. Our platform being unsupported, the associated implementation either does nothing or fails.
The Tug-of-War over Server-Side WebAssembly
12 projects | news.ycombinator.com | 24 Mar 2023
Further down that GitHub issue, it mentions the problem has been fixed:
Weirdly though, there's another issue (opened prior) that's ongoing and seems to indicate things aren't fixed after all:12 projects | news.ycombinator.com | 24 Mar 2023
>wasm32-unknown-unknown has an ABI incompatibility which means you cannot interoperate between C compiled to Wasm and Rust compiled to Wasm.
Since I was surprised to learn this, and to save everyone else the search, it's https://github.com/rust-lang/rust/issues/71871
Did you have a hard time grasping smart pointers introduced in the Rust book?
2 projects | reddit.com/r/learnrust | 22 Mar 2023
The reasoning behind this is that if there are no more strong references but weak references still exist, the weak references need to refer back to the same memory, which won't be possible if the memory has already been freed. A bit counter intuitive and I got amazed when I first learned it. If you're interested in the details, check out the source code.
Testing the stdout of a RawTerminal
2 projects | reddit.com/r/learnrust | 21 Mar 2023
There's no magic behind Stdout. It is just like writing bytes into files and any types that implement std::io::Write playground. RawTerminal is merely a wrapper for Stdout, and Stdout is an empty struct that implements io::Write that calls a libc function that displays the written bytes to our terminal.
Embedded rust - how to make it rusty?
2 projects | reddit.com/r/rust | 19 Mar 2023
You may find the discussion on issue #53639 (Consider deprecation of UB-happy static mut) from about this point onwards to be illuminating. Specifically, the topic of ISRs and synchronisation on embedded systems is discussed, with alternatives, and it's stated that UnsafeCell is so fundamental that any non-zero-cost to it is considered a bug in the compiler:
Why is holding std sync locks across awaits not caught by the compiler?
3 projects | reddit.com/r/rust | 19 Mar 2023
That's why MutexGuard is not Send. See https://github.com/rust-lang/rust/issues/23465 from 2015.3 projects | reddit.com/r/rust | 19 Mar 2023
There is a tracking issue to implement a lint for this in the compiler: https://github.com/rust-lang/rust/issues/83310
What are some alternatives?
carbon-lang - Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Elixir - Elixir is a dynamic, functional language designed for building scalable and maintainable applications
Odin - Odin Programming Language
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
mimalloc - mimalloc is a compact general purpose allocator with excellent performance.
scala - Scala 2 compiler and standard library. For bugs, see scala/bug
go - The Go programming language
Rustup - The Rust toolchain installer
spaCy - 💫 Industrial-strength Natural Language Processing (NLP) in Python