-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cbindgen 0.6.4 moved constants outside namespace #229
Comments
Actually these constants are generated from https://searchfox.org/mozilla-central/rev/9cb3e241502a2d47e2d5057ca771324a446b6695/gfx/webrender_bindings/src/program_cache.rs#16 and are never used on the C++ side so if there's a way to omit them from being generated that would be fine too. |
I guess it was intentional, because only constants of type |
I don't recall the reason why constants of type |
@staktrace As a stopgap you could skip emitting constants. [export]
# don't have a negative version of item-types unfortunately
# item-types = ["Constants", "Globals", "Enums", "Structs", "Unions", "Typedefs", "OpaqueItems", "Functions"]
item-types = ["Globals", "Enums", "Structs", "Unions", "Typedefs", "OpaqueItems", "Functions"] |
Place constants back inside namespace and add a test to make sure they are namespaced correctly.
That wasn't an intentional change. I suspect either automerging lines that moved around or my own dumb self borking a conflicting merge. In any case, there should probably be some tests for the namespacing feature, right now there doesn't seem to be any? |
Place constants back inside namespace and add a test to make sure they are namespaced correctly.
Place constants back inside namespace and add a test to make sure they are namespaced correctly.
Place constants back inside namespace and add a test to make sure they are namespaced correctly.
The constants at https://searchfox.org/mozilla-central/rev/9cb3e241502a2d47e2d5057ca771324a446b6695/gfx/webrender_bindings/webrender_ffi_generated.h#20,22 are inside the mozilla::wr namespace. With cbindgen 0.6.4 they get moved outside the namespace which is undesirable.
The text was updated successfully, but these errors were encountered: