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

Make serde optional #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Velnbur
Copy link
Contributor

@Velnbur Velnbur commented Mar 31, 2024

This change makes the serde dependency optional to reduce the total number of dependencies from 57 to 51 using --no-default-features flag.

Also for simpler maintainablity, moved SerializableProof into separate serializable modules, so by placing #[cfg(feature = "serde")] above it's declaration the whole implementations and structures became optional (instead of placing #[cfg(feature = "serde")] above each of them).

Removed usage of serde inside tests for more prefered Debug implementations.

This change makes the `serde` dependency optional to reduce the total
number of them from 57 to 51 using `--no-default-features` flag.

Also for simpler maintainablity, moved `SerializableProof` into separate
`serializable` modules, so by placing `#[cfg(feature = "serde")]` above
it's declaration the whole implementations and structures became
optional (instead of placing `#[cfg(feature = "serde")]` above each of
them).

Removed usage of `serde` inside tests for more prefered `Debug`
implementations.
@Velnbur
Copy link
Contributor Author

Velnbur commented Mar 31, 2024

Conflicts with #2 as some of the code was updated in the tests

@Velnbur
Copy link
Contributor Author

Velnbur commented Mar 31, 2024

It will be great to add checks and tests with serde feature and without into CI

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.

None yet

1 participant