Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 716 Bytes

File metadata and controls

19 lines (13 loc) · 716 Bytes

dlpk: DLPack integration for Rust

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 other types, through the following cargo features:

Conversions to and from std::vec::Vec and slice are always enabled.

License

This crate is distributed under the terms of both the MIT license and the Apache License (Version 2.0).