This crate contains a direct translation of the C header for DLPack, which is intended to be used inside Rust projects that want to offer a C API.
We also provide some tools to convert to and from Rust types, through the following cargo features:
ndarrayto convert from and tondarray::Arraypyo3to convert from and to Python data, following the python specification for dlpack