mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-20 21:20:42 +02:00
@@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tauri-plugin-{{name}}"
|
name = "tauri-plugin-PLUGIN_NAME"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
edition = { workspace = true }
|
edition = { workspace = true }
|
||||||
authors = { workspace = true }
|
authors = { workspace = true }
|
||||||
license = { workspace = true }
|
license = { workspace = true }
|
||||||
links = "tauri-plugin-{{name}}"
|
links = "tauri-plugin-PLUGIN_NAME"
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
rustc-args = [ "--cfg", "docsrs" ]
|
rustc-args = [ "--cfg", "docsrs" ]
|
||||||
|
|||||||
+10
-10
@@ -1,4 +1,4 @@
|
|||||||

|

|
||||||
|
|
||||||
<!-- description -->
|
<!-- description -->
|
||||||
|
|
||||||
@@ -18,9 +18,9 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
tauri-plugin-{{plugin-name}} = "2.0.0-beta"
|
tauri-plugin-PLUGIN_NAME = "2.0.0-beta"
|
||||||
# alternatively with Git:
|
# alternatively with Git:
|
||||||
tauri-plugin-{{plugin-name}} = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
tauri-plugin-PLUGIN_NAME = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||||
```
|
```
|
||||||
|
|
||||||
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
|
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
|
||||||
@@ -30,18 +30,18 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa
|
|||||||
<!-- Add the branch for installations using git! -->
|
<!-- Add the branch for installations using git! -->
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pnpm add @tauri-apps/plugin-{{plugin-name}}
|
pnpm add @tauri-apps/plugin-PLUGIN_NAME
|
||||||
# or
|
# or
|
||||||
npm add @tauri-apps/plugin-{{plugin-name}}
|
npm add @tauri-apps/plugin-PLUGIN_NAME
|
||||||
# or
|
# or
|
||||||
yarn add @tauri-apps/plugin-{{plugin-name}}
|
yarn add @tauri-apps/plugin-PLUGIN_NAME
|
||||||
|
|
||||||
# alternatively with Git:
|
# alternatively with Git:
|
||||||
pnpm add https://github.com/tauri-apps/tauri-plugin-{{plugin-name}}#v2
|
pnpm add https://github.com/tauri-apps/tauri-plugin-PLUGIN_NAME#v2
|
||||||
# or
|
# or
|
||||||
npm add https://github.com/tauri-apps/tauri-plugin-{{plugin-name}}#v2
|
npm add https://github.com/tauri-apps/tauri-plugin-PLUGIN_NAME#v2
|
||||||
# or
|
# or
|
||||||
yarn add https://github.com/tauri-apps/tauri-plugin-{{plugin-name}}#v2
|
yarn add https://github.com/tauri-apps/tauri-plugin-PLUGIN_NAME#v2
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
@@ -53,7 +53,7 @@ First you need to register the core plugin with Tauri:
|
|||||||
```rust
|
```rust
|
||||||
fn main() {
|
fn main() {
|
||||||
tauri::Builder::default()
|
tauri::Builder::default()
|
||||||
.plugin(tauri_plugin_{{plugin-name}}::init())
|
.plugin(tauri_plugin_PLUGIN_NAME::init())
|
||||||
.run(tauri::generate_context!())
|
.run(tauri::generate_context!())
|
||||||
.expect("error while running tauri application");
|
.expect("error while running tauri application");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@tauri-apps/plugin-{{name}}",
|
"name": "@tauri-apps/plugin-PLUGIN_NAME",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT or APACHE-2.0",
|
"license": "MIT or APACHE-2.0",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|||||||
Reference in New Issue
Block a user