Skip to content

make encode feature public available#17

Closed
maxxcs wants to merge 4 commits intonoib3:mainfrom
maxxcs:public-encode
Closed

make encode feature public available#17
maxxcs wants to merge 4 commits intonoib3:mainfrom
maxxcs:public-encode

Conversation

@maxxcs
Copy link

@maxxcs maxxcs commented Jan 23, 2026

Currently, it's not possible to access the encode() and decode() methods for Insertion and Deletion even with the features = ["encode"] enabled. This PR aims to resolve this.

@noib3
Copy link
Owner

noib3 commented Jan 23, 2026

Encode and Decode are currently not part of the public API because I plan to eventually remove them.

If you need to convert Insertions and Deletions to/from bytes, you can use their Serialize and Deserialize impls combined with a serde data format that supports binary output (such as bincode).

@maxxcs
Copy link
Author

maxxcs commented Jan 23, 2026

Encode and Decode are currently not part of the public API because I plan to eventually remove them.

If you need to convert Insertions and Deletions to/from bytes, you can use their Serialize and Deserialize impls combined with a serde data format that supports binary output (such as bincode).

Ah, I see. I'll close this PR then.

@maxxcs maxxcs closed this Jan 23, 2026
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