Hi All,
I am attempting to implement some functions in Rust that I'd like to call
from my existing C app. Here's what I tried - I created a rust file as
follows -
#![crate_name = "rustcode"]
#![crate_type = "staticlib"]
#![no_std]
#![feature(globs, asm, lang_items)]
#[no_mangle]
pub extern "C" fn rust_func() {}
When I compile it using rustc, I get
error: requires `sized` lang_item
error: aborting due to previous erro
What I'd like to be able to do is call rust_func from my C program.
Regards,
Kashyap
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev