Closed jonas32 closed 4 years ago
Ok, i feature gated the whole serialization content into the "serialization" feature.
You will need cargo build --features "serialization"
or cargo test --features "serialization"
to include it.
Probably we should adjust CI to build once without and once with the feature.
I didnt do it yet because i saw some messenger hooks on it and didnt want to spam the whole team when testing.
Ok, i feature gated the whole serialization content into the "serialization" feature. You will need
cargo build --features "serialization"
orcargo test --features "serialization"
to include it.
Awesome! Thanks.
Probably we should adjust CI to build once without and once with the feature. I didnt do it yet because i saw some messenger hooks on it and didnt want to spam the whole team when testing.
Agree. And you can go ahead and update .travis.yaml
to add the additional testing steps.
Would you like to run the feature as an independent build job or just run the test --features
command right after the normal test
command in the same script section?
Good question. I think it will probably be faster to run both tests in the same Travis job, so let's do that.
I updated both AppVeyor and Travis. AppVeyor only runs the cargo test for both and Travis runs build, test and README.md test for both. Running all 3 steps twice in Travis might be redundant, but i think its the safer way (see the failed Travis build before at 59987c9)
I'm going to go ahead and merge this, unless you were planning on making any further changes?
You can go on. This features is finished.
This PR adds the widely used Serializer for Serde to the Value, Record, Bins, Key and BatchRead structs. (Serializer in value.rs made by @j-brn) Its useful when using the Aerospike Client for REST APIs returning JSON with for example actix and does not affect the performance in any way if not used. Without, you have to build own structs around the Value object and fill them with big match blocks. Many Database drivers include it for that reason (for example Postgres and MongoDB).