-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.rs
executable file
·41 lines (37 loc) · 873 Bytes
/
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
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT
const COMMANDS: &[&str] = &[
"available_ports",
"available_ports_direct",
"cancel_read",
"close",
"close_all",
"force_close",
"open",
"read",
"write",
"write_binary",
"set_baud_rate",
"set_data_bits",
"set_flow_control",
"set_parity",
"set_stop_bits",
"set_timeout",
"write_request_to_send",
"write_data_terminal_ready",
"read_clear_to_send",
"read_data_set_ready",
"read_ring_indicator",
"read_carrier_detect",
"bytes_to_read",
"bytes_to_write",
"clear_buffer",
"set_break",
"clear_break",
];
fn main() {
tauri_plugin::Builder::new(COMMANDS)
.global_api_script_path("./src/api-iife.js")
.build();
}