Skip to content

Comments

Make serde optional#267

Merged
bors-servo merged 4 commits intoservo:masterfrom
pizzaiter:optional_serde
Jan 30, 2018
Merged

Make serde optional#267
bors-servo merged 4 commits intoservo:masterfrom
pizzaiter:optional_serde

Conversation

@pizzaiter
Copy link
Contributor

@pizzaiter pizzaiter commented Jan 29, 2018

Closes #264

This PR makes serde support optional. At the moment it is disabled by default.

I am not very sure about my changes to .travis.yml but it seems to work.


This change is Reviewable

.travis.yml Outdated
webhooks: http://build.servo.org:54856/travis

rust:
- 1.21.0
Copy link
Member

Choose a reason for hiding this comment

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

should be 1.23.0 now

@nical
Copy link
Contributor

nical commented Jan 30, 2018

Thanks for doing this! Since this is a breaking change, could you also bump euclid's version to 0.17.0 (so that I don't forget and break all of servo next time I publish a minor change)?
And as kvark said, now is a good time to use rustc 1.23.0 since it's the version we currently use for gecko and servo's CI.

@kvark
Copy link
Member

kvark commented Jan 30, 2018

@nical I wonder if this would still be considered a breaking change if serde feature is enabled by default.

@nical
Copy link
Contributor

nical commented Jan 30, 2018

I suppose it would not be a breaking change but disabling default features is a real pain in the lower back, because each crate in the same program depending on euclid would need to separately disable default features (and if euclid one day gets several default feaures I think that you can't specifically disable a default feature, you need to disable them all and reenable the ones you wanted to keep).

So now might be a good time to just go ahead with the various breaking changes that have been withheld to avoid bumping euclid all over servo.

@kvark
Copy link
Member

kvark commented Jan 30, 2018

Yes, sure. I'm all for having it off by default, but in the new version. We can still patch the current one with having it on by default.

@nical
Copy link
Contributor

nical commented Jan 30, 2018

Sure thing, although unless there are non-breaking changes that we want to make now, since I believe having serde as a default feature isn't super useful, I wouldn't bother with it and just go ahead with a round of euclid bumps in servo.

@pizzaiter
Copy link
Contributor Author

I pushed two new commits bumping the rust version and euclid's version.

@nical
Copy link
Contributor

nical commented Jan 30, 2018

Great, thanks!

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 977e136 has been approved by nical

@bors-servo
Copy link
Contributor

⌛ Testing commit 977e136 with merge 7bb2617...

bors-servo pushed a commit that referenced this pull request Jan 30, 2018
Make serde optional

Closes #264

This PR makes serde support optional. At the moment it is disabled by default.

I am not very sure about my changes to `.travis.yml` but it seems to work.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/267)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: nical
Pushing 7bb2617 to master...

@bors-servo bors-servo merged commit 977e136 into servo:master Jan 30, 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.

4 participants