1#![deny(missing_docs)]
6
7#[cfg(target_os = "linux")]
8mod embedded {
9 #[cfg(all(feature = "embedded", target_arch = "x86_64"))]
13 pub(super) const BINARY: &[u8] = include_bytes!("../assets/linux-x86_64/bwrap");
14
15 #[cfg(all(feature = "embedded", target_arch = "x86_64"))]
16 pub(super) const DIGEST: &str = include_str!("../assets/linux-x86_64/bwrap.sha256");
17
18 #[cfg(all(feature = "embedded", target_arch = "aarch64"))]
19 pub(super) const BINARY: &[u8] = include_bytes!("../assets/linux-aarch64/bwrap");
20
21 #[cfg(all(feature = "embedded", target_arch = "aarch64"))]
22 pub(super) const DIGEST: &str = include_str!("../assets/linux-aarch64/bwrap.sha256");
23}
24
25#[cfg(all(target_os = "linux", feature = "embedded"))]
33pub fn bundled_bubblewrap() -> &'static [u8] {
34 embedded::BINARY
35}
36
37#[cfg(all(target_os = "linux", feature = "embedded"))]
39pub fn bundled_bubblewrap_sha256() -> &'static str {
40 embedded::DIGEST.trim()
41}