Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deid84/tauri-plugin-serialport
A tauri plugin for managin serial port communication, created using serialport-rs crate.
https://github.com/deid84/tauri-plugin-serialport
plugin rust serial serialport tauri
Last synced: 2 months ago
JSON representation
A tauri plugin for managin serial port communication, created using serialport-rs crate.
- Host: GitHub
- URL: https://github.com/deid84/tauri-plugin-serialport
- Owner: deid84
- Created: 2023-07-08T15:45:07.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-03T09:44:35.000Z (12 months ago)
- Last Synced: 2024-08-04T00:05:31.028Z (6 months ago)
- Topics: plugin, rust, serial, serialport, tauri
- Language: Rust
- Homepage:
- Size: 568 KB
- Stars: 11
- Watchers: 1
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-tauri - tauri-plugin-serialport - Cross-compatible serialport communication tool. (Development / Plugins)
README
# Tauri Plugin SerialPort
A tauri plugin for managin serial port communication, created using serialport-rs crate.## Installation
There are three general methods of installation that we can recommend.1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)
2. Pull sources directly from Github using git tags / revision hashes (most secure)
3. Git submodule install this repo in your tauri project and then use file protocol to ingest the source (most secure, but inconvenient to use)### RUST
Install the Core plugin by adding the following to your `Cargo.toml` file:
`src-tauri/Cargo.toml`
```toml
[dependencies]
tauri-plugin-serialport = { git = "https://github.com/deid84/tauri-plugin-serialport", tag = "v1.0.0" }
```Use in `src-tauri/src/main.rs`:
```RUST
use tauri_plugin_serialport;fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_serialport::init())
.build()
.run();
}
```### WEBVIEW
`Install from a tagged release`
```
npm install github:deid84/tauri-plugin-serialport#v1.0.0
# or
yarn add github:deid84/tauri-plugin-serialport#v1.0.0
````Install from a branch (dev)`
```
npm install https://github.com/deid84/tauri-plugin-serialport\#master
# or
yarn add https://github.com/deid84/tauri-plugin-serialport\#master
````package.json`
```json
"dependencies": {
"tauri-plugin-serialport-api": "github:deid84/tauri-plugin-serialport#v1.0.0",
}
````Use within your JS/TS:`
todo...