Skip to content

Commit

Permalink
Update all Rust SDK dependencies to latest versions (#4008)
Browse files Browse the repository at this point in the history
* Update all Rust SDK dependencies to latest versions

The API `tonic_build::configure::compile::compile_protos` was renamed as part of this crate upgrade

* Bump Rust version to 1.71.1

prost v0.13.3 requires rustc 1.71.1 or newer

* Bump rust version in example server too

* Revert "Bump rust version in example server too"

This reverts commit 4838b1b.
  • Loading branch information
john-haven authored Oct 9, 2024
1 parent 7cae9e3 commit a27aeab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/build-sdk-images/rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apt-get --allow-releaseinfo-change update && \
ENV RUSTUP_HOME=/usr/local/rustup \
CARGO_HOME=/usr/local/cargo \
PATH=/usr/local/cargo/bin:$PATH \
RUST_VERSION=1.71.0
RUST_VERSION=1.71.1
RUN wget -q https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init && \
chmod +x rustup-init && \
./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION && \
Expand Down
16 changes: 8 additions & 8 deletions sdks/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ documentation = "https://docs.rs/agones"
homepage = "https://agones.dev/site/"

[dependencies]
async-stream = "0.3"
http = "0.2"
prost = "0.11.9"
prost-types = "0.11.9"
thiserror = "1.0"
async-stream = "0.3.6"
http = "1.1.0"
prost = "0.13.3"
prost-types = "0.13.3"
thiserror = "1.0.64"

[dependencies.tokio]
version = "1.32"
version = "1.40.0"
default-features = false
features = ["sync", "time"]

[dependencies.tonic]
version = "0.9.2"
version = "0.12.3"
default-features = false
features = ["codegen", "transport", "prost"]

[build-dependencies.tonic-build]
version = "0.9.2"
version = "0.12.3"
default-features = false
features = ["prost", "transport"]
2 changes: 1 addition & 1 deletion sdks/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fn main() {
tonic_build::configure()
// The SDK is just a client, no need to build the server types
.build_server(false)
.compile(
.compile_protos(
&["proto/sdk/alpha/alpha.proto", "proto/sdk/sdk.proto"],
&[
"proto/googleapis",
Expand Down

0 comments on commit a27aeab

Please sign in to comment.