Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.99 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.99 KB

C++ CI Rust CI

Creative Commons License
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 [email protected].

Rust Quicklook Training

Rust part

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

C++ part

  • Any file filename.cpp is automatically compiled using extra files filename.h* filename--*.*

  • Any file filaname.cxx is not compiled and usually contains explicit bugs

  • type.h contains tool type(obj) to get printable type name for given object argument

CMake options

  • -DENABLE_STATIC_ANALYSIS=ON|OFF : enable/disable static analysis while compiling

  • -DCMAKE_CXX_COMPILER_LAUNCHER=ccache : enable ccache as compiler cache