浏览代码

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

Lucas Fernandes Nogueira 2 年之前
父节点
当前提交
5288a386f1
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 6 0
      .changes/fix-plugin-template-cargotoml.md
  2. 16 0
      tooling/cli/templates/plugin/Cargo.crate-manifest

+ 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 }}}