Skip to content

DO NOT MERGE ritobin fixes - #269

Open
moonshadow565 wants to merge 3 commits into
mainfrom
ritobin-fixes
Open

moonshadow565 wants to merge 3 commits into
mainfrom
ritobin-fixes

Conversation

@moonshadow565

Copy link
Copy Markdown
Contributor

No description provided.

///
/// The canonical text is stable: a value prints as the same bytes in every release, and a change
/// to it is a breaking change.
pub trait PrintCanonical {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this instead be refactored into a generalized PrintConfig trait and we provide a canonical (prettified) printer with indentation set to 4 and any other knobs/toggles.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be what Print already does, i do not want to introduce any breaking changes there.
Any configurability can be added and adjusted there instead, the purpose of canonical printer is that it outputs stable reproducible output.

@moonshadow565
moonshadow565 requested a review from Crauzer October 3, 2026 20:43
@moonshadow565 moonshadow565 changed the title Ritobin fixes DO NOT MERGE ritobin fixes Oct 7, 2026
@moonshadow565

Copy link
Copy Markdown
Contributor Author

fixes should be pulled out from this and stable/canonical printing is going to be done by @alanpq one day ™️

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.

2 participants