-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix #58: Rename json
feature to serde
#59
Conversation
Thoughts? If you feel strongly about the current state that’s fine. |
OK. In any case, the dependency on |
I’d prefer to merge this PR if possible. With the original feature request: drop the unused dependency. That’s great to have! If you want to introduce a breaking change, and feel strongly about doing so because it’s better, that’s fine too, I’m generally not too into breaking things though, hence my previous points. Or we can make that a separate feature request, a separate discussion. |
Another suggestion: we could keep the |
Mitigating that is a great idea!
3 features for the same thing seems a bit much. |
I mean, you're the boss :D |
@wooorm technically it is allowed to make breaking changes while you're in the alpha release still right? As a library consumer, when you depend on a crate that is at version 0.3.0 and you install 1.0.0-alpha.x you accept the risk that there may be breaking changes. Still, keeing the |
You are correct that there are no semver guarantees before 1.0.0!
If both are allowed (as in, they do things, they are implemented), then either: a) both need to be documented, or: b) only the preferred one needs to be documented. |
@barafael Can you update the PR to implement both and optionally document both? |
Do you mean that the next release will be another pre-release like |
Correct. Criteria: a) get more people to use and test this |
Perhaps releasing a |
You are correct but the previous author made me promise not to do that. :'( |
Also removes unused dependency on `serde-json`
@wooorm done. BTW, as the Readme of this project is fairly substantial, what do you think about adding |
That might perhaps be useful! Would there be a real benefit in doing so though? Wouldn’t having the same info in two places make it harder to find things? Do you know of more projects that include the readme in their API docs? |
there's a bunch, unsorted though: |
Signed-off-by: Titus <[email protected]>
Thanks for the search. From the numbers, it doesn’t seem super common though. I’m inclined to keep API docs on docs.rs, and keep other info in the readme, so as not to duplicating info in different places |
Thanks, released! <3 |
Also removes unused dependency on
serde-json
.Note, this is a breaking change due to the rename.
Motivation:
serde
is a conventional and idiomatic feature name for serde support in other crates, too. Serde can do more than json, so the feature name should not be too specific IMO.