-
Notifications
You must be signed in to change notification settings - Fork 813
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
Update Rust document #3336
Update Rust document #3336
Conversation
Build Failed 😱 Build Id: add8c93f-9ead-4e21-9c7f-a8a22499923d To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
## Prerequisites | ||
|
||
- [Rust >= 1.50](https://www.rust-lang.org/tools/install) | ||
|
||
## Usage | ||
|
||
Add this crate to `dependencies` section in your Cargo.toml. Specify a directory where this README.md is located to the `path`. | ||
Add [`this crate`](https://crates.io/crates/agones) to `dependencies` section in your Cargo.toml. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add [`this crate`](https://crates.io/crates/agones) to `dependencies` section in your Cargo.toml. | |
Add <a href="https://crates.io/crates/agones" data-proofer-ignore>this crate</a> to `dependencies` section in your Cargo.toml. |
100% seen below before - crates.io hates people scraping them.
========================================================================
site/docs/guides/client-sdks/rust/index.html
Non-OK status: 404 --- site/docs/guides/client-sdks/rust/index.html --> https://crates.io/crates/agones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
followed your input👍🏻
@@ -63,7 +63,7 @@ and copy it into a release issue. Fill in relevant values, found inside {} | |||
- [ ] Post to the [agonesdev](https://twitter.com/agonesdev) Twitter account. | |||
- [ ] Run `git checkout main`. | |||
- [ ] Run `make sdk-update-version release_stage=after version={version}` file. This command will update the version number in the sdks/install files to {version}+1-dev. | |||
- [ ] Update the `agones` crate version in `sdks/rust/Cargo.toml` to {version}, then run `cargo publish --dry-run` and, if successful, proceed with `cargo publish` | |||
- [ ] Update the `agones` crate version in `sdks/rust/Cargo.toml` to {version}. First, run `cargo login` to authenticate with `crates.io`. Afterward, execute `cargo publish --dry-run`. If that is successful, proceed with `cargo publish`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional:
Lines 201 to 217 in 97057bf
sdk-shell: | |
$(MAKE) ensure-build-sdk-image SDK_FOLDER=$(SDK_FOLDER) | |
docker run --rm -it $(common_mounts) -v ~/.ssh:/tmp/.ssh:ro $(DOCKER_RUN_ARGS) \ | |
--entrypoint=/root/shell.sh $(SDK_IMAGE_TAG) | |
# SDK shell for node | |
sdk-shell-node: | |
$(MAKE) sdk-shell SDK_FOLDER=node | |
# SDK shell for csharp | |
sdk-shell-csharp: | |
$(MAKE) sdk-shell SDK_FOLDER=csharp | |
# Publish csharp SDK to NuGet | |
sdk-publish-csharp: RELEASE_VERSION ?= $(base_version) | |
sdk-publish-csharp: | |
$(MAKE) run-sdk-command-csharp COMMAND=publish VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" |
Could also make a make sdk-shell-rust
target and use that command line to do the publishing of the Rust crate (rather than install tools locally).
Not sure if that's how you are doing the node deployments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added sdk-shell-rust
target but how can we test it? If we execute this target, will it be added in the Agones crate again?
Build Failed 😱 Build Id: 6adbb760-0532-4b5d-88ec-ef8837cdbb4c To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: 0490c059-0db4-4eaa-9cba-fab030a8e066 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 56667775-3c09-43ed-969d-e0c37c12c7ce The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
Build Failed 😱 Build Id: f2b45224-1d77-4eba-b811-439dbef87f47 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 98b04a0c-7be4-49f8-b9db-10f87995cae6 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it. Couple of small nits, but otherwise this is good to go.
@@ -0,0 +1,35 @@ | |||
#!/usr/bin/env bash | |||
|
|||
# Copyright 2020 Google LLC All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
# Copyright 2020 Google LLC All Rights Reserved. | |
# Copyright 2023 Google LLC All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be consistent, let's call it publish.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed it
build/includes/sdk.mk
Outdated
|
||
# Publish the Rust SDK to crates.io | ||
sdk-publish-rust: | ||
$(MAKE) run-sdk-command-rust VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" COMMAND=./publish-rust |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit (and see comment above for naming):
$(MAKE) run-sdk-command-rust VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" COMMAND=./publish-rust | |
$(MAKE) run-sdk-command-rust VERSION=$(RELEASE_VERSION) DOCKER_RUN_ARGS="$(DOCKER_RUN_ARGS) -it" COMMAND=publish |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
This okay to me moved to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aaah! Conflict 😄 but good to go when it's fixed.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Kalaiselvi84, markmandel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
New changes are detected. LGTM label has been removed. |
Build Failed 😱 Build Id: d965ada1-7636-4076-8565-2d44385ed420 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: 1abcde39-f0ab-4197-a114-795c6f391875 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
…ones into update-rust-file
Build Succeeded 👏 Build Id: 18baccaa-4d3f-478f-978f-fec213c03bda The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
What type of PR is this?
/kind documentation
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Closes #1932
Special notes for your reviewer: