mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
12 lines
269 B
Rust
12 lines
269 B
Rust
#[link(name = "roc_app", kind = "static")]
|
|
extern "C" {
|
|
#[allow(improper_ctypes)]
|
|
#[link_name = "$Test.main"]
|
|
fn list_from_roc() -> Box<[i64]>;
|
|
}
|
|
|
|
pub fn main() {
|
|
let list = unsafe { list_from_roc() };
|
|
|
|
println!("Roc quicksort says: {:?}", list);
|
|
}
|