-
Notifications
You must be signed in to change notification settings - Fork 335
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
[Question] Consider make idna optional? #727
Comments
This was brought up in #557 When you say |
@valenting yap, opt out, it should included in default features. |
Yes, IDNA depends on some large-ish tables of Unicode data so I’m not surprised about this effect on code size. A default Cargo feature seems reasonable. (However I don’t expect to dedicate time to rust-url soon, much more than the occasional comment like this.) |
I'm happy to review a PR that adds the Cargo feature. |
np, I'm more than happy to make a pr. |
Background:
I am developing a rust sdk with strong binary size requirement, after introduce url crate, the binary size increased by around 400kb.
I did a quick hack, delete all code reference to idna (4 to 5 places), and compare the final binary size, confirmed idna is the cause.
The text was updated successfully, but these errors were encountered: