Skip to main content

p4cli_20251_mac_arm64/
lib.rs

1pub fn get_p4_cli_zst() -> Vec<u8> {
2    #[cfg(all(target_os = "macos", target_arch = "aarch64"))]
3    {
4        return include_bytes!("../bin/2025.1/p4_mac_arm64.zst").to_vec();
5    }
6
7    #[cfg(not(all(target_os = "macos", target_arch = "aarch64")))]
8    vec![]
9}
10
11#[cfg(test)]
12mod tests {
13    use super::*;
14
15    #[test]
16    fn it_works() {
17        let binary = get_p4_cli_zst();
18        assert!(!binary.is_empty());
19    }
20}