説明なし

Lucas Stadler d84545543b Note that it needs to be built with nightly 10 年 前
..
src b030f12a8e Merge the two `impl` blocks for PNGImage 10 年 前
.gitignore 416aa59f35 Initial commit: Hello FFI in Rust! 10 年 前
Cargo.lock 416aa59f35 Initial commit: Hello FFI in Rust! 10 年 前
Cargo.toml 416aa59f35 Initial commit: Hello FFI in Rust! 10 年 前
README.md d84545543b Note that it needs to be built with nightly 10 年 前

README.md

coffi - Some FFI experiments in Rust

Playing with the FFI in Rust. Surprisingly easy, but there are likely dragons elsewhere.

Quickstart

Display some information about a PNG file, most notably it's width and height.

cargo run <path-to-png>

Should build with Rust 1.6.0-nightly, which is necessary because it uses the feature(libc) flag.

If you use emacs, flycheck-mode can check the code on the fly, which is awesome!

Why "coffi"?

Not sure, only the "ffi" part makes sense now. Ah, no, the "co" comes from cos, which was the first function we wanted to wrap. That turned out so easy that we tried libpng next.