User Tools

Site Tools


Rust install from tar.gz

  • Unpack rust-1.XX.X-<arch>-unknown-linux-gnu.tar.gz (after checking gpg signature)
  • Run –prefix=/usr/local/rust –disable-ldconfig (for minimal install –components=rustc,rust-std-armv7-unknown-linux-gnueabihf,cargo)
  • Make symlinks in /usr/local/bin (if not done previously - maybe avoid rls as emacs defaults to that instead of rust-analyzer)
  • Create /etc/ contents: /usr/local/rust/lib
  • Run ldconfig
  • Unpack rustc-1.XX.X-src.tar.gz (after checking gpg signature)
  • mkdir -p /usr/local/rust/lib/rustlib/src/rust
  • cp -a rustc-1.XX.X-src/library/ /usr/local/rust/lib/rustlib/src/rust/

Rust error handling

Use #[non_exhaustive] for error enums to avoid API breaks when just adding a new type of error.

Using C libraries

Rust guides

Rust memory

general/rust.txt · Last modified: 2022/06/22 09:18 by