stdarch
utils
Our great sponsors
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.
stdarch
-
Detecting SIMD support on ARM with Android (and patching the Rust compiler for it)
Good to know! How would you compare it with the std_detect implementation, underlying the standard library (https://github.com/rust-lang/stdarch/tree/master/crates/std_detect)?
-
Filtering a Vector with SIMD Instructions (AVX-2 and AVX-512)
Fortunately, @burntsushi (thanks) is sharing the workaround in the rust-lang github issue. The trick is to reinterpret a (non-tagged) union for this.
-
rustc_codegen_gcc: Progress Report #14
The stdarch tests will test target-specific stuff like SIMD while to UI tests are more generic. They both test that the compiler will produce an executable that produce the correct output (or that rustc itself will produce the correct output).
-
rustc_codegen_gcc: Progress Report #13
I made enough progress to be able to compile the tests of stdarch and most of them pass: that's a huge milestone!
-
Incredibly fast UTF-8 validation
You can check the code. Apparently the std implementation uses the OSXSAVE register to check that the OS supports saving AVX/AVX2 registers during context switches and only then enables it. In a non-std context one might not generally be able to depend on the OSXSAVE register.
utils
-
Announcing `compact_str` version 0.7! A small string optimization for Rust
I didn't use any inline asm, instead I wrote the simplest if statement possible, which I confirmed on x86_64, x86, and aarch64 compiles down to use the platform's supported conditional move instructions. If this changes in the future and there's a need to write inline asm, you can do so in a portable way, e.g. the cmov crate.
-
Shoot me straight.
There's also cpufeatures which might suit your use case better (depending on exactly how you want to do it).
-
Crate for AES256 - which one to choose? Questions about block cipher modes and AEAD too.
I have seen that RustCrypto also offers a create for securely zeroing memory with: zeroize
-
`kindly`: a simplistic (and hopefully educational) implementation of a set-user-ID-root program (think mini `sudo`) for Linux
The zeroing routine itself looks fine to me. You might want to compare your code with the (already mentioned) zeroize crate, which does something similar (or maybe identical?).
-
Maybe found a Y2k bug in the rust-crypto DER-encoding util?
To save a few clicks, this was found to be, indeed, a Y2K issue, and der v0.4.1 has just been released to fix it. Citing the comment added to the issue after the fact:
-
Incredibly fast UTF-8 validation
I opened a tracking issue for that.
-
Now that the long-awaited const generics (MVP) have come to stable in 1.51, what crates are going to gain the most from it?
https://github.com/RustCrypto/utils/pull/325#issuecomment-791503136
What are some alternatives?
reference - The Rust Reference
reference - ⭕ Share quick reference cheat sheet for developers.
sudo_pair - Plugin for sudo that requires another human to approve and monitor privileged sudo sessions
Smart-Contract-Security-Audits - Certified Smart Contract Audits for Ethereum, Solana, Near, Cardano, Aptos, Sui, Binance Smart Chain, Fantom, EOS, Tezos by Chainsulting
block-ciphers - Collection of block cipher algorithms written in pure Rust
simd-alphatensor-rs - 🧮 alphatensor matrix breakthrough algorithms + simd + rust.
heapless - Heapless, `static` friendly data structures
rust - Empowering everyone to build reliable and efficient software.
rust-crypto - A (mostly) pure-Rust implementation of various cryptographic algorithms.
blog_os - Writing an OS in Rust
tinyvec - Just, really the littlest Vec you could need. So smol.