fix: rust version bump (#387)

* fix: rust version bump

* add publish cmd
This commit is contained in:
stefan-gorules
2025-08-25 16:52:34 +02:00
committed by GitHub
parent 33fe2a42c2
commit 1e4135f5fb
6 changed files with 16 additions and 4 deletions
+6
View File
@@ -120,6 +120,12 @@ jobs:
- name: Login to Crates.IO
run: cargo login ${{ secrets.CRATES_TOKEN }}
- name: Publish Macros
run: cd core/macros && cargo publish
- name: Publish Types
run: cd core/types && cargo publish
- name: Publish Expression
run: cd core/expression && cargo publish
+4
View File
@@ -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}" }`);
};
+2 -2
View File
@@ -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 }
-1
View File
@@ -2,7 +2,6 @@
name = "zen-macros"
version = "0.50.0"
edition = "2024"
publish = false
[lib]
proc-macro = true
-1
View File
@@ -2,7 +2,6 @@
name = "zen-types"
version = "0.50.0"
edition = "2024"
publish = false
[dependencies]
ahash = { workspace = true }