Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
RealSense bindings for Rust
The project provides high-level bindings to librealsense2 library.
It includes two crates. The realsense-rust
serves as high-level library, and realsense-sys
serves FFI interface to C API.
The project is still under development and production use should be avoided.
Usage
Add the following in Cargo.toml
to use this crate in your project.
[]
= "^0.1.2"
The project is under heavy development. If you really want this fancy new, bleeding edge and up-to-date features, use git repo as your dependency.
[]
= { = "https://github.com/jerry73204/realsense-rust.git" }
How to make contributions
The project uses bindgen to generate bindings from pure C API, no C++ parts included. All low-level C types and function are gathered in realsense-sys
crate.
We suggest to follow these steps check out C functions. Their names should be self-explanatory. We also suggest C/C++ examples on official librealsense repository to understand actual usage.
The high level API in realsense-rust
crate is basically wrappers to low-level FFI interface. It written in Rust from scratch rather than by automated means. It's encouraged to use marker traits, trait ops and else to build rusty style interface.
License
Apache 2.0. See LICENSE file.