Skip to content

Commit

Permalink
feat(google-agones-sdk): generate Rust SDK and update proto
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylvln committed Nov 13, 2023
1 parent 4cf98b9 commit 5d02808
Show file tree
Hide file tree
Showing 20 changed files with 6,041 additions and 343 deletions.
14 changes: 14 additions & 0 deletions Cargo.lock

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

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
resolver = "2"
members = [
"packages/google-agones-crds",
"packages/google-agones-sdk/bindings/rust",
"packages/google-open-match-sdk/bindings/rust",
"packages/shulker-addon-matchmaking",
"packages/shulker-crds",
Expand All @@ -20,6 +21,7 @@ publish = false
[workspace.dependencies]
# In workspace
google-agones-crds = { path = "./packages/google-agones-crds" }
google-agones-sdk = { path = "./packages/google-agones-sdk/bindings/rust" }
google-open-match-sdk = { path = "./packages/google-open-match-sdk/bindings/rust" }
shulker-crds = { path = "./packages/shulker-crds" }
shulker-kube-utils = { path = "./packages/shulker-kube-utils" }
Expand Down Expand Up @@ -54,7 +56,7 @@ serde_yaml = "0.9.27"
strum = { version = "0.25.0", features = ["derive"] }
tempfile = "3.8.1"
thiserror = "1.0.50"
tonic = { version = "0.10.2", features = ["gzip"] }
tonic = { version = "0.10.2", features = ["gzip", "tls"] }
tokio = { version = "1.34.0", features = ["macros", "rt-multi-thread"] }
tokio-stream = "0.1.14"
tokio-util = "0.7.10"
Expand Down
17 changes: 17 additions & 0 deletions packages/google-agones-sdk/bindings/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "google-agones-sdk"
version.workspace = true
authors.workspace = true
edition.workspace = true
publish.workspace = true

[features]
default = ["client"]
client = []
server = []

[dependencies]
futures-core.workspace = true
tonic.workspace = true
pbjson-types.workspace = true
prost.workspace = true
37 changes: 37 additions & 0 deletions packages/google-agones-sdk/bindings/rust/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "google-agones-sdk-bindings-rust",
"$schema": "../../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/google-agones-sdk/bindings/rust/src",
"projectType": "library",
"targets": {
"build": {
"executor": "nx:run-commands",
"options": {
"command": "cargo build --release",
"cwd": "packages/google-agones-sdk/bindings/rust"
},
"inputs": ["default", "rust:dependencies"]
},
"test": {
"executor": "nx:run-commands",
"options": {
"command": "cargo tarpaulin",
"cwd": "packages/google-agones-sdk/bindings/rust"
},
"inputs": ["default", "rust:dependencies", "rust:test:dependencies"],
"outputs": [
"{workspaceRoot}/coverage/rust/google-agones-sdk-bindings-rust/cobertura.xml"
]
},
"lint": {
"executor": "nx:run-commands",
"options": {
"command": "cargo fmt",
"cwd": "packages/google-agones-sdk/bindings/rust"
},
"inputs": ["default", "rust:dependencies"]
}
},
"implicitDependencies": ["google-agones-sdk"],
"tags": ["lang:rust"]
}
1,003 changes: 1,003 additions & 0 deletions packages/google-agones-sdk/bindings/rust/src/gen/agones.dev.sdk.alpha.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 5d02808

Please sign in to comment.