diff --git a/README.md b/README.md index 868e507..baf4184 100644 --- a/README.md +++ b/README.md @@ -374,10 +374,11 @@ Rust types will map these C# types. | `u32` | `uint` | | `u64` | `ulong` | | `u128` | `UInt128` | +| `usize` | `nuint` | | `f32` | `float` | | `f64` | `double` | | `bool` | `[MarshalAs(UnmanagedType.U1)]bool` | -| `usize` | `nuint` | +| `char` | `uint` | | `()` | `void` | | `#[repr(C)]Struct` | `[StructLayout(LayoutKind.Sequential)]Struct` | | `#[repr(C)]Union` | `[StructLayout(LayoutKind.Explicit)]Struct` | diff --git a/csbindgen/src/type_meta.rs b/csbindgen/src/type_meta.rs index c01aee0..f6e7450 100644 --- a/csbindgen/src/type_meta.rs +++ b/csbindgen/src/type_meta.rs @@ -218,6 +218,7 @@ impl RustType { "f32" => "float", "f64" => "double", "bool" => "bool", + "char" => "uint", "usize" => "nuint", // C# 9.0 "()" => "void", _ => {