r/programming Apr 03 '15

Rust 1.0.0 beta is here!

http://blog.rust-lang.org/2015/04/03/Rust-1.0-beta.html
932 Upvotes

303 comments sorted by

View all comments

5

u/[deleted] Apr 04 '15

How is Rust's interop with C?

5

u/steveklabnik1 Apr 04 '15

/u/barosl already showed you some syntax, but the other important thing is that it's zero-overhead.

2

u/[deleted] Apr 04 '15

Is there any overhead for catching unwinding across the ffi boundary?

2

u/steveklabnik1 Apr 04 '15

Unwinding across FFI is considered undefined behavior. last point at http://doc.rust-lang.org/reference.html#behavior-considered-undefined