4 ms·
Ah, the docs around FFI say that libc is a part of the standard library so it wasn't clear that I'd have to pull that from crates.io.
by vvanders 11y ago
Ah, the docs around FFI say that libc is a part of the standard library so it wasn't clear that I'd have to pull that from crates.io.
- steveklabnik 11y agoHmm, can you point me to where they say that so I can fix it? Seems bad. (Also, the error message when you don't have a `#![feature(libc)]` should say "hey, please use the external crate thanks")
- vvanders 11y agohttps://doc.rust-lang.org/book/ffi.html https://doc.rust-lang.org/book/ffi.html at the end of "Interoperability with foreign code" Yeah, that error message sent me down the wrong path :).
- steveklabnik 11y agoAhh excellent, thank you! https://github.com/rust-lang/rust/issues/28053 https://github.com/rust-lang/rust/issues/28053
- vvanders 11y agoNice! Let me add another plus for Rust is the community around it.