f7617c1cd4
- Implement link-arg as an attribute - Apply suggestions from review - Co-authored-by: Vadim Petrochenkov <vadim.petrochenkov@gmail.com> - Add unstable book entry
15 lines
305 B
Rust
15 lines
305 B
Rust
#![feature(link_arg_attribute)]
|
|
|
|
#[link(kind = "static", name = "native_dep_1", modifiers = "-bundle")]
|
|
#[link(kind = "link-arg", name = "some_flag")]
|
|
#[link(kind = "static", name = "native_dep_2", modifiers = "-bundle")]
|
|
extern "C" {
|
|
pub fn foo();
|
|
}
|
|
|
|
pub fn f() {
|
|
unsafe {
|
|
foo();
|
|
}
|
|
}
|