-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.rs
47 lines (46 loc) · 1.37 KB
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
* Copyright (c) 2024 The NAMIB Project Developers.
* Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
* https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
* <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
* option. This file may not be copied, modified, or distributed
* except according to those terms.
*
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
use cfg_aliases::cfg_aliases;
fn main() {
// Set up some aliases for conditional compilation (in order to avoid repetition).
cfg_aliases! {
rustcrypto_encrypt_base: {
any(
feature = "rustcrypto-aes-gcm",
feature = "rustcrypto-aes-ccm",
feature = "rustcrypto-chacha20-poly1305"
)
},
rustcrypto_sign_base: {
any(
feature = "rustcrypto-ecdsa"
)
},
rustcrypto_key_distribution_base: {
any(
feature = "rustcrypto-aes-kw"
)
},
rustcrypto_mac_base: {
any(
feature = "rustcrypto-hmac"
)
},
rustcrypto_base: {
any(
rustcrypto_encrypt_base,
rustcrypto_sign_base,
rustcrypto_key_distribution_base,
rustcrypto_mac_base
)
},
}
}