Skip to main content

velr_runtime_macos_universal/
lib.rs

1//! Bundled Velr native runtime for macOS universal.
2
3pub const FILENAME: &str = "libvelrc.dylib";
4pub const BYTES: &[u8] = include_bytes!(concat!(
5    env!("CARGO_MANIFEST_DIR"),
6    "/prebuilt/libvelrc.dylib"
7));
8
9pub fn bytes_and_name() -> (&'static [u8], &'static str) {
10    (BYTES, FILENAME)
11}
12
13#[cfg(test)]
14mod tests {
15    use super::*;
16
17    #[test]
18    fn runtime_payload_is_present() {
19        assert_eq!(FILENAME, "libvelrc.dylib");
20        assert!(!BYTES.is_empty());
21    }
22}