I published my first crate on crates.io, its a simple octad puzzle generator (soon featuring solving).
I tried installing the binary through this command:
cargo install octad
which supposedly installs the binary globally.
However, I can't call "octad" from my terminal. I recall installing Zellij using cargo install a while ago, and that just worked, however this does not.
Thanks in advance, I'm generally pretty new to Rust.
Never used NixOS, so I'm not sure if there is any significant difference to other Linux distros. You are still using a common shell like bash or zsh though, right? Can you see the $CARGO_HOME/bin/ directory in your $PATH?
Yes. Rustup added this line to my ~/.profile file during installation, which prepends the bin/ directory from the cargo home to my path:
. "$HOME/.cargo/env"
I believe zsh doesn't load ~/.profile, but AFAIK you can simply add the line to your ~/.zprofile or ~/.zshrc file and the directory should be added to your path in zsh as well.