Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring Rust SDK dependencies up to date #3305

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/rust-simple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[package]
name = "rust-simple"
version = "0.1.0"
edition = "2018"
edition = "2021"

[dependencies]
agones = { path = "../../sdks/rust" }
Expand Down
3 changes: 2 additions & 1 deletion examples/rust-simple/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM rust:1.53.0 as builder
FROM rust:1.71.0 as builder
RUN useradd -m build
RUN apt update && apt install -y protobuf-compiler

# SDK
COPY sdk /home/builder/agones/sdks/rust
Expand Down
2 changes: 1 addition & 1 deletion examples/rust-simple/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ REPOSITORY ?= us-docker.pkg.dev/agones-images/examples

mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
project_path := $(dir $(mkfile_path))
server_tag = $(REPOSITORY)/rust-simple-server:0.11
server_tag = $(REPOSITORY)/rust-simple-server:0.12

# _____ _
# |_ _|_ _ _ __ __ _ ___| |_ ___
Expand Down
12 changes: 6 additions & 6 deletions sdks/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[package]
name = "agones"
version = "0.2.1"
edition = "2018"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/googleforgames/agones"
documentation = "https://docs.rs/agones"
Expand All @@ -24,21 +24,21 @@ homepage = "https://agones.dev/site/"
[dependencies]
async-stream = "0.3"
http = "0.2"
prost = "0.8"
prost-types = "0.8"
prost = "0.11.9"
prost-types = "0.11.9"
thiserror = "1.0"

[dependencies.tokio]
version = "1.0"
version = "1.6"
default-features = false
features = ["sync", "time"]

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

[build-dependencies.tonic-build]
version = "0.5"
version = "0.9.2"
default-features = false
features = ["prost", "transport"]
2 changes: 1 addition & 1 deletion sdks/rust/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl Sdk {
.keep_alive_timeout(keep_alive.unwrap_or_else(|| Duration::from_secs(30)));

// will only attempt to connect on first invocation, so won't exit straight away.
let channel = builder.connect_lazy()?;
let channel = builder.connect_lazy();
let mut client = SdkClient::new(channel.clone());
let alpha = Alpha::new(channel);

Expand Down
4 changes: 1 addition & 3 deletions test/sdk/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@
[package]
name = "rust-simple"
version = "0.2.0"
edition = "2018"
edition = "2021"

[dependencies]
agones = { path = "../../../sdks/rust" }
prost = "0.8"
prost-types = "0.8"

[dependencies.tokio]
version = "1.6"
Expand Down
Loading