News for hackers. Stuff that matters.
Re:Lock freedom without garbage collection in Rust by steveklabnik on Thursday August 27, 2015 @06:12PM (#10132481)
You should use libc from crates.io, which is stable. Not the compiler-internal one you linked to.
Re:Lock freedom without garbage collection in Rust by vvanders on Thursday August 27, 2015 @06:30PM (#10132574)
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.
Re:Lock freedom without garbage collection in Rust by steveklabnik on Thursday August 27, 2015 @06:57PM (#10132676)
Hmm, 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")

Re:Lock freedom without garbage collection in Rust by vvanders on Thursday August 27, 2015 @07:17PM (#10132745)
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 :).

Re:Lock freedom without garbage collection in Rust by steveklabnik on Thursday August 27, 2015 @07:42PM (#10132851)
Re:Lock freedom without garbage collection in Rust by vvanders on Thursday August 27, 2015 @08:02PM (#10132931)
Nice!

Let me add another plus for Rust is the community around it.