Skip to content

feat(mound): Add export and import functions for Mound and FilePile #303

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

Closed

Conversation

astral-bitlight
Copy link

@astral-bitlight astral-bitlight commented Mar 21, 2025

[THIS IS A DRAFT, TO BE DONE...]

Ok(())
}

pub fn strict_encode<W: WriteRaw>(&self, writer: &mut StrictWriter<W>) -> io::Result<()> {
Copy link
Member

@dr-orlovsky dr-orlovsky Mar 25, 2025

Choose a reason for hiding this comment

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

It's better to avoid naming functions the same way as the trait methods. As an alternative, try to either derive StrictEncode/Decode directly on FilePile - or manually. You may also consider implementing StrictSerialize/Deserialize - in this case you won't need encode/decode_file above

Copy link
Author

Choose a reason for hiding this comment

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

Okay, to avoid manual encoding, I've decided to derive these macros as you suggested. Here's a prerequisite PR (AluVM/sonic#12) that adds encode/decode support to Aura.

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