Code snippets for Rust Quicklook Training
by
Pascal HAVÉ
is licensed under
CC BY-NC-SA 4.0
For more details about this training, contact hpwxf@haveneer.com.
Use conventional Rust build using cargo
cargo build [--release]
cargo test
cargo bench # expensive disable in CI
cargo run --example julia
cargo run --release --color=always --bin quick-hash --manifest-path demos/quick-hash/Cargo.toml
cargo run --release --color=always --bin cxx-interface --manifest-path demos/cxx-interface/Cargo.toml
-
Any file
filename.cpp
is automatically compiled using extra filesfilename.h*
filename--*.*
-
Any file
filaname.cxx
is not compiled and usually contains explicit bugs -
type.h
contains tooltype(obj)
to get printable type name for given object argument
-
-DENABLE_STATIC_ANALYSIS=ON|OFF
: enable/disable static analysis while compiling -
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
: enableccache
as compiler cache