Hey Rustaceans! Got a question? Ask here! (40/2022)!

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • rust

    Empowering everyone to build reliable and efficient software.

  • There's an unstable feature that will be able to this more neatly. However, currently it splits [T;N] into &[T;M] and &[T] (as opposed to the preferable &[T;N-M]). This is because doing operations on const generics (N - M in this case) is yet another unstable feature and one that's even marked as incomplete iirc. So yeah most likely this will be easily doable with split_array_ref / split_array_muy in the future but that future might be quite a while away.

  • unsafe-code-guidelines

    Forum for discussion about what unsafe code can and can't do

  • No, this is something the unsafe working group is working on - but for now there's no actual specification for what you can and cannot do in unsafe code. There's things you definitely cannot do (read uninitialized memory, mutate through a shared reference (without UnsafeCell), etc) but there's definitely behavior that the rust team seems to have reserved as "we may or may not make this UB". The best place to look would be https://github.com/rust-lang/unsafe-code-guidelines

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • docs.rs

    crates.io documentation generator

  • Documentation Question: What do these headers in docs.rs mean? What's the difference, and are any unsafe to use?

  • egui

    egui: an easy-to-use immediate mode GUI in Rust that runs on both web and native

  • In the examples for egui. The double period (..) comes before Default::default() on the last line.

  • miri

    An interpreter for Rust's mid-level intermediate representation

  • That's exactly what Miri is designed to do!

  • rust-toolchain

    Concise GitHub Action for installing a Rust toolchain

  • SnakeViz

    An in-browser Python profile viewer

  • I'm looking for a Rust equivalent Python's cProfile https://docs.python.org/3/library/profile.html if possible with visualizations like in SnakeViz https://jiffyclub.github.io/snakeviz/

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • flamegraph

    Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3 (by flamegraph-rs)

  • Probably cargo flamegraph?

  • ws-rs

    Lightweight, event-driven WebSockets for Rust.

  • I wanted to try rust and developed a game websocket backend using ws-rs. Of course I didn't realize it was hardly maintained when I made my choice. The paradigm was very nice and simple, and it seemed really harder for a beginner to use (tokio-)tungstenite for example...

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts