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

Bump Rust Version #174

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Bump Rust Version #174

merged 3 commits into from
Oct 11, 2023

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Oct 11, 2023

This bumps to the latest Rust version which drops the timeouts lower so they aren't noticeable.

I was not able to reproduce Remote attachments don’t work between the xmtp.chat and iOS XMTP.RemoteAttachmentError.invalidScheme("invalid scheme value. must be https://") But I modified some of the error messages to confirm that the latest version of swift is getting run.

@nplasterer nplasterer self-assigned this Oct 11, 2023
@nplasterer nplasterer marked this pull request as ready for review October 11, 2023 02:09
@nplasterer nplasterer requested a review from a team as a code owner October 11, 2023 02:09
@@ -174,7 +174,7 @@ public struct RemoteAttachmentCodec: ContentCodec {
throw RemoteAttachmentError.invalidScheme("no scheme parameter")
}

if (!schemeString.starts(with: "https")) {
if (!schemeString.hasPrefix(RemoteAttachment.Scheme.https.rawValue)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed this to hasPrefix since that seems to be more inline with how swift would do this.

@@ -26,7 +26,7 @@ let package = Package(
.package(url: "https://github.com/1024jp/GzipSwift", from: "5.2.0"),
.package(url: "https://github.com/bufbuild/connect-swift", from: "0.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin.git", from: "1.0.0"),
.package(url: "https://github.com/xmtp/xmtp-rust-swift", from: "0.3.1-beta0"),
.package(url: "https://github.com/xmtp/xmtp-rust-swift", from: "0.3.5-beta0"),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bumping this for anyone using SPM as well.

@nplasterer nplasterer changed the title Fix Remote Attachment and Bump Rust Version Bump Rust Version Oct 11, 2023
@nplasterer nplasterer merged commit 8fac49c into main Oct 11, 2023
1 check passed
@nplasterer nplasterer deleted the np/fix-remote-attachments-bump-rust branch October 11, 2023 19:16
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.

2 participants