Giter Site home page Giter Site logo

wdi-rs's Introduction

wdi-rs โ€” A safe Rust wrapper for libwdi

Warning: this crate is extremely work in progress and the actual wrapping is very bare bones. The functionality implemented exists almost entirely for bmputil.

Cross compilation

Considerable effort has been put into libwdi-sys's build script to ensure cross compilation works as seamlessly as possible. It will, however, require an existing Windows target cross toolchain setup, but cargo-xwin can take care of most of that for you.

The only other requirement is the Windows 8.0 Driver Kit redistributable components, with the environment variable WDK_DIR set to the path it's been extracted to, e.g. export WDK_DIR=/opt/wdk/8.0.

wdi-rs's People

Contributors

dragonmux avatar qyriad avatar xobs avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

xobs

wdi-rs's Issues

build requires nightly due to `exit_status_error`

This library requires a nightly build, due to build.rs using #[feature(exit_status_error)]. This is part of issue rust-lang/rust#84908.

It is possible to build this using a stable compiler by setting RUSTC_BOOTSTRAP=1 or by using a nightly compiler.

The nightly requirement should be noted in the README, or this feature should be removed to allow it to be built on a stable compiler.

How to setup

I would like to use this crate for creating rust program which will install libusb driver for raspberry pi pico, similar to what you did here:
https://github.com/blackmagic-debug/bmputil/blob/main/src/windows.rs

  1. I'm not sure how to adapt it
  2. and if I should detect it by PID / VID?
  3. How to grab the info? Will it work for every pico board I'll try?
  4. Can I do that even when the board isn't connected?

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.