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

Update serde to 1.0 and remove rustc-serialize #24

Merged
merged 1 commit into from
Apr 12, 2018

Conversation

Emerentius
Copy link
Contributor

@Emerentius Emerentius commented Apr 7, 2018

Fixes #9

[dependencies.serde]
optional = true
version = ">= 0.7.0, < 0.9.0"
version = "1.0.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it still work if you add default-features = false?
I think we need that for proper no-std support.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does. serde's Cargo.toml states that it's default std feature is for implementations of some std types. That doesn't touch our trait impls.
Should our std feature also activate serde's? I don't think we need to, because we don't depend on it ourselves. I don't know if someone can depend purely transitively on no_std serde but then also need to serialize std types.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I don't think we need to enable serde/std at all here. Features are additive, so if something else enables serde/std, like num-bigint, then serde will have std overall.

@cuviper cuviper mentioned this pull request Apr 10, 2018
@Emerentius
Copy link
Contributor Author

I amended the default-features = true

@cuviper
Copy link
Member

cuviper commented Apr 12, 2018

Thanks!

bors r+

bors bot added a commit that referenced this pull request Apr 12, 2018
24: Update serde to 1.0 and remove rustc-serialize r=cuviper a=Emerentius

Fixes #9

Co-authored-by: Emerentius <emerentius@arcor.de>
@bors
Copy link
Contributor

bors bot commented Apr 12, 2018

Build succeeded

@bors bors bot merged commit 282887b into rust-num:master Apr 12, 2018
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