()
| 106 | } |
| 107 | |
| 108 | pub fn required_runtime_lib_name() -> &'static str { |
| 109 | #[cfg(target_os = "macos")] |
| 110 | { |
| 111 | "libkrun.dylib" |
| 112 | } |
| 113 | #[cfg(not(target_os = "macos"))] |
| 114 | { |
| 115 | "libkrun.so" |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | impl LibKrun { |
| 120 | fn load(runtime_dir: &Path) -> Result<Self, String> { |