Download packages/tauri-plugins/plugins/process/src/lib.rs from echodict/readest: direct link, hf CLI and curl.
- Browser
- Download file 739 Bytes
-
https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/process/src/lib.rs
- Command line
-
hf download hf://datasets/echodict/readest/packages/tauri-plugins/plugins/process/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/datasets/echodict/readest/resolve/main/packages/tauri-plugins/plugins/process/src/lib.rs
739 Bytes
| // Copyright 2019-2023 Tauri Programme within The Commons Conservancy | |
| // SPDX-License-Identifier: Apache-2.0 | |
| // SPDX-License-Identifier: MIT | |
| //! This plugin provides APIs to access the current process. To spawn child processes, see the [`shell`](https://github.com/tauri-apps/tauri-plugin-shell) plugin. | |
| use tauri::{ | |
| plugin::{Builder, TauriPlugin}, | |
| Runtime, | |
| }; | |
| mod commands; | |
| pub fn init<R: Runtime>() -> TauriPlugin<R> { | |
| Builder::new("process") | |
| .invoke_handler(tauri::generate_handler![commands::exit, commands::restart]) | |
| .build() | |
| } | |