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

Adding simple net::url module to parse and format urls. As per Issue #2661. #2850

Closed
wants to merge 1 commit into from

Conversation

dbp
Copy link
Contributor

@dbp dbp commented Jul 9, 2012

This does basic parsing and formatting of urls. I wrote it based on #2661 .

It does not do url encoding/decoding, which hopefully could be integrated from https://github.com/erickt/rust-uri (the main reason I didn't write it).

It also does barely any validation, mainly because this is my first time writing rust code and I wanted to make sure that it looked alright before making the library too complicated. The main thing that I wanted to get with this initial stab was the external interface - the types and function signatures. The test cases should reflect this limitation - they only test valid urls.

The library is designed to be used qualified (ie, url::to_str, url::from_str), though if that is not the proper style, it can easily be changed.

Either way - feedback is welcome (on style, interface, correctness, etc).

@brson
Copy link
Contributor

brson commented Jul 10, 2012

Thanks! It may take a few days to review this as we're currently wrapping up the 0.3 release.

@graydon
Copy link
Contributor

graydon commented Jul 23, 2012

This is great. We should pull this and erickt's code into libstd. I'll test and land, thanks!

@dbp
Copy link
Contributor Author

dbp commented Jul 23, 2012

Should I merge in erickt's code to this pull request (and is there a way to add him to this conversation so I can ask him if I can do that? sorry, new to github), or add it in after this lands?

@erickt
Copy link
Contributor

erickt commented Jul 23, 2012

@dbp: Sure, feel free to merge away in this commit or a separate pull request :)

@graydon
Copy link
Contributor

graydon commented Jul 23, 2012

Integrated (with slight fixes for drift). Thanks!

@graydon graydon closed this Jul 23, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 28, 2023
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Apr 30, 2023
celinval added a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
We override a few std functions to improve verification time or
verification results, however, those functions are quite helpful during
concrete execution. Thus, avoid overriding functions when executing
concrete playback.

Resolves rust-lang#2850

Co-authored-by: Adrian Palacios <[email protected]>
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