-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathbuild.rs
More file actions
51 lines (49 loc) · 1.1 KB
/
build.rs
File metadata and controls
51 lines (49 loc) · 1.1 KB
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
48
49
50
51
//! To avoid messing up with long logical expressions in the codebase.
use cfg_aliases ::cfg_aliases;
fn main()
{
// Setup cfg aliases
cfg_aliases! {
// Platforms
// wasm: { target_arch = "wasm32" },
// android: { target_os = "android" },
// macos: { target_os = "macos" },
// linux: { target_os = "linux" },
all_derives :
{
all
(
feature = "derive_as_mut",
feature = "derive_as_ref",
feature = "derive_deref",
feature = "derive_deref_mut",
feature = "derive_from",
feature = "derive_index",
feature = "derive_index_mut",
feature = "derive_inner_from",
feature = "derive_variadic_from",
feature = "derive_not",
feature = "derive_reflect",
feature = "derive_phantom"
)
},
any_derive :
{
any
(
feature = "derive_as_mut",
feature = "derive_as_ref",
feature = "derive_deref",
feature = "derive_deref_mut",
feature = "derive_from",
feature = "derive_index",
feature = "derive_index_mut",
feature = "derive_inner_from",
feature = "derive_variadic_from",
feature = "derive_not",
feature = "derive_reflect",
feature = "derive_phantom"
)
},
}
}