-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace client flag with ffi_export/ffi_import
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
- Loading branch information
Showing
32 changed files
with
846 additions
and
730 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! Build script | ||
//! | ||
//! Warn if `ffi_import` and `ffi_export` features are active at the same time | ||
|
||
fn main() { | ||
let ffi_import = std::env::var_os("CARGO_FEATURE_FFI_IMPORT").is_some(); | ||
let ffi_export = std::env::var_os("CARGO_FEATURE_FFI_EXPORT").is_some(); | ||
|
||
#[allow(clippy::print_stderr)] | ||
if ffi_import && ffi_export { | ||
eprintln!("cargo:warning=Features `ffi_export` and `ffi_import` are mutually exclusive"); | ||
eprintln!("cargo:warning=When both active, `ffi_import` feature takes precedence"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! Build script | ||
//! | ||
//! Warn if `ffi_import` and `ffi_export` features are active at the same time | ||
|
||
fn main() { | ||
let ffi_import = std::env::var_os("CARGO_FEATURE_FFI_IMPORT").is_some(); | ||
let ffi_export = std::env::var_os("CARGO_FEATURE_FFI_EXPORT").is_some(); | ||
|
||
#[allow(clippy::print_stderr)] | ||
if ffi_import && ffi_export { | ||
println!("cargo:warning=Features `ffi_export` and `ffi_import` are mutually exclusive"); | ||
println!("cargo:warning=When both active, `ffi_import` feature takes precedence"); | ||
} | ||
} |
Oops, something went wrong.