It is pointless, nightly users get stable_offset_of which switches out the entire implementation and makes it fully const-compatible without any nightly feature.
However we can avoid breaking the build of people that enable this feature, by simply making it do nothing. If they are on a ~recent nightly (less than 3 months old), they will get stable_offset_of which subsumes all the unstable features. If they are on an older nightly they should stick to older versions of memoffset.
It is pointless, nightly users get
stable_offset_of
which switches out the entire implementation and makes it fully const-compatible without any nightly feature.However we can avoid breaking the build of people that enable this feature, by simply making it do nothing. If they are on a ~recent nightly (less than 3 months old), they will get
stable_offset_of
which subsumes all the unstable features. If they are on an older nightly they should stick to older versions of memoffset.