Skip to content

Functions for converting between attached & detached crates #255

@simleo

Description

@simleo

Thanks @simleo, I made a few comments. Looks like this will resolve #231 and #232.

This review also got me thinking: do you think it would be useful to implement specific helper functions for converting between attached & detached crates, which follow the processes described in the spec appendix:

Not suggesting we do that in this PR (it's a bunch more work), but could make another issue for it if you think it would be a good idea.

I think all comments have been addressed at this point. I'm going to merge, then open a new issue for conversion functions. The main difference with respect to using crate.write / crate.write_detached is that entity ids cannot be changed for an existing crate, so conversion functions will likely need to create and return a new crate. Some of the recommendations in the spec appendix don't seem to be very machine actionable (e.g. things like"Decide ... if this file is acceptable to archive"), but we could aim for a best effort and try to provide useful functionality.

Originally posted by @simleo in #250 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions