| Crates.io | dlpk |
| lib.rs | dlpk |
| version | 0.1.0 |
| created_at | 2025-12-01 08:56:19.070441+00 |
| updated_at | 2025-12-01 08:56:19.070441+00 |
| description | DLPack integration for Rust |
| homepage | |
| repository | https://github.com/metatensor/dlpk |
| max_upload_size | |
| id | 1959541 |
| size | 87,464 |
dlpk: DLPack integration for RustThis 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:
ndarray to convert from and to ndarray::Array
pyo3 to convert from and to Python data, following the python specification
for dlpack
This crate is distributed under the terms of both the MIT license and the Apache License (Version 2.0).