A collection of cryptography functions written in Rust.
sudo apt install curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
(installs rustup
, cargo
, rustc
etc.)source $HOME/.cargo/env
sudo apt install gnuplot
make
) -- sudo apt install build-essential
git clone ssh://git@neptune.builders:2222/core-team/twenty-first.git
. Last time I checked, the RSA key fingerprint was SHA256:wQ9euDKumP5H8MY1J8F07IEIb6Qz9isGkaFY8uL6U/Y
vscode
vscode
install the plugin rust-analyzer
vscode
activate format-on-save via File
> Preferences
> Settings
then check the box for "Format on Save"cargo install cargo-criterion
cargo test [start_of_test_name]
. Or, for a complete and much slower build, run make test
.make doc
.make run
.make lint
.make format
.make check
. This should be faster than make build
.make build
.make install
.make all
. Note that this does not run install.make bench
, or run cargo criterion --bench <specific-benchmark>
.The Makefile
recipes set the flag RUSTFLAGS=-Dwarnings
and this makes the recompilation much slower than without this flag, as cargo
for some reason rebuilds the entire crate when this flag is set and a minor change is made in a test. So it is much faster to run the tests using cargo and then use the make test
command before e.g. committing to ensure that the test build does not produce any warnings.