Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

serde: substitute versionize with serde #21

Conversation

bchalios
Copy link

@bchalios bchalios commented Nov 8, 2023

Description of changes:

We have decided to use serde instead of versionize for Firecracker snapshots.

This PR replaces all versionize-related derives and manual implementations for the equivalent serde counterparts.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@bchalios
Copy link
Author

bchalios commented Nov 8, 2023

This is still draft because I've only done the changes for x86_64. I will do the ARM bindings as well, once I verify that my changes work correctly for x86.

@bchalios bchalios force-pushed the from_versionize_to_serde branch 3 times, most recently from 65fe517 to 5e352b3 Compare November 10, 2023 11:11
@bchalios bchalios marked this pull request as ready for review November 10, 2023 11:14
@bchalios
Copy link
Author

Ok, I added the Aarch64 bindings and also fixed the CI (thanks a lot @roypat for the guidance).

@bchalios bchalios force-pushed the from_versionize_to_serde branch from 9d0b0a1 to a32afec Compare November 14, 2023 08:21
@bchalios bchalios force-pushed the from_versionize_to_serde branch from a32afec to 0f850cf Compare November 15, 2023 10:55
roypat
roypat previously approved these changes Nov 15, 2023
@bchalios bchalios marked this pull request as draft November 15, 2023 11:27
bchalios and others added 3 commits January 9, 2024 12:13
We have decided to use serde instead of versionize for Firecracker
snapshots. This commit replaces all versionize-related derives and
manual implementations for the equivalent serde counterparts.

Signed-off-by: Babis Chalios <[email protected]>
bindgen auto-generates tests but doesn't put them into #[cfg(test)]
modules, and since rustfmt formats assertions across multiple lines,
llvm-cov complains that the negative branch of the assertion is not
covered.

Co-authored-by: Patrick Roy <[email protected]>
Signed-off-by: Babis Chalios <[email protected]>
Signed-off-by: Babis Chalios <[email protected]>
@bchalios bchalios force-pushed the from_versionize_to_serde branch from 0f850cf to 0922d76 Compare January 9, 2024 13:38
@bchalios bchalios changed the base branch from master to versionize_support January 9, 2024 13:38
Signed-off-by: Babis Chalios <[email protected]>
Signed-off-by: Babis Chalios <[email protected]>
Signed-off-by: Babis Chalios <[email protected]>
Signed-off-by: Babis Chalios <[email protected]>
@bchalios bchalios marked this pull request as ready for review January 9, 2024 15:44
@bchalios bchalios merged commit e89294e into firecracker-microvm:versionize_support Jan 10, 2024
@bchalios bchalios deleted the from_versionize_to_serde branch January 10, 2024 12:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants