Re: [rust-dev] How to join together C and Rust code?

2012-04-16 Thread Brian Anderson
On 04/16/2012 06:01 AM, Alexander Stavonin wrote: Is it possible to include into the one crate as Rust as C code? Yes it is possible. There's no explicit support for it but native modules may refer to static libraries and it's relatively easy to link arbitrary static libraries into a crate. r

Re: [rust-dev] How to join together C and Rust code?

2012-04-16 Thread Graydon Hoare
On 12-04-16 06:01 AM, Alexander Stavonin wrote: > Is it possible to include into the one crate as Rust as C code? Rust can call C by declaring the C functions within a suitably named rust native module. C can call rust only by rust passing C a pointer to a 'crust' function. Currently the rust com

[rust-dev] How to join together C and Rust code?

2012-04-16 Thread Alexander Stavonin
Is it possible to include into the one crate as Rust as C code? ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev