libobs/
lib.rs

1#![allow(
2    non_camel_case_types,
3    non_upper_case_globals,
4    unnecessary_transmutes,
5    non_snake_case,
6    clippy::all
7)]
8//! # LibOBS bindings (and wrapper) for rust
9//! This crate provides bindings to the [LibOBS](https://obsproject.com/) library for rust.
10//! Furthermore, this crate provides a safe wrapper around the unsafe functions, which can be found in the [`libobs-wrapper`](https://crates.io/crates/libobs-wrapper) crate.
11
12#[cfg(test)]
13mod test;
14
15mod bindings {
16    #[cfg(feature = "generate_bindings")]
17    include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
18    #[cfg(not(feature = "generate_bindings"))]
19    include!("bindings.rs");
20}
21
22pub use bindings::*;