Add Ruby to Rust example

This commit is contained in:
Alex Crichton
2015-04-19 10:38:48 -07:00
parent 930924cdf5
commit 515ebb2db1
4 changed files with 32 additions and 0 deletions

9
ruby-to-rust/Makefile Normal file
View File

@@ -0,0 +1,9 @@
all: target/libdouble_input.so
ruby src/main.rb
target/libdouble_input.so: src/lib.rs Cargo.toml
cargo build
(cd target && ln -nsf debug/libdouble_input-* libdouble_input.so)
clean:
rm -rf target