Przeglądaj źródła

fix(cli): readd Cargo.toml to the plugin template (#6637)

Lucas Fernandes Nogueira 2 lat temu
rodzic
commit
5288a386f1

+ 6 - 0
.changes/fix-plugin-template-cargotoml.md

@@ -0,0 +1,6 @@
+---
+"cli.rs": patch
+"cli.js": patch
+---
+
+Readd the Cargo.toml file to the plugin template.

+ 16 - 0
tooling/cli/templates/plugin/Cargo.crate-manifest

@@ -0,0 +1,16 @@
+[package]
+name = "tauri-plugin-{{ plugin_name }}"
+version = "0.0.0"
+authors = [ "{{ author }}" ]
+description = ""
+edition = "2021"
+rust-version = "1.60"
+exclude = ["/examples", "/webview-dist", "/webview-src", "/node_modules"]
+
+[dependencies]
+tauri = {{{  tauri_dep }}}
+serde = "1.0"
+thiserror = "1.0"
+
+[build-dependencies]
+tauri-build = {{{ tauri_build_dep }}}