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

Add methods to write Package to any Write + Seek #13

Merged
merged 1 commit into from
Jul 29, 2023

Conversation

Heliozoa
Copy link
Contributor

Hi,
Thanks for your work on genanki-rs.

I'm working on a server that in one of its endpoints generates and serves an Anki deck as a download, and currently that requires creating a temporary file and reading it after writing the Package to it. Not a big deal, but this API would make it a little nicer. I opted not to add similar methods to Deck, as I think this is a more niche use case so it's ok to keep Deck's methods simple.

I wasn't able to run all of the tests locally, but the changes are pretty straightforward so hopefully everything should be in working order.

Copy link
Owner

@yannickfunk yannickfunk left a comment

Choose a reason for hiding this comment

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

Thank you for your work. LGTM

@yannickfunk yannickfunk merged commit b26e6cf into yannickfunk:master Jul 29, 2023
@Heliozoa Heliozoa deleted the write-to-writer branch July 29, 2023 10:23
@yannickfunk
Copy link
Owner

Now live on https://crates.io/crates/genanki-rs/0.4.0

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