Relative Content

Tag Archive for rust

Rust equivalent of C++ std::rank and std::extent

How to get the rank (no. of dimensions) of a multidimensional array in Rust and also the size of each dimension. In C++ there exist data-types namely std::rank and std::extent for these operations.

Packing dependent crates without publishng

When calling cargo package in a monorepo with multiple packages, cargo will complain if a dependency doesn’t exist on crates.io. This means that I can’t update a dependency version and pack the consumer without first publishing the dependency.