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

Add serde support #57

Merged
merged 3 commits into from Aug 10, 2017
Merged

Add serde support #57

merged 3 commits into from Aug 10, 2017

Conversation

@Xaeroxe
Copy link
Contributor

Xaeroxe commented Aug 8, 2017

Things done in this PR:

  • Add optional serde dependency
  • Add Serialize and Deserialize implementations to SmallVec
  • Add test_serde to verify functionality.

This change is Reviewable

Cargo.toml Outdated
@@ -11,6 +11,7 @@ documentation = "http://doc.servo.org/smallvec/"

[features]
heapsizeof = ["heapsize", "std"]
serde_support = ["serde"]

This comment has been minimized.

@mbrubeck

mbrubeck Aug 8, 2017

Contributor

The Rust API guidelines recommend using just the crate name serde, rather than adding a separate feature name.

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Aug 9, 2017

@mbrubeck done.

Copy link

torkleyy left a comment

Looks great, but I think the changes to .travis.yml are not sufficient yet.

cargo test --verbose &&
cargo test --features=heapsizeof --verbose &&
cargo test --all-features --verbose &&

This comment has been minimized.

@torkleyy

torkleyy Aug 9, 2017

I think we need tests for serde turned off, too.

This comment has been minimized.

@Xaeroxe

Xaeroxe Aug 9, 2017

Author Contributor

@torkleyy That's already handled by line 7

This comment has been minimized.

@torkleyy

torkleyy Aug 9, 2017

Oops, sorry.

@Xaeroxe
Copy link
Contributor Author

Xaeroxe commented Aug 10, 2017

r? @mbrubeck The absence of this feature is blocking other work I'm doing so I'd really like to get this merged and pushed to cargo.

@mbrubeck
Copy link
Contributor

mbrubeck commented Aug 10, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Aug 10, 2017

📌 Commit 40cfbb4 has been approved by mbrubeck

@bors-servo
Copy link
Contributor

bors-servo commented Aug 10, 2017

Testing commit 40cfbb4 with merge e162ecc...

bors-servo added a commit that referenced this pull request Aug 10, 2017
Add serde support

Things done in this PR:

- Add optional serde dependency
- Add Serialize and Deserialize implementations to SmallVec
- Add test_serde to verify functionality.

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

bors-servo commented Aug 10, 2017

☀️ Test successful - status-travis
Approved by: mbrubeck
Pushing e162ecc to master...

@bors-servo bors-servo merged commit 40cfbb4 into servo:master Aug 10, 2017
2 checks passed
2 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
mbrubeck added a commit to mbrubeck/rust-smallvec that referenced this pull request Aug 10, 2017
* Add `SmallVec::from_buf` constructor (servo#56).
* Add optional `serde` (de-)serialization support (servo#57).
@mbrubeck mbrubeck mentioned this pull request Aug 10, 2017
@Xaeroxe Xaeroxe deleted the Xaeroxe:serde branch Aug 11, 2017
bors-servo added a commit that referenced this pull request Aug 11, 2017
Release version 0.4.2.

* Add `SmallVec::from_buf` constructor (#56).
* Add optional `serde` (de-)serialization support (#57).

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/58)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants
You can’t perform that action at this time.