vrp-core 1.5.8

A core algorithms to solve a Vehicle Routing Problem
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Returns amount of CPUs.
#[cfg(not(target_arch = "wasm32"))]
pub fn get_cpus() -> usize {
    num_cpus::get()
}

/// Returns amount of CPUs.
#[cfg(target_arch = "wasm32")]
pub fn get_cpus() -> usize {
    1
}