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

|
||||

|
||||
|
||||
<!-- description -->
|
||||
|
||||
@@ -18,9 +18,9 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
|
||||
|
||||
```toml
|
||||
[dependencies]
|
||||
tauri-plugin-{{plugin-name}} = "2.0.0-beta"
|
||||
tauri-plugin-PLUGIN_NAME = "2.0.0-beta"
|
||||
# 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:
|
||||
@@ -30,18 +30,18 @@ You can install the JavaScript Guest bindings using your preferred JavaScript pa
|
||||
<!-- Add the branch for installations using git! -->
|
||||
|
||||
```sh
|
||||
pnpm add @tauri-apps/plugin-{{plugin-name}}
|
||||
pnpm add @tauri-apps/plugin-PLUGIN_NAME
|
||||
# or
|
||||
npm add @tauri-apps/plugin-{{plugin-name}}
|
||||
npm add @tauri-apps/plugin-PLUGIN_NAME
|
||||
# or
|
||||
yarn add @tauri-apps/plugin-{{plugin-name}}
|
||||
yarn add @tauri-apps/plugin-PLUGIN_NAME
|
||||
|
||||
# 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
|
||||
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
|
||||
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
|
||||
@@ -53,7 +53,7 @@ First you need to register the core plugin with Tauri:
|
||||
```rust
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_{{plugin-name}}::init())
|
||||
.plugin(tauri_plugin_PLUGIN_NAME::init())
|
||||
.run(tauri::generate_context!())
|
||||
.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",
|
||||
"license": "MIT or APACHE-2.0",
|
||||
"authors": [
|
||||
|
||||
Reference in New Issue
Block a user