Commit Graph

33 Commits

Author SHA1 Message Date
Gilad Naaman
0fac3ac664 Version 0.8.0
Support for const-eval on stable
2022-12-15 20:26:53 +02:00
Gilad Naaman
d8accb7671 Version 0.7.1
Re-publish with updated README
2022-10-17 09:29:35 +03:00
Gilad Naaman
f1ae392759 Version 0.7.0
Support unions and update docs:
 - https://github.com/Gilnaa/memoffset/issues/66
 - https://github.com/Gilnaa/memoffset/issues/23
 - https://github.com/Gilnaa/memoffset/issues/59
2022-10-17 09:25:20 +03:00
Gilad Naaman
01e2e42ef0 v0.6.5 2021-12-03 18:26:55 +02:00
Gilad Naaman
bbd58f2cbe v0.6.4 2021-05-27 17:21:15 +03:00
Gilad Naaman
9846cd17f3 v0.6.3 2021-03-28 13:11:22 +03:00
Gilad Naaman
2423502a96 v0.6.2 2021-03-26 03:36:12 +03:00
Boqun Feng
576166bb63
Use stablilized addr_of! macro (#50)
Since Rust 1.51.0, support for macro addr_of! has been stabilized[1],
and this provides a way to get a raw pointer without potential UB in
some cases.

Memoffset alreadly uses the feature at the pre-stablilized stage (the
macro was named as raw_const! then). Therefore, switch to use the
stablilized version (and name) if Rust 1.51.0 and above is used,
otherwise use the original fallback version, which works in a less
technically correct way.

[1]: https://github.com/rust-lang/rust/pull/72279

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
2021-03-08 19:56:59 +01:00
Gilad Naaman
91114005f0 v0.6.1 (doc fixes) 2020-10-23 16:16:30 +03:00
Gilad Naaman
e592834acc v0.6.0 2020-10-23 16:16:24 +03:00
Gilad Naaman
f2a5508ab8 v0.5.6 2020-09-20 14:54:44 +03:00
Gilad Naaman
8ec286293c v0.5.5 2020-07-01 21:55:07 +03:00
Ralf Jung
8c5200e9e2 add support for using raw_ref macros 2020-06-20 14:23:50 +02:00
Ralf Jung
e8085721f3 bump version for release 2020-03-16 20:26:44 +01:00
Gilad Naaman
449841d45d Switch to autocfg from rustc_version 2020-03-16 19:07:13 +02:00
Gilad Naaman
425477dc5b Added impl for constant offset_of 2019-11-16 22:34:38 +02:00
Gilad Naaman
c0ad55cb4a v0.5.3 2019-11-07 18:57:53 +02:00
Gilad Naaman
59ed7dd178 v0.5.2 2019-10-31 07:05:31 +02:00
Ralf Jung
2931fc3024 test README only on nightly, so that it can be a dev-dependency 2019-08-10 11:43:04 +02:00
Ralf Jung
5abf873462 fix testing README and fix README tests 2019-08-10 11:12:48 +02:00
Ralf Jung
b35ec98360 Merge commit 'refs/pull/8/head' of https://github.com/Gilnaa/memoffset 2019-08-10 11:05:56 +02:00
Gilad Naaman
eeacd4253c v0.5.1 2019-07-15 21:54:34 +03:00
Gilad Naaman
fe0dce0d46 v0.5.0 2019-07-14 20:54:55 +03:00
Gilad Naaman
9a7d4664aa Fixed MaybeUninit for 1.36 2019-07-04 19:33:22 +03:00
Guillaume Gomez
2f6bb9c370 Add tests for README file 2019-05-20 15:12:50 +02:00
Gilad Naaman
2d96bfe695 Added dual support for 1.33 and 1.19 2019-03-15 11:38:46 +02:00
Gilad Naaman
468249a069 Fixed unsafe/packing related warnings 2018-01-15 23:32:02 +02:00
Gilad Naaman
a9cc05526c Bumped version to 0.2 2018-01-13 19:37:05 +02:00
Gilad Naaman
745368a41f Cargo.toml update 2017-10-17 09:15:37 +03:00
Gilad Naaman
c2d4432de7 Switched to the MIT license 2017-10-17 08:37:35 +03:00
Gilad Naaman
057a247d25 Cleanup. Macors no longer thoretically allocate. 2017-10-16 22:51:37 +03:00
Gilad Naaman
32cbbb79ac Changed name offset->memoffset 2017-10-16 06:22:58 +03:00
Gilad Naaman
2946b7e5f5 Initial Commit 2017-10-15 23:38:00 +03:00