User Tools

Site Tools


general:rust

This is an old revision of the document!


Rust install from tar.gz

  • Unpack rust-1.60.0-x86_64-unknown-linux-gnu.tar.gz (after checking gpg signature)
  • Run install.sh –prefix=/usr/local/rust –disable-ldconfig
  • Make symlinks in /usr/local/bin (if not done previously)
  • Create /etc/ld.so.conf.d/rust.conf contents: /usr/local/rust/lib
  • Unpack rustc-1.60.0-src.tar.gz (after checking gpg signature)
  • mkdir -p /usr/local/rust/lib/rustlib/src/rust
  • cp -a rustc-1.60.0-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.

https://www.youtube.com/watch?v=rAF8mLI0naQ&t=1355s

Using C libraries

Rust guides

Rust memory

general/rust.1651778277.txt.gz · Last modified: 2022/05/05 19:17 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki