~mmach/netext73/meson

« back to all changes in this revision

Viewing changes to test cases/rust/2 sharedlib/stuff.rs

  • Committer: mmach
  • Date: 2023-03-15 07:28:10 UTC
  • Revision ID: netbit73@gmail.com-20230315072810-rjs3fs158gp6aup7
dla focal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#![crate_name = "stuff"]
2
2
 
3
 
extern "C" {
4
 
        fn c_value() -> i32;
5
 
}
6
 
 
7
 
pub fn explore() -> String {
8
 
    unsafe {
9
 
        format!("library{}string", c_value())
10
 
    }
11
 
}
 
3
pub fn explore() -> &'static str { "librarystring" }