4 ms·
You sure about that? I've been using bindgen for ages on stable and just grabbed the latest version on an empty project and it still works for me.
by vvanders 8y ago
You sure about that?
I've been using bindgen for ages on stable and just grabbed the latest version on an empty project and it still works for me.
- steveklabnik 8y agoI'm sitting next to bindgen's author in meatspace right now and he says yes, it has been on stable for a long time.
- inferiorhuman 8y agoAh sorry, was thinking of rustfmt-nightly, not the toolchain.
- deleted 8y ago[deleted]
- steveklabnik 8y agoNo worries! You shouldn't be using rustfmt-nightly at this point either; install the rustfmt-preview component through rustup. It works on stable!
- inferiorhuman 8y agoDoes rustfmt-preview work with bindgen though?
- steveklabnik 8y agoI don’t know what this sentence means.
- inferiorhuman 8y agoBindgen relies on rustfmt. With the codebase I'm using rustfmt-nightly works, but the stable version segfaults. Known issue but that's why I've stuck with rustfmt-nightly.
- steveklabnik 8y agoInteresting! I was not aware of that. So, no idea :)
- inferiorhuman 8y agohttps://github.com/rust-lang-nursery/rust-bindgen/issues/1045 https://github.com/rust-lang-nursery/rust-bindgen/issues/104... So yeah looks like I'm tethered to the nightly toolchain after all. :/
- steveklabnik 8y agoI happen to be in the same physical location as the maintainers of both. This should be re-opened. I’ll chat with them. But first... I’m also confused. The component is the rustfmt-nightly codebase. You’re still seeing problems with the component?
- inferiorhuman 8y agoI'm using bindgen to generate bindings for radare2. But I'm also using TryFrom, so I'm not likely to move off of the nightly toolchain any time soon. Before I ended up going down the TryFrom rabbit hole I ran into two issues with bindgen: 1.) Bindgen segfaults with the ancient LLVM on OSX 10.9. Issue #1006. Solution: use LLVM >= 5 binaries from the LLVM site. 2.) Stable (deprecated) rustfmt causes bindgen to segfault. Solution: cargo install -f rustfmt-nightly. It could be as simple as "stable rustfmt requires --force to run because it's been deprecated", but more helpful error messages would be a great thing here.
- steveklabnik 8y ago