blob: d4fbff85bfe6ff17e7de82302c2d752ed1a3b919 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![crate_type="cdylib"]
extern crate an_rlib;
// This should not be exported
pub fn public_rust_function_from_cdylib() {}
// This should be exported
#[no_mangle]
pub extern "C" fn public_c_function_from_cdylib() {
an_rlib::public_c_function_from_rlib();
}
|