Adrian Taylor
Adrian Taylor
autocxx needs to do something similar. David kindly exposed a codegen interface via https://crates.io/crates/cxx-gen/0.7.51, which other macros can choose to use to achieve the cxx C++ side codegen.
See discussion in #537
Design sketch: Constraints: * We will need to behave differently in both C++ and Rust code generation. If `c_char` is `std::os::raw::c_char`, it must be so prefixed in `impl ToTokens`, whilst...
That would be great, yes. I don't think I'm realistically going to get to it in the next few days. If I start, I'll post here - but it's extremely...
If you're feeling bold, you can try [autocxx](https://github.com/google/autocxx) and specifically [generate_pod!](https://docs.rs/autocxx/0.8.0/autocxx/macro.generate_pod.html), which should do what you want.
> Unfortunately, the C++ code I'm trying to interface with is too complicated for autocxx/bindgen to process cleanly at the moment If you get a chance, it'd be great if...
Uses of unsafe: * Creating a 40-byte long buffer which starts uninitialized, then is filled in using (mostly) `ptr::copy_nonoverlapping` to assemble the string representation of the integer, from right to...
I was thinking that one day, `syntax::Type` might need to change from an enum to a trait, such that new type support can be added by extra crates.
Thanks for the report. Constructors should normally be generated just as you expect. I wonder if the problem is that you're using `generate_pod!` rather than `generate!` - I'd be curious...
> All subclasses of abstract classes seem to be considered abstract, even if they override every virtual method. Yep, that's #744. Pull requests welcome :)