gecko-dev/toolkit/library/rust/shared
Nika Layzell 4f380cfe7d Bug 1444151 - Part 3: Only create a single allocation for MozURL objects, which is managed by rust, r=valentin
This patch rewrites the rust-url-capi crate as the mozurl crate, which
provides a threadsafe MozURL object which is compatible with the
previous MozURL class.

Creating a MozURL this way performs a single allocation, which contains
only a rust-url Url object and an atomic refcnt, however it is fully
compatible with the C++ RefPtr type.

This patch also exposes methods for accessing dependent substrings of
the serialized spec, meaning that string copies can be avoided in many
situations when inspecting attributes of the MozURL.




--HG--
rename : netwerk/base/rust-url-capi/.gitignore => netwerk/base/mozurl/.gitignore
2018-04-10 17:49:50 -04:00
..
Cargo.toml Bug 1444151 - Part 3: Only create a single allocation for MozURL objects, which is managed by rust, r=valentin 2018-04-10 17:49:50 -04:00
lib.rs Bug 1444151 - Part 3: Only create a single allocation for MozURL objects, which is managed by rust, r=valentin 2018-04-10 17:49:50 -04:00