Skip to content

Commit

Permalink
chore: pin dependency versions in rust model (#2048)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy committed Sep 9, 2024
1 parent c4b4d00 commit 24c6553
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 59 deletions.
13 changes: 7 additions & 6 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rust/monovertex/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pep440_rs = "0.6.6"
backoff = { path = "../backoff" }
parking_lot = "0.12.3"
prometheus-client = "0.22.3"
kube = "0.93.1"
kube = "0.94.0"

[dev-dependencies]
tempfile = "3.11.0"
Expand Down
2 changes: 1 addition & 1 deletion rust/numaflow-models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"

[dependencies]
k8s-openapi = { version = "0.22.0", features = ["v1_29"] }
kube = "0.93.1"
kube = "0.94.0"
serde = "^1.0"
serde_derive = "^1.0"
serde_json = "^1.0"
Expand Down
2 changes: 0 additions & 2 deletions rust/numaflow-models/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,4 @@ generate:
--type-mappings IntOrString="k8s_openapi::apimachinery::pkg::util::intstr::IntOrString" \
--generate-alias-as-model

cargo add kube
cargo add k8s-openapi --features v1_29
cargo fmt
53 changes: 4 additions & 49 deletions rust/numaflow-models/templates/Cargo.mustache
Original file line number Diff line number Diff line change
@@ -1,65 +1,20 @@
[package]
name = "{{{packageName}}}"
version = "{{#lambdaVersion}}{{{packageVersion}}}{{/lambdaVersion}}"
{{#infoEmail}}
authors = ["{{{.}}}"]
{{/infoEmail}}
{{^infoEmail}}
name = "numaflow-models"
version = "0.0.0-pre"
authors = ["The Numaproj Authors"]
{{/infoEmail}}
{{#appDescription}}
description = "Numaflow models"
{{/appDescription}}
license = "Apache-2.0 license"
edition = "2021"
{{#publishRustRegistry}}
publish = ["{{.}}"]
{{/publishRustRegistry}}
{{#repositoryUrl}}
repository = "{{.}}"
{{/repositoryUrl}}
{{#documentationUrl}}
documentation = "{{.}}"
{{/documentationUrl}}
{{#homePageUrl}}
homepage = "{{.}}
{{/homePageUrl}}

[dependencies]
k8s-openapi = { version = "0.22.0", features = ["v1_29"] }
kube = "0.94.0"
serde = "^1.0"
serde_derive = "^1.0"
{{#serdeWith}}
serde_with = "^2.0"
{{/serdeWith}}
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde", "v4"] }
{{#hyper}}
hyper = { version = "~0.14", features = ["full"] }
hyper-tls = "~0.5"
http = "~0.2"
base64 = "~0.7.0"
futures = "^0.3"
{{/hyper}}
{{#withAWSV4Signature}}
aws-sigv4 = "0.3.0"
http = "0.2.5"
secrecy = "0.8.0"
{{/withAWSV4Signature}}
{{#reqwest}}
{{^supportAsync}}
[dependencies.reqwest]
version = "^0.11"
default-features = false
features = ["json", "blocking", "multipart", "rustls-tls"]
{{/supportAsync}}
{{#supportAsync}}
{{#supportMiddleware}}
reqwest-middleware = "0.2.0"
{{/supportMiddleware}}
[dependencies.reqwest]
version = "^0.11"
default-features = false
features = ["json", "multipart", "rustls-tls"]
{{/supportAsync}}
{{/reqwest}}

0 comments on commit 24c6553

Please sign in to comment.