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

Conversation

yoshuawuyts
Copy link
Contributor

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 <[email protected]>
@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

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

@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
@yoshuawuyts yoshuawuyts deleted the try_from_url branch March 13, 2020 22:50
@yoshuawuyts
Copy link
Contributor Author

@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
@jsha jsha mentioned this pull request Oct 19, 2020
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.

feature: impl TryFrom<&str> for Url
2 participants