Skip to content

stdcm/rust-quicklook-training

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 hpwxf@haveneer.com.

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 78.1%
  • C++ 16.5%
  • CMake 3.4%
  • C 1.8%
  • Shell 0.1%
  • Python 0.1%