Gilnaa / memoffset

offsetof for Rust
MIT License
224 stars 29 forks source link

Support Rust 1.12.1 #2

Closed jeehoonkang closed 6 years ago

jeehoonkang commented 6 years ago

Hi! First of all, thank you for maintaining this extremely useful library!

Currently, memoffset is used by crossbeam-epoch, which is a concurrency library. We Crossbeam developers aim to push it to rayon, which is a parallelism library.

But rayon should support Rust 1.12, and memoffset currently doesn't. May I ask if you could merge this PR so that memoffset can be compiled in Rust 1.12.1, and in turn rayon can depend on crossbeam-epoch?

Gilnaa commented 6 years ago

Sure thing, I'll take a look later tonight and release a version

Gilnaa commented 6 years ago

I published a new version (0.2) with your PR.

You can also now drop "default-features=false" in your Cargo.toml, as memoffset is now always no_std.

Good day

Gilnaa commented 6 years ago

I published a new version (0.2) with your PR.

You can also now drop "default-features=false" in your Cargo.toml, as memoffset is now always no_std.

Good day

jeehoonkang commented 6 years ago

Thanks!