libobs_simple\sources/mod.rs
1//!
2//! A library for creating OBS sources without having to figure out what properties are used by sources.
3//!
4//! This crate provides convenient builders for OBS sources across different platforms:
5//! - **Windows**: Window capture, monitor capture, game capture
6//! - **Linux**: X11 screen capture, XComposite window capture, V4L2 camera, ALSA/PulseAudio/JACK audio, PipeWire
7//! - **macOS**: ScreenCaptureKit-backed display, window, and application capture
8//!
9//! You can find examples [here](https://github.com/libobs-rs/libobs-rs/tree/main/examples).
10
11#[cfg(any(windows, all(doc, not(doctest))))]
12#[cfg_attr(all(doc, not(doctest)), doc(cfg(windows)))]
13pub mod windows;
14
15#[cfg(any(target_os = "linux", all(doc, not(doctest))))]
16#[cfg_attr(all(doc, not(doctest)), doc(cfg(target_os = "linux")))]
17pub mod linux;
18
19#[cfg(any(target_os = "macos", test, doc))]
20#[cfg_attr(all(doc, not(doctest)), doc(cfg(target_os = "macos")))]
21pub mod macos;
22
23mod either;
24mod macro_helper;
25
26pub use either::*;
27pub use libobs_wrapper::{data::ObsObjectUpdater, sources::ObsSourceBuilder};