Gilnaa / memoffset

offsetof for Rust
MIT License
224 stars 29 forks source link

stub out unstable_const feature #84

Closed RalfJung closed 7 months ago

RalfJung commented 7 months ago

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.

RalfJung commented 7 months ago

@Gilnaa thanks! Can you do an 0.9.1 release? :)

RalfJung commented 7 months ago

Ah, you're already on it. :D

Gilnaa commented 7 months ago

My pleasure :)