Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions crates/sbd-gen-schema/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ const fn default_version() -> Version {
}

/// Returns the used schema version.
///
/// - If the new schema adds new functionality but doesn't break old schema files: only a non-SemVer-breaking bump is required
/// - Otherwise, this needs a SemVer-breaking bump.
///
/// In both cases, the schema version must be updated accordingly.
#[must_use]
pub fn schema_version() -> Version {
#[expect(
clippy::missing_panics_doc,
reason = "this is expected to be correct at compile time"
)]
Version::parse(env!("CARGO_PKG_VERSION")).unwrap()
pub const fn schema_version() -> Version {
semver::Version::new(0, 3, 1)
Comment thread
kaspar030 marked this conversation as resolved.
Comment thread
ROMemories marked this conversation as resolved.
}

#[serde_as]
Expand Down
Loading