bux-bwrap 0.3.0

Bundles the bubblewrap (bwrap) sandbox binary for bux and exposes a safe Command builder — Linux-only process isolation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Error types for bubblewrap command construction.

/// Alias for `Result<T, bux_bwrap::Error>`.
pub type Result<T> = std::result::Result<T, Error>;

/// Errors returned by the [`crate::BwrapCommand`] builder.
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
#[allow(
    clippy::error_impl_error,
    reason = "idiomatic per-crate `Error` name; disambiguated via `bux_bwrap::Error`"
)]
pub enum Error {
    /// The `bwrap` binary could not be located via any of the search
    /// strategies used by [`crate::path`].
    #[error("bwrap binary not found (bubblewrap may not be installed on this system)")]
    NotFound,
}