Skip to content
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

Don't enable serde by default. #868

Merged
merged 2 commits into from
Apr 12, 2021
Merged

Don't enable serde by default. #868

merged 2 commits into from
Apr 12, 2021

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented Apr 12, 2021

  • Don't enable serde/std by default.
  • Add a serde-serialize-no-std feature to enable serde without its default features.

At first I wantetd to rename serde-serialize to just serde, just like I did with the rand dependency. However this doesn't work because of the way serde serives operate: serde-rs/serde#953

Don't enable `serde/std` by default.
Add a `serde-serialize-no-std` feature to enable serde without its default features.
@Andlon
Copy link
Sponsor Collaborator

Andlon commented Apr 12, 2021

Just a quick interjection: it would perhaps make sense to document the difference between the two different serde-* features? While the name gives some of the intention away, the exact semantics are not entirely clear to me.

EDIT: That is to say, it's not clear to me what effect on nalgebra enabling serde without default features has

@sebcrozet
Copy link
Member Author

@Andlon Thank you for your feedback, I added some comments.

@sebcrozet sebcrozet merged commit 230f1a8 into dev Apr 12, 2021
@sebcrozet sebcrozet deleted the serde-no-std branch April 12, 2021 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants