Adrian Taylor
Adrian Taylor
Since the comment above, cxx has gained the ability to do this: ```rust unsafe impl ExternType for DWORD { type Id = cxx::type_id!("DWORD"); type Kind = cxx::kind::Trivial; // the new...
The newtype wrapper approach works (i.e. the second bullet above plus an implementation of `ExternType` for that type, with `cxx::kind::Trivial`). It's not especially nice due to the need to convert...
Specifically here's what I did, for others who end up needing to do this before/unless support lands natively in cxx. ```cpp typedef unsigned long c_ulong; // etc. ``` because `cxx`...
> You could update the translations yourself, we could disable checking links there, or perhaps some other approach? It actually looked to be a little fiddly to update the translations,...
I don't know about lychee, but I've previously used `mdbook-linkcheck` like this: https://github.com/google/rust-design-faq/blob/main/book.toml#L21 https://github.com/google/rust-design-faq/blob/main/.github/workflows/main.yml#L23
Yeah, this isn't great and [as the manual says, this all needs to be overhauled a bit](https://google.github.io/autocxx/cpp_functions.html#overloads---and-identifiers-ending-in-digits). Meanwhile though I do certainly consider this a bug, and I'd accept a...
Closely related to #995
Thanks - this is, I think, likely to be a limitation for a long time (I believe bindgen doesn't give us the right information, and even if it did, cxx...
FWIW when testing this by adding your code into the demo, I get something different. The build process says: ``` Error: × cxx couldn't handle our generated bindings - could...