mirror of
https://github.com/gorules/zen.git
synced 2026-10-05 00:02:26 +00:00
fix: rust version bump
This commit is contained in:
+4
@@ -34068,10 +34068,14 @@ var toml = __nccwpck_require__(2132);
|
||||
const versionRegex = /version = "[0-9]+\.[0-9]+\.[0-9]+"$/im;
|
||||
const expressionDep = /zen-expression =.*$/im;
|
||||
const templateDep = /zen-tmpl =.*$/im;
|
||||
const macroDep = /zen-macros =.*$/im;
|
||||
const typesDep = /zen-types =.*$/im;
|
||||
const updateCargoContents = (contents, { version }) => {
|
||||
return contents
|
||||
.replace(versionRegex, `version = "${version}"`)
|
||||
.replace(expressionDep, `zen-expression = { path = "../expression", version = "${version}" }`)
|
||||
.replace(macroDep, `zen-macros = { path = "../macros", version = "${version}" }`)
|
||||
.replace(typesDep, `zen-types = { path = "../types", version = "${version}" }`)
|
||||
.replace(templateDep, `zen-tmpl = { path = "../template", version = "${version}" }`);
|
||||
};
|
||||
const getCargoVersion = (contents) => {
|
||||
|
||||
@@ -7,11 +7,15 @@ type UpdateCargoOptions = {
|
||||
const versionRegex = /version = "[0-9]+\.[0-9]+\.[0-9]+"$/im;
|
||||
const expressionDep = /zen-expression =.*$/im;
|
||||
const templateDep = /zen-tmpl =.*$/im;
|
||||
const macroDep = /zen-macros =.*$/im;
|
||||
const typesDep = /zen-types =.*$/im;
|
||||
|
||||
export const updateCargoContents = (contents: string, { version }: UpdateCargoOptions): string => {
|
||||
return contents
|
||||
.replace(versionRegex, `version = "${version}"`)
|
||||
.replace(expressionDep, `zen-expression = { path = "../expression", version = "${version}" }`)
|
||||
.replace(macroDep, `zen-macros = { path = "../macros", version = "${version}" }`)
|
||||
.replace(typesDep, `zen-types = { path = "../types", version = "${version}" }`)
|
||||
.replace(templateDep, `zen-tmpl = { path = "../template", version = "${version}" }`);
|
||||
};
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ nohash-hasher = "0.2.0"
|
||||
strsim = "0.11"
|
||||
iana-time-zone = "0.1"
|
||||
|
||||
zen-macros = { path = "../macros" }
|
||||
zen-types = { path = "../types" }
|
||||
zen-macros = { path = "../macros", version = "0.50.0" }
|
||||
zen-types = { path = "../types", version = "0.50.0" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = { workspace = true }
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
name = "zen-macros"
|
||||
version = "0.50.0"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
proc-macro = true
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
name = "zen-types"
|
||||
version = "0.50.0"
|
||||
edition = "2024"
|
||||
publish = false
|
||||
|
||||
[dependencies]
|
||||
ahash = { workspace = true }
|
||||
|
||||
Reference in New Issue
Block a user