Skip to content

Conversation

@kristopherjohnson
Copy link
Collaborator

@kristopherjohnson kristopherjohnson commented May 15, 2025

Updates the Rust SDK version to 4.10.2, and works around linker errors when building on Ubuntu.

This also updates the GitHub actions to use Rust 1.81.0 in CI, which is the version needed for compatibility with the 4.10.2 SDK.

Closes SDKS-1088

@kristopherjohnson kristopherjohnson self-assigned this May 15, 2025
@kristopherjohnson kristopherjohnson marked this pull request as ready for review May 20, 2025 14:40
@kristopherjohnson kristopherjohnson requested review from a team and cameron1024 as code owners May 20, 2025 14:40
@kristopherjohnson kristopherjohnson changed the title rust-tui: Update Ditto SDK dependency to 4.10.2 rust-tui: Update Ditto SDK to 4.10.2 and Use Rust 1.81.0 May 20, 2025
Copy link
Contributor

@pvditto pvditto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some comments below.

uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.81.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to source this from the rust-toolchain file to avoid a duplicate source of truth?

Copy link
Member

@phatblat phatblat Aug 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this step before this "Install Rust" step:

- name: Set RUST_VERSION
  run: echo "RUST_VERSION=$(cat rust-toolchain)" >> $GITHUB_ENV
Suggested change
toolchain: 1.81.0
toolchain: ${{ env.RUST_VERSION }}

@@ -0,0 +1,6 @@
fn main() {
// Workaround for "multiple definition" linker errors on Linux (#SDKS-1088)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this fix just needed for our specific CI setup or something that customers should understand how to apply to their own setups? A bit more context could help when someone is reading this code who is not familiar with this issue.

tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
tokio-stream = { version = "0.1.17", features = ["sync"] }
uuid = "1.13"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this removal of a trailing new line intentional?

@biozal
Copy link
Contributor

biozal commented Jul 30, 2025

This might need to get closed given we have a PR now for 4.11.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants