| Crates.io | onednn-src |
| lib.rs | onednn-src |
| version | 0.1.2 |
| created_at | 2025-09-06 16:57:45.025423+00 |
| updated_at | 2025-09-07 02:04:30.569598+00 |
| description | Source of oneAPI Deep Neural Network Library (oneDNN) |
| homepage | |
| repository | https://github.com/jkawamoto/onednn-src |
| max_upload_size | |
| id | 1827253 |
| size | 45,034,172 |
This crate provides the source build of oneAPI Deep Neural Network Library (oneDNN) for Rust projects.
Add this crate to your Cargo.toml:
[dependencies]
onednn-src = "0.1.2"
Then, add the extern declaration to your main.rs or lib.rs to ensure the libraries are properly linked:
extern crate onednn_src;
This crate also exports the DEP_DNNL_ROOT environment variable,
which points to the root directory of the compiled oneDNN library.
You can use this in your build.rs to locate the library.
graph: Enables the graph component.training: Enables training functionality.inference: Enables inference functionality.experimental: Enables experimental featuresverbose: Enables verbose modeBy default, the training feature is enabled.
The training and inference features are mutually exclusive.
If neither is specified, training will be used.
This crate itself is licensed under the MIT License. See the LICENSE file.
oneDNN (which this crate builds and links to) is licensed under the Apache License, Version 2.0. If you redistribute binaries or source that include oneDNN, you must comply with the Apache-2.0 terms, including preserving license and notice files. For details, see oneDNN’s upstream LICENSE/NOTICE.
The published crate may build and/or redistribute artifacts originating from the following third-party projects. Each component remains under its own license, which applies in addition to this crate’s MIT license. When redistributing your software, ensure that you include the required attributions and license texts for any components that were used by your build configuration and target platform. The exact set of components used can depend on enabled features, target architecture, and toolchain.
The published crate also includes the following libraries:
3-clause BSD license:
2-clause BSD license:
Apache License Version 2.0:
Boost Software License, Version 1.0:
MIT License:
Notes: