Rust Once, Run Everywhere
The Rust blog has posted a guideto using Rust's foreign function interface (FFI) with C code.Highlighted in particular are Rust's safe abstractions, which are saidto impose no costs. "Most features in Rust tie into its coreconcept of ownership, and the FFI is no exception. When binding a Clibrary in Rust you not only have the benefit of zero overhead, butyou are also able to make it safer than C can! Bindings can leveragethe ownership and borrowing principles in Rust to codify commentstypically found in a C header about how its API should beused."