Skip to content

Commit e212946

Browse files
committed
chore: reconfigure cargo workspace
This adds package and dependency information at the workspace level as well as now including the gateway-api examples crate properly in the workspace. Signed-off-by: Shane Utt <[email protected]>
1 parent b1abd46 commit e212946

File tree

4 files changed

+237
-23
lines changed

4 files changed

+237
-23
lines changed

Cargo.lock

Lines changed: 155 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
[workspace]
2-
members = ["gateway-api", "xtask"]
2+
members = ["gateway-api", "gateway-api/examples", "xtask"]
33
resolver = "2"
4+
5+
[workspace.package]
6+
authors = ["Shane Utt <[email protected]>"]
7+
edition = "2021"
8+
license = "MIT"
9+
version = "0.12.0"
10+
11+
[workspace.dependencies]
12+
anyhow = "1.0.90"
13+
delegate = "0.13.1"
14+
hyper-util = "0.1.9"
15+
kube = { version = "0.96.0", default-features = false, features = ["derive"] }
16+
k8s-openapi = { version = "0.23.0", features = [ "schemars" ] }
17+
once_cell = "1.20.2"
18+
regex = { package = "regex-lite", version = "0.1.6" }
19+
schemars = "0.8.21"
20+
serde_json = "1.0.131"
21+
serde = { version = "1.0.210", features = ["derive"] }
22+
serde_yaml = "0.9.34"
23+
tokio = { version = "1.40.0", features = ["full"] }
24+
tower = { version = "0.5.1", features = ["limit"] }
25+
tracing = "0.1.36"
26+
tracing-subscriber = "0.3.17"
27+
uuid = { version = "1.11.0", features = ["v4", "fast-rng"] }

gateway-api/Cargo.toml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
11
[package]
22
name = "gateway-api"
3-
version = "0.12.0"
43
description = "Kubernetes Gateway API bindings in Rust"
5-
authors = ["Shane Utt <[email protected]>"]
6-
license = "MIT"
7-
keywords = ["kubernetes", "gateway-api"]
84
categories = ["api-bindings"]
9-
homepage = "https://gateway-api.sigs.k8s.io/"
10-
repository = "https://github.com/kube-rs/gateway-api-rs"
11-
edition = "2021"
5+
keywords = ["kubernetes", "gateway-api"]
6+
7+
homepage = "https://docs.rs/crate/gateway-api/"
128
readme = "../README.md"
9+
repository = "https://github.com/kube-rs/gateway-api-rs"
10+
11+
authors.workspace = true
12+
edition.workspace = true
13+
license.workspace = true
14+
version.workspace = true
1315

1416
[dependencies]
15-
kube = { version = "0.96.0", default-features = false, features = ["derive"] }
16-
k8s-openapi = { version = "0.23.0", features = [ "schemars" ] }
17-
schemars = "0.8.21"
18-
serde = { version = "1.0.210", features = ["derive"] }
19-
serde_json = "1.0.131"
20-
serde_yaml = "0.9.34"
21-
regex = { package = "regex-lite", version = "0.1.6" }
22-
delegate = "0.13.1"
23-
once_cell = "1.20.2"
17+
delegate.workspace = true
18+
k8s-openapi.workspace = true
19+
kube.workspace = true
20+
once_cell.workspace = true
21+
regex.workspace = true
22+
schemars.workspace = true
23+
serde_json.workspace = true
24+
serde.workspace = true
25+
serde_yaml.workspace = true
2426

2527
[dev-dependencies]
26-
anyhow = "1.0.90"
27-
hyper-util = "0.1.9"
28+
k8s-openapi = { version = "0.23.0", features = [ "v1_31", "schemars" ] }
2829
kube = { version = "0.96.0" }
29-
k8s-openapi = { version = "0.23.0" , features = ["v1_31", "schemars"] }
30-
tokio = { version = "1.40.0", features = ["macros"] }
31-
tower = { version = "0.5.1", features = ["limit"] }
32-
uuid = { version = "1.11.0", features = ["v4", "fast-rng"] }
30+
31+
anyhow.workspace = true
32+
hyper-util.workspace = true
33+
tokio.workspace = true
34+
tower.workspace = true
35+
uuid.workspace = true
3336

3437
[package.metadata.docs.rs]
3538
features = [ "k8s-openapi/v1_31" ]

gateway-api/examples/Cargo.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[package]
2+
name = "gateway-api-examples"
3+
publish = false
4+
5+
authors.workspace = true
6+
edition.workspace = true
7+
license.workspace = true
8+
version.workspace = true
9+
10+
[package.metadata.release]
11+
release = false
12+
13+
[dependencies]
14+
gateway-api = { path = "../" }
15+
16+
anyhow.workspace = true
17+
hyper-util.workspace = true
18+
k8s-openapi.workspace = true
19+
kube.workspace = true
20+
serde_json.workspace = true
21+
tokio.workspace = true
22+
tower.workspace = true
23+
tracing.workspace = true
24+
tracing-subscriber.workspace = true
25+
uuid.workspace = true
26+
27+
[features]
28+
default = [ "k8s-openapi/v1_31" ]
29+
30+
[[bin]]
31+
name = "gep2257"
32+
path = "gep2257.rs"

0 commit comments

Comments
 (0)