-
Notifications
You must be signed in to change notification settings - Fork 236
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
encoding feature breaks API #180
Comments
You are right, this is an oversight on my side. |
The method `Reader::decoder()` is public anyway, but its result type is not, which means that it cannot be used as method argument, and that is not good
…ding` is defined or not
The method `Reader::decoder()` is public anyway, but its result type is not, which means that it cannot be used as method argument, and that is not good
…ding` is defined or not
…ding` is defined or not
…ature `encoding` enabled and when it is disabled Co-authored-by: Daniel Alley <dalley@redhat.com>
I believe this issue should be re-opened due to this commit as it still breaks the API when enabling the This is causing issues on a project I work on that relies on |
I think, that we shouldn't. The current situation removes some functions if |
Maybe I'm missing context on why the function is removed with |
Because those set of functions uses UTF-8 encoding to convert internal |
Hi,
the way features work in cargo is that any crate in your dependency tree can enable additional features for its dependencies, and each dependency ("crate") is only compiled once with all features merged; thus they must only add additional "APIs" without breaking what was before.
I.e. enabling the
encoding
feature should provide new structs and functions (or just improve existing ones without changing their signature).Also the
reader::Decoder
struct is not public and not documented, butReader::decoder()
is... I guess either both or none should be public.The text was updated successfully, but these errors were encountered: