Skip to main content

bubblewrap_sys/
lib.rs

1//! bubblewrap-sys: Builds and bundles the bwrap binary from bubblewrap.
2//!
3//! Bubblewrap provides lightweight sandboxing via Linux namespaces.
4//! This crate builds bwrap from source and exports the binary path
5//! via `cargo:bwrap_BOXLITE_DEP` for bundling.
6//!
7//! ## Platform Support
8//!
9//! - **Linux**: Builds bwrap using Meson
10//! - **macOS/Windows**: Skips build (bubblewrap is Linux-only)
11//!
12//! ## Build Dependencies
13//!
14//! On Linux, the following must be installed:
15//! - `meson` (build system)
16//! - `ninja-build` (build backend)
17//! - `libcap-dev` (Linux capabilities library)