This is required for downstream Rust dependencies to properly import libraries using `extern crate`.pull/2104/head
parent
bff37a90fc
commit
4eda3ca0fc
5 changed files with 12 additions and 0 deletions
@ -0,0 +1,2 @@ |
||||
usr/bin/prog?exe |
||||
usr/lib/libnamed_stuff.rlib |
@ -0,0 +1,5 @@ |
||||
project('rust static library', 'rust') |
||||
|
||||
l = static_library('named_stuff', 'stuff.rs', install : true) |
||||
e = executable('prog', 'prog.rs', link_with : l, install : true) |
||||
test('linktest', e) |
@ -0,0 +1,3 @@ |
||||
extern crate named_stuff; |
||||
|
||||
fn main() { println!("printing: {}", named_stuff::explore()); } |
@ -0,0 +1 @@ |
||||
pub fn explore() -> &'static str { "librarystring" } |
Loading…
Reference in new issue