Skip to main content

libobs/
lib.rs

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