realsense-rust 0.2.0

High-level RealSense library in Rust
docs.rs failed to build realsense-rust-0.2.0
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.
Visit the last successful build: realsense-rust-1.2.3

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.

[dependencies]
realsense-rust = "^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.

[dependencies]
realsense-rust = { git = "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.

cd $repo
cargo doc

firefox target/doc/realsense_sys/index.html  # open doc in browser

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.