Struct names clash in Rust easily and idiomatically, which might cause issues -- e.g. there are approximately a billion types called PublicKey.
I'm not sure the best way to get a unique name for a given struct -- I don't know an easy way to get a "fully-qualified" version of struct names that would include crate/namespace info, but that would be ideal.
This seems like something that other people would have run into before, and Rust's macro/type magic should be able to handle it. https://docs.rs/mononym/latest/mononym/ seems like it might be promising? But I'm not sure if it actually addresses what we need here.
Struct names clash in Rust easily and idiomatically, which might cause issues -- e.g. there are approximately a billion types called
PublicKey.I'm not sure the best way to get a unique name for a given struct -- I don't know an easy way to get a "fully-qualified" version of struct names that would include crate/namespace info, but that would be ideal.
This seems like something that other people would have run into before, and Rust's macro/type magic should be able to handle it. https://docs.rs/mononym/latest/mononym/ seems like it might be promising? But I'm not sure if it actually addresses what we need here.