You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
-
## Rust bindings for Ada
1
+
## WHATWG URL parser for Rust
2
2
3
-
Fast [WHATWG specification](https://url.spec.whatwg.org) compliant URL parser for Rust.
3
+
Fast [WHATWG URL Specification](https://url.spec.whatwg.org) compliant URL parser for Rust.
4
+
Well-tested and widely used by Node.js since [Node 18](https://nodejs.org/en/blog/release/v18.17.0).
5
+
6
+
The Ada library passes the full range of tests from the specification, across a wide range of platforms (e.g., Windows, Linux, macOS).
7
+
It fully supports the relevant [Unicode Technical Standard](https://www.unicode.org/reports/tr46/#ToUnicode).
4
8
5
9
### Usage
6
10
@@ -21,11 +25,14 @@ fn main() {
21
25
22
26
#### Features
23
27
24
-
**std:** Functionalities that require `std`. This feature is enabled by default, set `no-default-features` to `true` if you want `no-std`.
28
+
**std:** Functionalities that require `std`.
29
+
This feature is enabled by default, set `no-default-features` to `true` if you want `no-std`.
25
30
26
-
**serde:** Allow `Url` to work with `serde`. This feature is disabled by default. Enabling this feature without `std` would provide you only `Serialize`. Enabling this feature and `std` would provide you both `Serialize` and `Deserialize`.
31
+
**serde:** Allow `Url` to work with `serde`. This feature is disabled by default. Enabling this feature without `std` would provide you only `Serialize`.
32
+
Enabling this feature and `std` would provide you both `Serialize` and `Deserialize`.
27
33
28
-
**libcpp:** Build `ada-url` with `libc++`. This feature is disabled by default. Enabling this feature without `libc++` installed would cause compile error.
34
+
**libcpp:** Build `ada-url` with `libc++`. This feature is disabled by default.
35
+
Enabling this feature without `libc++` installed would cause compile error.
|**[`Deref<Target=str>`](https://doc.rust-lang.org/std/ops/trait.Deref.html)**| Allows for `&Url` to dereference as a `&str`. Also provides a [number of string methods](https://doc.rust-lang.org/std/string/struct.String.html#deref-methods-str)|
57
64
|**[`AsRef<[u8]>`](https://doc.rust-lang.org/std/convert/trait.AsRef.html), [`AsRef<str>`](https://doc.rust-lang.org/std/convert/trait.AsRef.html)**| Used to do a cheap reference-to-reference conversion. |
58
65
|**[`Send`](https://doc.rust-lang.org/std/marker/trait.Send.html)**| Used to declare that the type can be transferred across thread boundaries. |
66
+
|**[`Sync`](https://doc.rust-lang.org/stable/std/marker/trait.Sync.html)**| Used to declare that the type is thread-safe. |
This code is made available under the Apache License 2.0 as well as the MIT license.
89
+
90
+
Our tests include third-party code and data. The benchmarking code includes third-party code: it is provided for research purposes only and not part of the library.
0 commit comments