Gilnaa / memoffset

offsetof for Rust
MIT License
224 stars 29 forks source link

Automatically enable const evaluation #70

Closed gnaaman-dn closed 1 year ago

gnaaman-dn commented 1 year ago

When running on a compiler newer than 1.65, automatically enable usage of the macro in const contexts.

Closes https://github.com/Gilnaa/memoffset/issues/4 Though we'll have to open a new one to track const-usage with cells.

Gilnaa commented 1 year ago

(I apologize for the multiple users, accidentally opened the PR from the wrong browser window)