On 2015-03-17 12:07 AM, Valentin Gosu wrote:
Hi all,
I've been working on rust-url API that we'd like to include in Gecko in the
following months. If you've got a few minutes, I'd really appreciate some
feedback.
https://github.com/valenting/rust-url-capi
The important bits are in src/lib.rs and src/rust-url-api.h
The API needs to pass around strings, so in my current implementation all
allocations are done in rust. This implies 2 copies would be performed, but
this is about the same as the current URL parser in Gecko.
When compiling the library, it seems to be up to 10Mb large, which might be
a problem for low memory devices running Firefox. Is there a way to strip
down the static/shared library to only what's needed for the API calls to
succeed?
Thanks
With regards to stripping, see
https://github.com/rust-lang/rust/issues/23366#issuecomment-80663947 for
optimizing dylib size. Additionally, compiling using
`-Clink-args=-Wl,-strip-all` can help as well.
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo