libffi-sys 4.1.0

Raw Rust bindings for libffi
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub use std::{env, fs, process::Command};

#[track_caller]
pub fn run_command(which: &'static str, cmd: &mut Command) {
    match cmd.status() {
        Ok(status) if status.success() => (),
        Ok(status) => {
            println!("cargo:warning={which} failed with {status}");
            panic!("{which}: {status} ({cmd:?})");
        }
        Err(err) => {
            println!("cargo:warning={which} failed with error {err}");
            panic!("{which}: {err} ({cmd:?})");
        }
    }
}