#graphics #direct


Rust bindings for DirectStorage

3 unstable releases

0.2.0 Jan 19, 2023
0.1.1 Jan 17, 2023
0.1.0 Jan 17, 2023

#507 in Graphics APIs

Apache-2.0 OR MIT


DirectStorage for Rust

Documentation Crates.io License: Apache 2.0

This crates implements windows-rs compatible bindings for the DirectStorage API.

We try to provide the same abstraction level and coding style as windows-rs.


Because of licensing issues we can't provide the shared libraries that are used by DirectStorage. You need to download them yourself and put them in the working directory of your project, or in places windows is searching for the library as documented:

  1. Download the correct version of DirectStorage from nuget.org.
  2. Extract the package file (.nupkg files are just .zip files).
  3. Copy the ".dll" files from the folder for you architecture (under \native\bin).
  4. Place the dstorage.dll and dstoragecore.dll files into the working directory of your project.


This crate currently targets DirectStorage version 1.1. How long we will support older versions is not clear yet, but we may support older version with feature toggles if the need arises.


We ported some examples of the DirectStorage Repository to Rust.

They can be found in the examples folder and are licensed under MIT.


This crate is licensed under either of

at your option.

Please be aware that DirectStorage itself is licensed under a proprietary license by Microsoft, which you can find alongside the binary distribution of the shared library.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


This is not an official Microsoft product (experimental or otherwise). This crate is not endorsed or supported by Microsoft in any way.


~3M SLoC