bindgen_transform.sh 186 B

1234
  1. sed -i 's/::std::os::raw:://g' $1
  2. perl -i -p0e 's/extern "C" \{\n pub fn/#[no_mangle]\npub extern "C" fn/g' $1
  3. perl -i -p0e 's/;\n\}/ {\n unimplemented!();\n\}\n/g' $1
  4. rustfmt $1