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

impl TryFrom<'a str> for Url #569

Merged
merged 2 commits into from Mar 9, 2020
Merged

impl TryFrom<'a str> for Url #569

merged 2 commits into from Mar 9, 2020

Conversation

@yoshuawuyts
Copy link
Contributor

yoshuawuyts commented Dec 5, 2019

Closes #568. Implements TryFrom<'a str> for Url gated behind the try_from feature. This should make it possible to use this conversion without issuing a breaking change. Thanks!

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
@yoshuawuyts
Copy link
Contributor Author

yoshuawuyts commented Dec 5, 2019

It seems the build is failing for reasons unrelated to this patch.

@yoshuawuyts
Copy link
Contributor Author

yoshuawuyts commented Jan 10, 2020

ping @tmccombs do you maybe have any pointers on how to progress this? From the looks of the log it seems that smallvec now requires Rust 1.36 for MaybeUninit support, while url is trying to guarantee it builds on 1.33.

edit: it seems #566 was filed and resolved.

url now requires Rust 1.36 which means a feature flag is now redundant.
@yoshuawuyts
Copy link
Contributor Author

yoshuawuyts commented Jan 10, 2020

Updated to remove the feature flag since the minimum required Rust version for the crate is now 1.36, and the minimum required version for this patch is 1.34 🎉

@yoshuawuyts
Copy link
Contributor Author

yoshuawuyts commented Mar 3, 2020

@valenting if you have time, could you perhaps take a look at this PR? Landing this would be a great help for several of our libraries.

@valenting valenting merged commit 2831475 into servo:master Mar 9, 2020
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@yoshuawuyts yoshuawuyts deleted the yoshuawuyts:try_from_url branch Mar 13, 2020
@yoshuawuyts
Copy link
Contributor Author

yoshuawuyts commented May 13, 2020

@valenting would it be possible to publish a new release in the near future that includes this change? We're excited to use it!

yoshuawuyts added a commit to http-rs/http-types that referenced this pull request May 13, 2020
We're waiting on servo/rust-url#569 to be published for URL shorthands to be practical; but once it lands it should be really nice to use
@ranfdev ranfdev mentioned this pull request Aug 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.