roc/examples/quicksort/host.rs
2020-04-06 23:32:47 -04:00

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);
}