Update examples for Rust master
This commit is contained in:
@@ -4,12 +4,11 @@ else
|
||||
EXT := so
|
||||
endif
|
||||
|
||||
all: target/libdouble_input.so
|
||||
all: target/debug/libdouble_input.$(EXT)
|
||||
perl src/main.pl
|
||||
|
||||
target/libdouble_input.so: src/lib.rs Cargo.toml
|
||||
target/debug/libdouble_input.$(EXT): src/lib.rs Cargo.toml
|
||||
cargo build
|
||||
(cd target && ln -nsf debug/libdouble_input-*$(EXT) libdouble_input.so)
|
||||
|
||||
clean:
|
||||
rm -rf target
|
||||
|
||||
@@ -2,7 +2,7 @@ use v5.10;
|
||||
use FFI::Raw;
|
||||
|
||||
my $double_input = FFI::Raw->new(
|
||||
"target/libdouble_input.so",
|
||||
"target/debug/libdouble_input.so",
|
||||
'double_input',
|
||||
FFI::Raw::int, # return value
|
||||
FFI::Raw::int # arg #1
|
||||
|
||||
Reference in New Issue
Block a user