Trivial example requires python-headers
feature to build
#175
Labels
K-bug
Kind: existing code isn’t behaving as expected
python-headers
feature to build
#175
Hello, one of my projects makes extensive use of
safer-ffi
. Thank you so much for making it available for general consumption; we love it.Recently I compiled against
v0.1.2
of thesafer-ffi
package and noticed a regression compared to the version we had been using (v0.1.0-rc.1
). Specifically, we were seeing this compiler error on a number of our exports:Poking around, I noticed that the codegen was indeed referencing a variant that was only available in
safer-ffi
conditionally. Adding thepython-headers
feature flag tosafer-ffi
"fixed" the problem by making the variant available.I have made a reduced test case of this problem here: https://github.com/cdata/safer-ffi-fail-case
The test case is currently in a broken state. If you add the
python-headers
feature to thesafer-ffi
dependency, you will see that the package can build.We do intend to write Python bindings eventually so this isn't a blocker for us or anything, but it smelled like unintended behavior so I figured I should report it.
The text was updated successfully, but these errors were encountered: