Install
Chester Wyke December 07, 2022 Updated: April 15, 2025 #rustConditional Compilation
Install
Crate Serde
References
Cargo
Toolchain (Nightly)
String Formatting
Time
Crate Tokio
Publish Crate
rustfmt
Single file script
Snippets
CI
Pattern Type State
WASM
Create New Crate
Documentation
JSON
Pattern Builder
Testing
Working with collections of bytes
Thoughts about rust
Are we yet
OnceLock
Crate Actix Web
Stack Overflow
Crate Clap
Crate Poll Promise
Crate Insta
Tips
Create new egui project
Crate CSV
Crate egui
Iterators
Crate Tracing Subscriber
Regex
vscode
Enum Conversion
Macros
lettre
Google APIs
Linux (Debian)
Tested on Ubuntu 18.04 (2022-12-02)
Source: rust-lang
NB: It has come to my attention that cargo can also be installed from the debian repos, however I have still decided to document the approach using the script because it provides more flexibility to choose where cargo is installed. Further it is recommended by rust-lang to use rustup and I did not find a package for rustup in the debian repos. I’ve also become aware the cargo from the debian repos is usually outdated.
Installation
Optional installations to make things go more smoothly (Maybe needed later). If these are done you shouldn’t need to install anything else after the command to install rust. (Not needed in GitHub Code Spaces)
Install Rustup, cargo, rustc, etc… (Source: https://www.rust-lang.org/tools/install)
|
Packages Needed to compile some of our programs
Below is a list of errors and the package that fixes the error. Use as needed.
Error:
Could not find directory of OpenSSL installation, and this `-sys` crate cannot
proceed without this knowledge.
Solution:
Uninstall