I was working in Python specifically flask, and I was building this embedded server in flask, for a Raspberry PI. And I wanted at minimal to use SSL.
So why on earth am I posting this is on a rust forum? ... python != Rust... Dude is crazy huh?
(I hope not)
This Python's Cryptography library requires a recent version of Rust.
So I'm trying to stuff all this stuff inside a Docker container. And I'm reading this install script.
I was looking at the install script: --default-host Choose a default host triple
--default-toolchain Choose a default toolchain to install
--default-toolchain none Do not install any toolchains
--profile [minimal|default|complete] Choose a profile
-c, --component ... Component name to also install
-t, --target ... Target name to also install
So in my best Will Farrell impersonation:
WHAT on gods green earth is HOST TRIPPLE!
Host triples identify the architecture and OS of the system that will ultimately run your executable. Mine is x86_64-pc-linux-gnu for example. The general form is cpu-vendor-os. Windows might be something like x86_64-pc-windows-msvc. ...
One more note:
I was stepping into the container, and testing the commands. Things fell apart when I issued the command: pip3 install pyOpenSSL I was seeing an error where a rust compiler could not be found. Solution - in the container was to launch a nested bash session.
Tool-chain seems to like enviroment variables. Feels a bit foreign. Not Linux like... Counter-intuitive.
If you use rustup to install rust toolchain, it will by default install symlinks to actual rust compiler in $HOME/.cargo/bin or $CARGO_HOME value. You have to add that directory into your PATH environment variable.