I'm doing a lot of no_std firmware development, and frequently use serde_json_core crate.
This serializer does not support collect_str() used in ipnet's serialization code since 1096c55d6f0b95e06aaa21604c936e3093a40af7.
This patch adds new feature to enable serialization by formatting Ipv*Net addr to heapless::String and then serializing using serialize_str(). Since maximum formatted address length is fixed, and not too big, memory usage is still very low.
I'm doing a lot of no_std firmware development, and frequently use serde_json_core crate.
This serializer does not support collect_str() used in ipnet's serialization code since 1096c55d6f0b95e06aaa21604c936e3093a40af7.
This patch adds new feature to enable serialization by formatting Ipv*Net addr to heapless::String and then serializing using serialize_str(). Since maximum formatted address length is fixed, and not too big, memory usage is still very low.