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

New IntoUrl trait #177

Closed
wants to merge 40 commits into from
Closed

New IntoUrl trait #177

wants to merge 40 commits into from

Commits on Mar 3, 2016

  1. Rewrite ALL THE THINGS!

    This changes the data structure for `Url`:
    
    Rather than having multiple `String` (or `Vec<String>`) components,
    this uses a single `String` that contains the serialization of an URL
    and some indices into it to access components in O(1) time.
    
    This saves on memory allocations and makes serialization and some other
    methods very cheap, as they return `&str` rather than building a new `String`.
    
    As a consequence, most of `src/lib.rs` and `src/parser.rs` had to be rewritten.
    SimonSapin committed Mar 3, 2016
  2. serde_serialization -> serde

    Optional dependencies *are* Cargo features.
    SimonSapin committed Mar 3, 2016
  3. Update tests from https://github.com/w3c/web-platform-tests/blob/mast…

    …er/url/
    
    Parser changes correspond to spec changes.
    SimonSapin committed Mar 3, 2016
  4. Remove Url::has_host

    Use .host().is_some() instead.
    SimonSapin committed Mar 3, 2016
  5. Implement ToSocketAddrs

    SimonSapin committed Mar 3, 2016
  6. Remove Url::ip_address for now

    Reconsider when IpAddr is stable.
    SimonSapin committed Mar 3, 2016
  7. Add a fragment setter

    SimonSapin committed Mar 3, 2016
  8. Add a query setter.

    SimonSapin committed Mar 3, 2016
  9. Add Origin::is_tuple

    SimonSapin committed Mar 3, 2016
  10. Add a scheme setter

    SimonSapin committed Mar 3, 2016
  11. Add host setters.

    SimonSapin committed Mar 3, 2016
  12. More setters

    SimonSapin committed Mar 3, 2016
  13. Add a path setter

    SimonSapin committed Mar 3, 2016
  14. Port setters

    SimonSapin committed Mar 3, 2016
  15. All setters.

    SimonSapin committed Mar 3, 2016

Commits on Mar 4, 2016

  1. New IntoUrl trait

    cmbrandenburg committed Mar 4, 2016
You can’t perform that action at this time.