File: export_name.rs

package info (click to toggle)
rust-cbindgen 0.29.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,248 kB
  • sloc: ansic: 15; makefile: 11
file content (9 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#[export_name = "do_the_thing_with_export_name"]
pub extern "C" fn do_the_thing() {
  println!("doing the thing!");
}

#[unsafe(export_name = "do_the_thing_with_unsafe_export_name")]
pub extern "C" fn unsafe_do_the_thing() {
  println!("doing the thing!");
}