-
Notifications
You must be signed in to change notification settings - Fork 192
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
feat(puffin): Parse Puffin FileMetadata #765
Conversation
d4703f4
to
b9c4c6f
Compare
crates/puffin/src/lib.rs
Outdated
@@ -23,3 +23,8 @@ | |||
|
|||
mod compression; | |||
pub use compression::CompressionCodec; | |||
|
|||
mod metadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I have deliberately chosen to not expose anything at the moment.
I want to create a separate, intentional PR to add pub
modifiers after the reader and writer implementations have been added.
This way, we can develop inside this crate without having to worry about breaking changes until we're ready.
If it helps though, I intend to expose the following outside of the crate eventually:
pub use metadata::{BlobMetadata, FileMetadata, CREATED_BY_PROPERTY};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's great!
4d3dd9f
to
011945e
Compare
@fqaiser94, just added the higher level statistic files in #799 FYI. I would guess you would end up building those soon too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @fqaiser94 for working on this! Here are some minor suggestions.
} | ||
|
||
#[derive(Clone, PartialEq, Eq, Hash, Debug)] | ||
pub(crate) enum Flag { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we have other flags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently the Puffin spec only supports one flag (as documented here) but allows for the possibility that there may be more flags in the future.
c06c3d1
to
aa321ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fqaiser94 for this great pr! Generally LGTM, left some minor suggestion.
3caf54e
to
378c97a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fqaiser94 for this great pr, and all the tests! Left some minor suggestions, others look great to me!
378c97a
to
25f5873
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @fqaiser94 for this great pr!
Let's wait for a moment to see if others need to take a look. |
Part of #744
Summary
Add support for parsing Puffin FileMetadata
Context