#calc #parallel #closures #slides #cargo #process

mth_calc

Crate for demonstrating Cargo. Contains helper method for running a process in parallel on all available processors.

6 releases

0.1.5 Oct 3, 2021
0.1.4 Apr 28, 2021
0.1.1 Jul 30, 2020

#115 in Concurrency

MIT license

5KB

Build and publish crate Crates.io

Multi-Threaded Calculation

Introduction

This crate contains helper functions that execute given closures in parallel on all available processors.

Note that this crate's main purpose is to demonstrate certain features of Cargo. If you find it useful, feel free to grab whatever you need. However, do not expect that this crate will be functionally extended or maintained on a regular basis. As said, its mainly used during Cargo trainings for demonstrating the following aspects of Cargo:

  • Basics of crate documentation (including samples)
  • cargo doc
  • cargo test and cargo test --doc
  • cargo publish (with and without --dry-run)
  • Dependency types (crates.io, GitHub, folder)

Links

Dependencies

~51KB