Previously discussed in How about "generic global variables"? – it does not seem possible to have this feature, guarantee that each static exists only once per set of type parameters, and keep the dylib
crate type (or any other dynamic linking between rust crates – as opposed to the cdylib
crate type, which creates a finished artifact that can be used by non-Rust code).
1 Like