tauri-plugin-serialplugin 2.0.1

Access the current process of your Tauri application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

const COMMANDS: &[&str] = &["available_ports", "cancel_read", "close", "close_all", "force_close", "open", "read", "write", "write_binary", "available_ports_direct"];

fn main() {

    tauri_plugin::Builder::new(COMMANDS)
        .global_api_script_path("./src/api-iife.js")
        .build();
}