serde: add stringify serializer over generic T:Display#340
Merged
apoelstra merged 1 commit intoBlockstreamResearch:masterfrom Feb 28, 2026
Merged
serde: add stringify serializer over generic T:Display#340apoelstra merged 1 commit intoBlockstreamResearch:masterfrom
apoelstra merged 1 commit intoBlockstreamResearch:masterfrom
Conversation
9708547 to
467111c
Compare
apoelstra
reviewed
Feb 18, 2026
apoelstra
reviewed
Feb 18, 2026
Collaborator
|
CI failures are because the lockfile is not updated. |
467111c to
8d64763
Compare
Contributor
Author
|
Forced push with changing the module to |
trevarj
commented
Feb 20, 2026
- Added a crate `serializers` module - Added a simplicity::serializers::stringify module that contains a generic serializer over T: Display, which can be used with #[serde(with = "simplicity::serializers::stringify")] over a struct field - Added a unit test that uses string values from Value's `value_display` test - Updated Cargo-recent.lock to add serde_json Resolves BlockstreamResearch#330
8d64763 to
a5f99ef
Compare
Contributor
Author
|
Embarrassingly did another force push to fix test (forgot to change module name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
simplicity::serializers::stringifymodule that contains a generic serializerover
T: Display, which can be used with#[serde(with = "simplicity::serializers::stringify")]over a struct fieldvalue_displaytestResolves #330