2 releases

0.1.1 Feb 19, 2022
0.1.0 Feb 19, 2022

#2375 in Algorithms

LGPL-3.0

120KB
3.5K SLoC

librsb-sys

The librsb-sys provides FFI bindings to librsb library. In order to conditionally generate bindings and documents, it is suggested to use the following snipplet in Cargo.toml.

[dependencies]
librsb-sys = "X.Y.Z"  # Fill the version here

[features]
codegen = ["librsb-sys/codegen"]
doc-only = ["librsb-sys/doc-only"]

[package.metadata.docs.rs]
features = ["doc-only"]

The librsb-sys reads the following environment variables.

  • LIBRSB_PATH

    The prefix path of the installed librsb library. It defaults to /usr if not set.

  • LIBRSB_INCLUDE

    The directory to search for C header files. It defaults to $LIBRSB_PATH/include if not set.

  • LIBRSB_LIBRARY

    The directory to search for library files. It defaults to $LIBRSB_PATH/lib if not set.

License

LGPL-3.0. See license file


lib.rs:

FFI interface for librsb.

Usage

In order to conditionally generate bindings and documents, it is suggested to use the following snipplet in Cargo.toml.

[dependencies]
librsb-sys = "X.Y.Z"  # Fill the version here

[features]
codegen = ["librsb-sys/codegen"]
doc-only = ["librsb-sys/doc-only"]

[package.metadata.docs.rs]
features = ["doc-only"]

Cargo Features

  • codegen

    Generate FFI bindings from header files.

  • doc-only

    Disable binding generation and linking.

Environment Variables

The librsb-sys reads the following environment variables.

  • LIBRSB_PATH

    The prefix path of the installed librsb library. It defaults to /usr if not set.

  • LIBRSB_INCLUDE

    The directory to search for C header files. It defaults to $LIBRSB_PATH/include if not set.

  • LIBRSB_LIBRARY

    The directory to search for library files. It defaults to $LIBRSB_PATH/lib if not set.

No runtime deps

~0–430KB