libobs/
lib.rs

1#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
2#![allow(
3    non_camel_case_types,
4    non_upper_case_globals,
5    unnecessary_transmutes,
6    non_snake_case,
7    clippy::all
8)]
9
10//! # LibOBS bindings (and wrapper) for rust
11//! This crate provides bindings to the [LibOBS](https://obsproject.com/) library for rust.
12//! 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.
13
14#[cfg_attr(coverage_nightly, coverage(off))]
15mod bindings {
16    #[cfg(any(feature = "generate_bindings", target_family = "unix"))]
17    include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
18
19    #[cfg(all(not(feature = "generate_bindings"), target_family = "windows"))]
20    include!("bindings_win.rs");
21}
22
23pub use bindings::*;