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 version-gating for format interactions #411

Open
ikeycode opened this issue Jan 18, 2025 · 0 comments
Open

Add version-gating for format interactions #411

ikeycode opened this issue Jan 18, 2025 · 0 comments

Comments

@ikeycode
Copy link
Member

The original stone format (v0 - unversioned) will be superseded by the first epoch-bump-capable V2 format soon.

In order to facilitate the development of version specific features we need to ensure they are correctly handled by version gating. This means:

  • Cargo.toml feature flags for the format variants. Each new version depends on the last feature in TOML and the default remains as v0 for now.
  • Handling differences in capabilities or codepaths based on the version number in archive and/or payload headers.

Mapping flags to version numbers to express capabilities seems to be the sanest approach going forwards, allowing writers to raise errors when using mismatched features for the selected versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant