#libraw #raw #camera

sys libraw-sys

FFI bindings to libraw

2 releases

Uses old Rust 2015

0.1.1 Nov 5, 2015
0.1.0 Oct 30, 2015

#5 in #libraw

Download history 9/week @ 2023-10-14 10/week @ 2023-10-21 15/week @ 2023-10-28 17/week @ 2023-11-04 14/week @ 2023-11-11 20/week @ 2023-11-18 24/week @ 2023-11-25 12/week @ 2023-12-02 14/week @ 2023-12-09 15/week @ 2023-12-16 16/week @ 2023-12-23 8/week @ 2023-12-30 14/week @ 2024-01-06 16/week @ 2024-01-13 13/week @ 2024-01-20 12/week @ 2024-01-27

57 downloads per month
Used in libraw

MIT license

31KB
667 lines

LibRaw Rust Bindings

The libraw-sys crate provides declarations and linkage for the libraw C library. Following the *-sys package conventions, the libraw-sys crate does not define higher-level abstractions over the native libraw library functions.

Dependencies

In order to use the libraw-sys crate, you must have the libraw_r library installed where it can be found by pkg-config. libraw_r is the reentrant version of LibRaw.

On Debian-based Linux distributions, install the libraw-dev package:

sudo apt-get install libraw-dev

On OS X, install libraw with Homebrew:

brew install libraw

On FreeBSD, install the libraw package:

sudo pkg install libraw

Usage

Add libraw-sys as a dependency in Cargo.toml:

[dependencies]
libraw-sys = "0.1"

Import the libraw_sys crate and use the functions as they're defined in the native libraw library.

extern crate libraw_sys as libraw;

Finding Help

Since libraw-sys does nothing more than export symbols from the native libraw library, the best source for help is the information already available for the native libraw:

License

Copyright © 2015 David Cuddeback

Distributed under the MIT License.

Note: By using this crate, your executable will link to the libraw C library, which is available under the LGPL version 2.1, CDDL version 1.0, or LibRaw Software License.

Dependencies

~58KB