-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Should json be default feature ? #47
Comments
It is optional? Line 27 in 00f8dd6
|
Yes but it's on-by-default activated as it's coming via |
Ah okay. So you can already turn it off, and then get what you are asking above, right? But you think it should default to not having serde? Why do you want that? |
People are used in the Rust ecosystem way to turn serde on or any other supplementary functionality. Default feature set should not generally have any supplemental functionality enabled - serde increases code sizes where I would expect a parser crate only to enable what is required for parsing Ecosystem normal way is to not have default features that are not needed for the crate's primary function which in this case is parsing and not re-serializing which is optional additive feature especially since people can either choose html or json serialization optionally. By turning it off we have to specify Code sizes are important for core parsing libraries especially in wasm/embedded contexts. |
$ cargo update
I am using mdast just to parse it and then process the mdast structures, e.g. I don't need json or any serialization out.
Would there be openness to having it as optional considering there are different ways to serialize out ?
Thanks for the great work btw ! 💜
Most of the ecosystem has serde as optional feature
The text was updated successfully, but these errors were encountered: