This commit is contained in:
Ryan Chandler 2022-11-24 21:28:38 +00:00
parent 46039ef9de
commit 91276aa2c1
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA
2 changed files with 0 additions and 18 deletions

View File

@ -1,10 +0,0 @@
[package]
name = "trunk_ffi"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib"]
[dependencies]
trunk_parser = { path = "../trunk_parser" }

View File

@ -1,8 +0,0 @@
#[no_mangle]
pub extern "C" fn fib(n: i32) -> i32 {
if n < 2 {
return n;
}
return fib(n - 1) + fib(n - 2);
}