From 241240c34ab5f06a22f727bc72fbaed18662d0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurij=20Juki=C4=87?= Date: Thu, 9 Oct 2025 14:09:30 +0200 Subject: [PATCH] convert usize and isize to u64 and s64 --- src/build/wit_generator.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/build/wit_generator.rs b/src/build/wit_generator.rs index 0b16141f..bc10ac71 100644 --- a/src/build/wit_generator.rs +++ b/src/build/wit_generator.rs @@ -225,6 +225,8 @@ fn rust_type_to_wit(ty: &Type, used_types: &mut HashSet) -> Result Ok("u64".to_string()), "f32" => Ok("f32".to_string()), "f64" => Ok("f64".to_string()), + "usize" => Ok("u64".to_string()), + "isize" => Ok("s64".to_string()), "String" => Ok("string".to_string()), "bool" => Ok("bool".to_string()), "Vec" => {