From bb931626bf40d70e045fd2d963159d9bc4909057 Mon Sep 17 00:00:00 2001
From: makspll <makspl17@gmail.com>
Date: Tue, 5 Mar 2024 23:19:16 +0000
Subject: [PATCH] remove unnecessary metadata

---
 Cargo.toml                                    | 18 ++++----
 bevy_api_gen/Cargo.toml                       |  9 +---
 bevy_event_priority/Cargo.toml                |  7 +---
 bevy_mod_scripting_common/Cargo.toml          |  9 +---
 bevy_mod_scripting_core/Cargo.toml            | 25 +++++------
 bevy_mod_scripting_derive/Cargo.toml          | 12 ++----
 bevy_script_api/Cargo.toml                    | 42 +++++++++----------
 languages/bevy_mod_scripting_lua/Cargo.toml   |  6 +--
 .../bevy_mod_scripting_lua_derive/Cargo.toml  | 18 +++-----
 languages/bevy_mod_scripting_rhai/Cargo.toml  |  6 ---
 .../bevy_mod_scripting_rhai_derive/Cargo.toml | 18 +++-----
 languages/bevy_mod_scripting_rune/Cargo.toml  |  6 ---
 12 files changed, 63 insertions(+), 113 deletions(-)

diff --git a/Cargo.toml b/Cargo.toml
index 132fbbfb..6b876edf 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,16 +21,14 @@ name = "bevy_mod_scripting"
 path = "src/lib.rs"
 
 [package.metadata."docs.rs"]
-features = ["lua", "lua54", "rhai", "lua_script_api", "rhai_script_api", "teal", "rune"]
-
-[package.metadata.release]
-pre-release-replacements = [
-    { file = "Cargo.toml", search = '^version\s*=\s*.*$', replace = "version = \"{{version}}\"", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_lua\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_rhai\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_rune\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_script_api\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
+features = [
+    "lua",
+    "lua54",
+    "rhai",
+    "lua_script_api",
+    "rhai_script_api",
+    "teal",
+    "rune",
 ]
 
 [features]
diff --git a/bevy_api_gen/Cargo.toml b/bevy_api_gen/Cargo.toml
index 8a973ad6..45b23e16 100644
--- a/bevy_api_gen/Cargo.toml
+++ b/bevy_api_gen/Cargo.toml
@@ -7,15 +7,10 @@ license = "MIT"
 description = "A code generator creating macro invocations to support the changing bevy API"
 repository = "https://github.com/makspll/bevy_mod_scripting"
 homepage = "https://github.com/makspll/bevy_mod_scripting"
-keywords = ["bevy", "gamedev", "scripting", "lua","code-generation"]
+keywords = ["bevy", "gamedev", "scripting", "lua", "code-generation"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-]
-
 [lib]
 name = "bevy_api_gen_lib"
 path = "src/lib.rs"
@@ -32,4 +27,4 @@ serde_json = "1.0.81"
 toml = "0.5.9"
 serde = { version = "1.0", features = ["derive"] }
 serde_derive = "1.0.137"
-indexmap = {version= "1.9.1", features= ["serde"]}
+indexmap = { version = "1.9.1", features = ["serde"] }
diff --git a/bevy_event_priority/Cargo.toml b/bevy_event_priority/Cargo.toml
index d36cc05d..f290d12b 100644
--- a/bevy_event_priority/Cargo.toml
+++ b/bevy_event_priority/Cargo.toml
@@ -11,15 +11,10 @@ keywords = ["bevy", "gamedev", "scripting", "lua"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-]
 
 [lib]
 name = "bevy_event_priority"
 path = "src/lib.rs"
 
 [dependencies]
-bevy = { version = "0.12", default-features = false}
-
+bevy = { version = "0.12", default-features = false }
diff --git a/bevy_mod_scripting_common/Cargo.toml b/bevy_mod_scripting_common/Cargo.toml
index 51bfa6cf..9efc9bfd 100644
--- a/bevy_mod_scripting_common/Cargo.toml
+++ b/bevy_mod_scripting_common/Cargo.toml
@@ -11,21 +11,16 @@ keywords = ["bevy", "gamedev", "scripting", "lua"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-]
-
 [lib]
 name = "bevy_mod_scripting_common"
 path = "src/lib.rs"
 
 [dependencies]
 paste = "1.0.7"
-syn = {version="1.0.57",features=["full","fold","extra-traits"]}
+syn = { version = "1.0.57", features = ["full", "fold", "extra-traits"] }
 quote = "1.0.8"
 proc-macro2 = "1.0"
 convert_case = "0.5.0"
 serde = { version = "1.0", features = ["derive"] }
 serde_derive = "1.0.137"
-indexmap = {version= "1.9.1", features= ["serde"]}
+indexmap = { version = "1.9.1", features = ["serde"] }
diff --git a/bevy_mod_scripting_core/Cargo.toml b/bevy_mod_scripting_core/Cargo.toml
index 4a52cbe0..8b403f22 100644
--- a/bevy_mod_scripting_core/Cargo.toml
+++ b/bevy_mod_scripting_core/Cargo.toml
@@ -11,14 +11,6 @@ keywords = ["bevy", "gamedev", "scripting", "lua"]
 categories = ["game-development"]
 readme = "readme.md"
 
-
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-    {file="Cargo.toml", search='^(?P<h>bevy_event_priority\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-]
-
-
 [lib]
 name = "bevy_mod_scripting_core"
 path = "src/lib.rs"
@@ -29,10 +21,19 @@ doc_always = []
 
 
 [dependencies]
-bevy = { version = "0.12", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite"]}
-bevy_event_priority = {path = "../bevy_event_priority", version = "0.4.0" }
+bevy = { version = "0.12", default-features = false, features = [
+    "bevy_asset",
+    "bevy_gltf",
+    "bevy_animation",
+    "bevy_core_pipeline",
+    "bevy_ui",
+    "bevy_pbr",
+    "bevy_render",
+    "bevy_text",
+    "bevy_sprite",
+] }
+bevy_event_priority = { path = "../bevy_event_priority", version = "0.4.0" }
 thiserror = "1.0.31"
 paste = "1.0.7"
 parking_lot = "0.12.1"
-anyhow ="1.0.75"
-
+anyhow = "1.0.75"
diff --git a/bevy_mod_scripting_derive/Cargo.toml b/bevy_mod_scripting_derive/Cargo.toml
index b0706c70..a7cbcd7a 100644
--- a/bevy_mod_scripting_derive/Cargo.toml
+++ b/bevy_mod_scripting_derive/Cargo.toml
@@ -11,12 +11,6 @@ keywords = ["bevy", "gamedev", "scripting", "lua"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-    {file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_common\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-]
-
 [lib]
 name = "bevy_mod_scripting_derive"
 proc-macro = true
@@ -24,13 +18,13 @@ path = "src/lib.rs"
 
 
 [dependencies]
-bevy_mod_scripting_common = {path = "../bevy_mod_scripting_common", version = "0.4.0" }
+bevy_mod_scripting_common = { path = "../bevy_mod_scripting_common", version = "0.4.0" }
 paste = "1.0.7"
-syn = {version="1.0.57",features=["full","fold","extra-traits"]}
+syn = { version = "1.0.57", features = ["full", "fold", "extra-traits"] }
 quote = "1.0.8"
 proc-macro2 = "1.0"
 convert_case = "0.5.0"
 rustdoc-types = "0.11.0"
 serde = { version = "1.0", features = ["derive"] }
 serde_derive = "1.0.137"
-indexmap = {version= "1.9.1", features= ["serde"]}
+indexmap = { version = "1.9.1", features = ["serde"] }
diff --git a/bevy_script_api/Cargo.toml b/bevy_script_api/Cargo.toml
index a7c44f01..58a89c81 100644
--- a/bevy_script_api/Cargo.toml
+++ b/bevy_script_api/Cargo.toml
@@ -7,32 +7,32 @@ license = "MIT"
 description = "Bevy API for multiple script languages, part of bevy_mod_scripting."
 repository = "https://github.com/makspll/bevy_mod_scripting"
 homepage = "https://github.com/makspll/bevy_mod_scripting"
-keywords = ["bevy", "gamedev", "scripting", "lua","rhai"]
+keywords = ["bevy", "gamedev", "scripting", "lua", "rhai"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    { file = "Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-    { file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_derive\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-    { file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-    { file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_lua\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-    { file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_lua_derive\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-    { file = "Cargo.toml", search='^(?P<h>bevy_mod_scripting_rhai\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-]
-
 [features]
-lua = ["bevy_mod_scripting_lua","bevy_mod_scripting_lua_derive"]
+lua = ["bevy_mod_scripting_lua", "bevy_mod_scripting_lua_derive"]
 rhai = ["bevy_mod_scripting_rhai"]
 
 [dependencies]
-bevy = { version = "0.12", default-features = false, features=["bevy_asset","bevy_gltf","bevy_animation","bevy_core_pipeline","bevy_ui","bevy_pbr","bevy_render","bevy_text","bevy_sprite"]}
-bevy_mod_scripting_derive = { path="../bevy_mod_scripting_derive", version = "0.4.0" }
-bevy_mod_scripting_core = { path="../bevy_mod_scripting_core", version = "0.4.0" }
-parking_lot="0.12.1"
-paste="1.0.7"
-thiserror="1.0.32"
+bevy = { version = "0.12", default-features = false, features = [
+    "bevy_asset",
+    "bevy_gltf",
+    "bevy_animation",
+    "bevy_core_pipeline",
+    "bevy_ui",
+    "bevy_pbr",
+    "bevy_render",
+    "bevy_text",
+    "bevy_sprite",
+] }
+bevy_mod_scripting_derive = { path = "../bevy_mod_scripting_derive", version = "0.4.0" }
+bevy_mod_scripting_core = { path = "../bevy_mod_scripting_core", version = "0.4.0" }
+parking_lot = "0.12.1"
+paste = "1.0.7"
+thiserror = "1.0.32"
 # lua
-bevy_mod_scripting_lua={path="../languages/bevy_mod_scripting_lua", version = "0.4.0", optional=true}
-bevy_mod_scripting_lua_derive={path="../languages/bevy_mod_scripting_lua_derive", version = "0.4.0", optional=true}
-bevy_mod_scripting_rhai={path="../languages/bevy_mod_scripting_rhai", version = "0.4.0", optional=true}
+bevy_mod_scripting_lua = { path = "../languages/bevy_mod_scripting_lua", version = "0.4.0", optional = true }
+bevy_mod_scripting_lua_derive = { path = "../languages/bevy_mod_scripting_lua_derive", version = "0.4.0", optional = true }
+bevy_mod_scripting_rhai = { path = "../languages/bevy_mod_scripting_rhai", version = "0.4.0", optional = true }
diff --git a/languages/bevy_mod_scripting_lua/Cargo.toml b/languages/bevy_mod_scripting_lua/Cargo.toml
index 4185c9f5..5cfdfdd1 100644
--- a/languages/bevy_mod_scripting_lua/Cargo.toml
+++ b/languages/bevy_mod_scripting_lua/Cargo.toml
@@ -15,10 +15,6 @@ readme = "readme.md"
 features = ["lua54"]
 
 [package.metadata.release]
-pre-release-replacements = [
-    { file = "Cargo.toml", search = '^version\s*=\s*.*$', replace = "version = \"{{version}}\"", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-]
 enable-features = ["lua54"]
 
 [features]
@@ -52,4 +48,4 @@ tealr = { version = "0.9", features = [
 ] }
 parking_lot = "0.12.1"
 serde_json = "1.0.81"
-anyhow = "1.0.75"
\ No newline at end of file
+anyhow = "1.0.75"
diff --git a/languages/bevy_mod_scripting_lua_derive/Cargo.toml b/languages/bevy_mod_scripting_lua_derive/Cargo.toml
index 1de91998..1eabf07f 100644
--- a/languages/bevy_mod_scripting_lua_derive/Cargo.toml
+++ b/languages/bevy_mod_scripting_lua_derive/Cargo.toml
@@ -11,25 +11,19 @@ keywords = ["bevy", "gamedev", "scripting", "rhai"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-    {file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_common\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-]
-
 [lib]
-name="bevy_mod_scripting_lua_derive"
-path="src/lib.rs"
-proc-macro=true
+name = "bevy_mod_scripting_lua_derive"
+path = "src/lib.rs"
+proc-macro = true
 
 [dependencies]
-bevy_mod_scripting_common = {path = "../../bevy_mod_scripting_common", version = "0.4.0" }
+bevy_mod_scripting_common = { path = "../../bevy_mod_scripting_common", version = "0.4.0" }
 paste = "1.0.7"
-syn = {version="1.0.57",features=["full","fold","extra-traits"]}
+syn = { version = "1.0.57", features = ["full", "fold", "extra-traits"] }
 quote = "1.0.8"
 proc-macro2 = "1.0"
 convert_case = "0.5.0"
 rustdoc-types = "0.11.0"
 serde = { version = "1.0", features = ["derive"] }
 serde_derive = "1.0.137"
-indexmap = {version= "1.9.1", features= ["serde"]}
+indexmap = { version = "1.9.1", features = ["serde"] }
diff --git a/languages/bevy_mod_scripting_rhai/Cargo.toml b/languages/bevy_mod_scripting_rhai/Cargo.toml
index 501c0241..b2fecb38 100644
--- a/languages/bevy_mod_scripting_rhai/Cargo.toml
+++ b/languages/bevy_mod_scripting_rhai/Cargo.toml
@@ -11,12 +11,6 @@ keywords = ["bevy", "gamedev", "scripting", "rhai"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    { file = "Cargo.toml", search = '^version\s*=\s*.*$', replace = "version = \"{{version}}\"", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-]
-
 [lib]
 name = "bevy_mod_scripting_rhai"
 path = "src/lib.rs"
diff --git a/languages/bevy_mod_scripting_rhai_derive/Cargo.toml b/languages/bevy_mod_scripting_rhai_derive/Cargo.toml
index 5c01699b..4b2f1896 100644
--- a/languages/bevy_mod_scripting_rhai_derive/Cargo.toml
+++ b/languages/bevy_mod_scripting_rhai_derive/Cargo.toml
@@ -11,25 +11,19 @@ keywords = ["bevy", "gamedev", "scripting", "rhai"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    {file="Cargo.toml", search='^version\s*=\s*.*$', replace="version = \"{{version}}\"", exactly=1},
-    {file="Cargo.toml", search='^(?P<h>bevy_mod_scripting_common\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace="${h}version = \"{{version}}\"${t}", exactly=1},
-]
-
 [lib]
-name="bevy_mod_scripting_rhai_derive"
-path="src/lib.rs"
-proc-macro=true
+name = "bevy_mod_scripting_rhai_derive"
+path = "src/lib.rs"
+proc-macro = true
 
 [dependencies]
-bevy_mod_scripting_common = {path = "../../bevy_mod_scripting_common", version = "0.4.0" }
+bevy_mod_scripting_common = { path = "../../bevy_mod_scripting_common", version = "0.4.0" }
 paste = "1.0.7"
-syn = {version="1.0.57",features=["full","fold","extra-traits"]}
+syn = { version = "1.0.57", features = ["full", "fold", "extra-traits"] }
 quote = "1.0.8"
 proc-macro2 = "1.0"
 convert_case = "0.5.0"
 rustdoc-types = "0.11.0"
 serde = { version = "1.0", features = ["derive"] }
 serde_derive = "1.0.137"
-indexmap = {version= "1.9.1", features= ["serde"]}
+indexmap = { version = "1.9.1", features = ["serde"] }
diff --git a/languages/bevy_mod_scripting_rune/Cargo.toml b/languages/bevy_mod_scripting_rune/Cargo.toml
index 8a087989..6534c56f 100644
--- a/languages/bevy_mod_scripting_rune/Cargo.toml
+++ b/languages/bevy_mod_scripting_rune/Cargo.toml
@@ -10,12 +10,6 @@ keywords = ["bevy", "gamedev", "scripting", "rune"]
 categories = ["game-development"]
 readme = "readme.md"
 
-[package.metadata.release]
-pre-release-replacements = [
-    { file = "Cargo.toml", search = '^version\s*=\s*.*$', replace = "version = \"{{version}}\"", exactly = 1 },
-    { file = "Cargo.toml", search = '^(?P<h>bevy_mod_scripting_core\s*=.*)version\s*=\s*".*"(?P<t>.*)$', replace = "${h}version = \"{{version}}\"${t}", exactly = 1 },
-]
-
 [lib]
 name = "bevy_mod_scripting_rune"
 path = "src/lib.rs"