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
5 changes: 5 additions & 0 deletions crates/wasmparser/src/validator/names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,11 @@ impl<'a> InterfaceName<'a> {
}

/// Returns the `1.2.3` in `a:b:c/d/e@1.2.3`
///
/// The `suffix` provided here is the optionally specified `versionsuffix`
/// field in the binary format. This is appended to the version to form the
/// full version, if specified. If `None` then the name is required to have
/// a full version as-is.
pub fn version(&self, suffix: Option<&str>) -> Result<Option<Version>, semver::Error> {
let Some(prefix) = self.version_prefix() else {
return Ok(None);
Expand Down
Loading