Releases: ada-url/rust
v3.1.0
This release contains UrlSearchParams
implementation fully compliant with the WHATWG specification.
What's Changed
- Update benchmarks and Rust by @anonrig in #70
- Update dependencies and Rust by @anonrig in #73
- fix panic on empty host and hostname entries by @anonrig in #75
- Add url search params by @anonrig in #57
Full Changelog: v3.0.0...v3.1.0
v3.0.0
This is the 3rd major version of Ada URL Parser. We had a to cut a major release due to a memory leak that requires a fix with only a breaking change, and we wanted to do the right thing and follow semantic versioning.
This release also updates Ada to v2.9.0 which includes incredible performance improvements to both URL parsing and URL.canParse method.
What's Changed
- fix(ffi/ada_free_owned_string): c parameter is passed by value by @pratikpc in #65
- build(justfile): add format support by @pratikpc in #66
- In functions using ada_owned_string, return ada_owned_string instead of &str by @pratikpc in #67
- chore: update ada to v2.9.0 by @anonrig in #68
- chore: release v3.0.0 by @anonrig in #69
New Contributors
Full Changelog: v2.3.0...v3.0.0
v2.3.0
What's Changed
- build: don't force a specific compiler/version by @ju1ius in #60
- Improve error handling ergonomics (and docs around it) by @alexpovel in #62
New Contributors
- @ju1ius made their first contribution in #60
- @alexpovel made their first contribution in #62
Full Changelog: v2.2.1...v2.3.0
v2.2.1
- Updates Ada to v2.7.5
Full Changelog: v2.2.0...v2.2.1
v2.2.0
v2.1.1
Updates Ada to v2.7.4 that comes with lots of performance optimizations and bug fixes.
Full Changelog: v2.1.0...v2.1.1
v2.1.0
v2.0.1
v2.0.0
We are very excited to release v2.0.0. This is the second major release of Ada for Rust.
Breaking Changes
- We updated the function signatures to use
Option<&str>
instead of&str
for removing certain attributes from the URL.
let mut url = Url::parse("https://ada-url.com").expect("URL should be valid");
url.set_pathname(Some("/playground"));
- We changed the error signature to avoid unnecessary allocation.
New Features
URLComponents struct
We exposed the URL components under components()
function. If you want to avoid allocating strings, you should definitely use this to construct the rest using the href
attribute.
let url = Url::parse("https://ada-url.com").expect("URL should be valid");
let components = url.components()
// You can now call components.host_start
New no-std
feature
If you want to avoid using the standard library of Rust, you can now use Ada without std
.
ada_url = { version = "2", default-features = false }
Changelog
- Add
UrlComponents
struct by @anonrig in #33 - doc: add comments for setter functions by @anonrig in #34
- Simplify from ada_url_components. by @ttsugriy in #35
- docs: fix by @KSXGitHub in #38
- feat: fallible setters should return result by @KSXGitHub in #36
- feat: error type without allocation by @KSXGitHub in #37
- refactor: prepare for
no-std
by @anonrig in #39 - Update Ada to v2.6.5 and update API signatures by @anonrig in #40
- docs: remove an unnecessary and incorrect guide by @KSXGitHub in #44
- Adding libcpp tests by @lemire in #45
- feat: no-std by @KSXGitHub in #42
New Contributors
Full Changelog: v1.4.3...v2.0.0