In earlier versions of Rust, this was required in some places. In more recent versions, you get this warning:
warning: lint raw_pointer_derive has been removed: using derive with raw pointers is ok
I’d like to support older versions of Rust, but not have warnings in newer versions. My current best idea is to use
rustc_version, a build script, and
cfg_attr. Is there something better?