diff --git a/serde/src/de/impls.rs b/serde/src/de/impls.rs index 915b53a7..1fc88773 100644 --- a/serde/src/de/impls.rs +++ b/serde/src/de/impls.rs @@ -3361,3 +3361,13 @@ impl<'de> Visitor<'de> for FileOpenModeVisitor { } } } + +#[cfg(target_os = "mikros")] +impl<'de> Deserialize<'de> for std::os::mikros::FileOpenMode { + fn deserialize(deserializer: D) -> Result + where + D: Deserializer<'de>, + { + deserializer.deserialize_enum("FileOpenMode", &["Read", "Write", "ReadWrite"], FileOpenModeVisitor) + } +}