🔧 Fix Rust tests (#6208)

* 🔧 Fix test script (rust wasm)

* 🔧 Make code compile in test mode + using aarch64 as a target for tests
This commit is contained in:
Belén Albeza 2025-04-07 14:08:41 +02:00 committed by GitHub
parent d279b6c232
commit 6f91da9461
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 8 deletions

View file

@ -30,6 +30,17 @@ impl Uuid {
pub fn from_u64_pair(high: u64, low: u64) -> Self {
Self(ExternalUuid::from_u64_pair(high, low))
}
#[cfg(test)]
pub fn new_v4() -> Self {
Self(ExternalUuid::new_v4())
}
}
impl From<ExternalUuid> for Uuid {
fn from(uuid: ExternalUuid) -> Self {
Self(uuid)
}
}
impl fmt::Display for Uuid {