make wmill reference correct windmill-api version (#6041)

* Use regex to split input to python import parser

* gitignore Cargo.toml

* gitignore cargo.toml

* Restore cargo.lock

* fix(rust): make wmill reference correct windmill-api

`wmill` crate of version `x` should reference `windmill-api` of the same version `x`
This commit is contained in:
pyranota
2025-06-24 16:36:40 +02:00
committed by GitHub
parent 1bdd00a3e4
commit db000508ec
3 changed files with 5 additions and 4 deletions

View File

@@ -1569,7 +1569,7 @@ dependencies = [
[[package]]
name = "windmill-api"
version = "1.499.0"
version = "1.501.0"
dependencies = [
"reqwest",
"serde",
@@ -1732,7 +1732,7 @@ dependencies = [
[[package]]
name = "wmill"
version = "1.499.0"
version = "1.501.0"
dependencies = [
"anyhow",
"futures",

View File

@@ -20,7 +20,7 @@ uuid = "1"
[dependencies.windmill-api]
path = "./windmill_api"
version = "1.496.3"
version = "<VERSION>"
[dependencies.futures]
version = "0.3"

View File

@@ -1,6 +1,6 @@
#! /usr/bin/env nu
let version = open ../version.txt;
let version = open ../version.txt | str trim;
def main [ --publish(-p) --check(-c) --test(-t) ] {
mkdir api/a/
@@ -16,6 +16,7 @@ def main [ --publish(-p) --check(-c) --test(-t) ] {
# Patch Cargo.toml
open Cargo.proto.toml
| update package.version $version
| update dependencies.windmill-api.version $version
| save -f Cargo.toml
# Patch windmill_api/Cargo.toml