-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.rs
20 lines (18 loc) · 998 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
fn main() {
// Require one Send version to be used
#[cfg(not(any(feature = "send2", feature = "send3")))]
println!("cargo:warning=ffsend-api: must specify send versions, provide feature 'send2' and/or 'send3'");
// Require one crypto backend to be used
#[cfg(not(any(feature = "crypto-ring", feature = "crypto-openssl")))]
println!("cargo:warning=ffsend-api: must specify crypto backend, provide feature 'crypto-ring' or 'crypto-openssl'");
#[cfg(all(feature = "crypto-ring", feature = "crypto-openssl"))]
println!("cargo:warning=ffsend-api: feature 'crypto-ring' and 'crypto-openssl' cannot be used together");
// crypto-ring and send2 cannot be used together
#[cfg(all(feature = "crypto-ring", feature = "send2"))]
{
println!(
"cargo:warning=ffsend-api: feature 'crypto-ring' and 'send2' cannot be used together"
);
println!("cargo:warning=ffsend-api: use 'crypto-openssl' instead or opt out of 'send2'");
}
}