Closed KodrAus closed 7 years ago
@ArtemGr We should probably update CI to test this feature. I'm not sure what approach you all want for that though. Any thoughts?
We should probably update CI to test this feature. I'm not sure what approach you all want for that though. Any thoughts?
I'd vouch for "cargo test --features=serde", because "cargo test --all-features" fails for me with "can't find crate" in "clippy-0.0.27\src\lib.rs", and that's a separate issue.
Ok, I've updated the travis config. What I've done:
build
step (since test
will do a build anyways)serde
featureI'm happy to tweak the build config however you want, I understand different projects like to do things in different ways :)
@fitzgen @ArtemGr Any more feedback on this one?
Hey, @KodrAus, sorry for the delay: I was thinking that @fitzgen would pull the switch, but given the time that has passed I think he's simply okay with the patch.
Thank you, good work on the pull request!
Do you need a version bump?
Awesome, thanks @ArtemGr!
This should be safe as a patch, right? Since the feature isn't available by default.
You're welcome!
I've filed the version bump, https://github.com/fitzgen/inlinable_string/pull/13. We should wait for @fitzgen to approve.
P.S. And if you will make a version bump pull request of your own, then I think I will be able to merge it right away. That is, in case you need it sooner than later.
Hey! Sorry, somehow I missed this PR!
Closes #11
This adds an optional
serde
feature for serialising/deserialisingInlinableString
s. The implementation is really simple; it just usesDeref
for serialisation andFrom
for deserialisation.