Not using .cargo/config to pass flags to rustc is useful because build.rs can read feature flags while .cargo/config cannot. Also, the new method uses absolute rather than relative paths since build.rs can query env vars, which makes submoduling this repo easier.
I also bumped the rust-bindgen dependency version - a bug that generated unaligned references (UB in rust) has been fixed.
Not using .cargo/config to pass flags to rustc is useful because build.rs can read feature flags while .cargo/config cannot. Also, the new method uses absolute rather than relative paths since build.rs can query env vars, which makes submoduling this repo easier.
I also bumped the rust-bindgen dependency version - a bug that generated unaligned references (UB in rust) has been fixed.