• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //! rust_bindgen_library example consumer
2 
simple_function() -> i643 fn simple_function() -> i64 {
4     unsafe { simple_bindgen::simple_function() }
5 }
6 
main()7 fn main() {
8     println!(
9         "The values are {} and {}!",
10         simple_bindgen::SIMPLE_VALUE,
11         simple_function()
12     );
13 }
14 
15 #[cfg(test)]
16 mod test {
17     #[test]
do_the_test()18     fn do_the_test() {
19         assert_eq!(42, simple_bindgen::SIMPLE_VALUE);
20         assert_eq!(1337, super::simple_function());
21     }
22 }
23