You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to see if I could use PCIDriverKit on a macos system from Rust code - I do know that the headers provided by driverkit are made for C++ with inheritance so I'm not entirely sure how it would work on the rust end. However attempting to use aarch64-apple-driverkit (which is supported by clang) in rust with a custom target spec json gives:
process didn't exit successfully: `/Volumes/Gigatop/usr/src/driverkit-rs/target/debug/build/bindings-77c1520b02a5e059/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at /Users/theo/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.70.1/ir/context.rs:561:15:
libclang error; possible causes include:
- Invalid flag syntax
- Unrecognized flags
- Invalid flag arguments
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I wanted to see if I could use PCIDriverKit on a macos system from Rust code - I do know that the headers provided by driverkit are made for C++ with inheritance so I'm not entirely sure how it would work on the rust end. However attempting to use
aarch64-apple-driverkit
(which is supported by clang) in rust with a custom target spec json gives:Is there a better way to do this with pure rust code? I haven't been able to find anything that already exists on this unfortunately.
Beta Was this translation helpful? Give feedback.
All reactions