-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
build.rs
51 lines (39 loc) · 1.53 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
48
49
50
51
use cfg_aliases::cfg_aliases;
fn main() {
cfg_aliases! {
embedded_server: { feature = "embedded-server" },
dev: { not(feature = "embedded-server") },
all_api: { feature = "all-api" },
// fs
read_text_file: { any(all_api, feature = "read-text-file") },
read_binary_file: { any(all_api, feature = "read-binary-file") },
write_file: { any(all_api, feature = "write-file") },
write_binary_file: { any(all_api, feature = "write-binary-file") },
read_dir: { any(all_api, feature = "read-dir") },
copy_file: { any(all_api, feature = "copy-file") },
create_dir: { any(all_api, feature = "create_dir") },
remove_dir: { any(all_api, feature = "remove-dir") },
remove_file: { any(all_api, feature = "remove-file") },
rename_file: { any(all_api, feature = "rename-file") },
// js path api
path_api: { any(all_api, feature = "path-api") },
// window
window: { any(all_api, feature = "window") },
// shell
open: { any(all_api, feature = "open") },
execute: { any(all_api, feature = "execute") },
// event
event: { any(all_api, feature = "event") },
// dialog
open_dialog: { any(all_api, feature = "open-dialog") },
save_dialog: { any(all_api, feature = "save-dialog") },
// http
http_request: { any(all_api, feature = "http-request") },
// cli
cli: { feature = "cli" },
// notification
notification: { any(all_api, feature = "notification") },
// global shortcut
global_shortcut: { any(all_api, feature = "global_shortcut" )},
}
}