Commit Graph

33 Commits

Author SHA1 Message Date
Gilad Naaman 700fb0337a Version 0.8.0
Support for const-eval on stable
2022-12-15 20:26:53 +02:00
Gilad Naaman 9e43539733 Version 0.7.1
Re-publish with updated README
2022-10-17 09:29:35 +03:00
Gilad Naaman 979508af3c 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 b2e19f643c v0.6.5 2021-12-03 18:26:55 +02:00
Gilad Naaman 830ced6d41 v0.6.4 2021-05-27 17:21:15 +03:00
Gilad Naaman ea7192f5bf v0.6.3 2021-03-28 13:11:22 +03:00
Gilad Naaman 03e6254ac1 v0.6.2 2021-03-26 03:36:12 +03:00
Boqun Feng 8c9b3eddcf 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 664896e766 v0.6.1 (doc fixes) 2020-10-23 16:16:30 +03:00
Gilad Naaman 1c24ad1441 v0.6.0 2020-10-23 16:16:24 +03:00
Gilad Naaman 4832512e36 v0.5.6 2020-09-20 14:54:44 +03:00
Gilad Naaman e8ee92203a v0.5.5 2020-07-01 21:55:07 +03:00
Ralf Jung 3f21c8bba3 add support for using raw_ref macros 2020-06-20 14:23:50 +02:00
Ralf Jung f7ab3aed26 bump version for release 2020-03-16 20:26:44 +01:00
Gilad Naaman c150ad4941 Switch to autocfg from rustc_version 2020-03-16 19:07:13 +02:00
Gilad Naaman 176b647ccd Added impl for constant offset_of 2019-11-16 22:34:38 +02:00
Gilad Naaman dd73e59e83 v0.5.3 2019-11-07 18:57:53 +02:00
Gilad Naaman ea332cd53e v0.5.2 2019-10-31 07:05:31 +02:00
Ralf Jung b7e2959e55 test README only on nightly, so that it can be a dev-dependency 2019-08-10 11:43:04 +02:00
Ralf Jung 5151f6b2c1 fix testing README and fix README tests 2019-08-10 11:12:48 +02:00
Ralf Jung e5bbb9d812 Merge commit 'refs/pull/8/head' of https://github.com/Gilnaa/memoffset 2019-08-10 11:05:56 +02:00
Gilad Naaman 7b642fa82b v0.5.1 2019-07-15 21:54:34 +03:00
Gilad Naaman 7d77f170d6 v0.5.0 2019-07-14 20:54:55 +03:00
Gilad Naaman 9e67d272b3 Fixed MaybeUninit for 1.36 2019-07-04 19:33:22 +03:00
Guillaume Gomez 10d9e098f8 Add tests for README file 2019-05-20 15:12:50 +02:00
Gilad Naaman 9174130890 Added dual support for 1.33 and 1.19 2019-03-15 11:38:46 +02:00
Gilad Naaman 2337b1df25 Fixed unsafe/packing related warnings 2018-01-15 23:32:02 +02:00
Gilad Naaman f402a6f370 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