Coder Social home page Coder Social logo

dokan-rust's Introduction

Dokan Rust Wrapper

Build status

This project allows you to easily use Dokan in Rust. It consists of two crates:

  • crates.io dokan-sys provides raw bindings to the functions and structures provided by Dokan.

  • crates.io dokan is built on top of dokan-sys and provides high-level, Rust-friendly wrappers for Dokan.

Generally, it is recommended to use the dokan crate, which has the unsafe raw bindings wrapped and is easier to use. However, if you want to access the low-level interface provided by Dokan, dokan-sys can save you from writing the function and structure definitions yourself.

Build

dokan-sys, which is also a dependency of dokan, requires the import library of the native Dokan library in order to link against it.

If the DokanLibrary1_LibraryPath_{ARCH} environment variable exists ({ARCH} can be x86 or x64 depending on the architecture of your target platform), dokan-sys will look for the import library in the directory specified by the aforementioned environment variable. These environment variables are automatically set by Dokan's installer since v1.0.0.

Otherwise, dokan-sys will build the import library from bundled Dokan source code. The DLL file will be built as well and you can use the DOKAN_DLL_OUTPUT_PATH environment variable to have the build script copy it to the specified directory.

Note that the versions of the dokan-sys crate, the linked import library and the Dokan library loaded at runtime should be identical, or you may run into troubles. So please take care when using the DokanLibrary1_LibraryPath_* environment variables and deploying your application.

Usage

dokan-rust's People

Contributors

ddosolitary avatar liryna avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.