Crate of the Week


An alternative to derive-builder
2 Likes

0.1 release was just announced: https://github.com/EmbarkStudios/rust-gpu/releases/tag/v0.1

5 Likes

Online demo can be found here:

3 Likes

Allows applications to better declare their intentions programmatically for harder-to-abuse interfaces.

5 Likes

Vec but with strongly typed indices, e.g. instead of Vec<CpuUsage> // Indexed by CPU core you can do TiVec<CpuCoreId, CpuUsage>. It prevents accidentally using the wrong index type, which is a common source of bugs.

Despite how useful it is (and IMO should be in std), it has 0 stars and only 300 downloads.

5 Likes

Rustc uses something similar: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_index/vec/struct.IndexVec.html

3 Likes

Somehow this has never been suggested (or I didn't find it :slight_smile: ). A neural network inference library, written purely in Rust for models in ONNX, NNEF and TF formats. Very extensive support for many different operators and comparable speed to the onnxruntime Python package.

Also compiles to WebAssembly and has JS bindings (https://github.com/bminixhofer/tractjs).

IMO the most important crate for working with Neural Networks in Rust. Support for inference of other ML models such as Decision Trees is also coming up.

4 Likes