Skip to main content

velr_runtime_linux_x86_64/
lib.rs

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