暫無描述

Lucas Stadler cd8a3f38e5 Add a tiny README.md 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 cd8a3f38e5 Add a tiny README.md 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>

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.