Skip to content

Add a composefs Rust crate - #282

Merged
alexlarsson merged 1 commit into
composefs:mainfrom
cgwalters:rust-crate
May 28, 2024
Merged

alexlarsson merged 1 commit into
composefs:mainfrom
cgwalters:rust-crate

Conversation

@cgwalters

Copy link
Copy Markdown
Contributor

Right now this includes just a parser/generator for dump files, which is helpful for e.g. a flow like taking a tarball, parsing it in Rust, and then serializing the entry to a composefs dumpfile line.

I'd like to add more opinionated and advanced functionality related to composefs implemented in this crate - especially integration with containers/OCI. My thought is that in the short term we can publish this crate without having the core
C code depend on it.

I plan to use this crate in bootc.

However, more medium term, it may make sense to offer a CLI tool from this crate, in which case there will be some tension with the CLI tools that happen to be implemented in C, as commonly people would

Comment thread rust/src/dumpfile.rs
}

/// Remove internal entries
/// FIXME: This is arguably a composefs-info dump bug?

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.

cc @alexlarsson right? I think these xattrs are internal implementation details and should not leak back into composefs-info dump right?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Yes, and we should fix this.

Comment thread rust/src/mkcomposefs.rs Resolved
Comment thread rust/src/dumpfile.rs Resolved
Comment thread rust/src/dumpfile.rs Resolved
Comment thread rust/src/dumpfile.rs Resolved
Comment thread rust/src/dumpfile.rs Resolved
Right now this includes just a parser/generator for dump files,
which is helpful for e.g. a flow like taking a tarball, parsing
it in Rust, and then serializing the entry to a composefs dumpfile line.

I'd like to add more opinionated and advanced functionality
related to composefs implemented in this crate - *especially* integration
with containers/OCI.  My thought is that in the short term we can
publish this crate without having the core
C code depend on it.

I plan to use this crate in bootc.

However, more medium term, it may make sense to offer a CLI
tool from this crate, in which case there will be some tension with
the CLI tools that happen to be implemented in C, as commonly
people would

Signed-off-by: Colin Walters <[email protected]>
@alexlarsson
alexlarsson merged commit 9fd6910 into composefs:main May 28, 2024
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