#cargo #multi-threading #parallel #closures #processors #helper #running

mth_calc

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

7 releases

0.1.6 Jan 31, 2022
0.1.5 Oct 3, 2021
0.1.4 Apr 28, 2021
0.1.1 Jul 30, 2020

#835 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)

Dependencies

~76KB