Commit Graph

267 Commits

Author SHA1 Message Date
Lokathor
7bc1de06da
Merge pull request #10 from thomcc/offset_of
Add a fully sound (no unsafe) offset_of macro
2019-12-10 13:24:30 -07:00
Thom Chiovoloni
ac3133170a Add a sound offset_of macro 2019-12-10 08:40:14 -08:00
Lokathor
23f19609ab (cargo-release) start next development iteration 1.1.1-alpha.0 2019-12-06 12:42:21 -07:00
Lokathor
6d44eadbd2 (cargo-release) version 1.1.0 2019-12-06 12:42:16 -07:00
Lokathor
8055dbc5b3 Update changelog.md 2019-12-06 12:41:48 -07:00
Lokathor
93dade1ab1 documentation consistency 2019-12-06 12:31:51 -07:00
Lokathor
b8a97c6528 Update README.md 2019-12-06 11:58:38 -07:00
Lokathor
f7c7285cd8
Merge pull request #8 from SimonSapin/from_bytes
Add from_bytes, from_bytes_mut, try_from_bytes, try_from_bytes_mut
2019-12-06 11:46:53 -07:00
Simon Sapin
6e54fc51fb Add from_bytes, from_bytes_mut, try_from_bytes, try_from_bytes_mut
This can be useful when receiving a bytes buffer from I/O
2019-12-06 13:23:08 +01:00
Lokathor
c83aa67f4a (cargo-release) start next development iteration 1.0.2-alpha.0 2019-11-26 14:36:43 -07:00
Lokathor
f44e0cde32 (cargo-release) version 1.0.1 2019-11-26 14:36:39 -07:00
Lokathor
0628dab084
Merge pull request #6 from Lokathor/v1.0.1-updates
V1.0.1 updates
2019-11-26 14:34:44 -07:00
Lokathor
3127768af5 Update .travis.yml 2019-11-25 20:32:56 -07:00
Lokathor
b770a7b81c Create changelog.md 2019-11-25 20:32:13 -07:00
Lokathor
de517daffa MaybeUninit has to wait for later. 2019-11-25 19:21:38 -07:00
Lokathor
37380f8867 1.34 needed for NonZeroI32 and friends 2019-11-25 19:17:41 -07:00
Lokathor
389e4e5a27 CI fixy stuff so that we can built on 1.31 (hopefully) 2019-11-25 19:15:11 -07:00
Lokathor
c4f25466fa Update README.md 2019-11-25 19:11:00 -07:00
Lokathor
91aeef0b45 much more docs. 2019-11-25 19:09:26 -07:00
Lokathor
1ab1c006cd attempt to downgrade to 1.31 2019-11-25 18:46:42 -07:00
Lokathor
af499f4c7c Remove .cast method usage and rustfmt 2019-11-25 18:46:23 -07:00
Lokathor
02cd7c1ba5 License change to an equally permissive OSI license 2019-11-25 18:45:54 -07:00
Lokathor
33b64ac430 (cargo-release) start next development iteration 1.0.1-alpha.0 2019-11-18 21:10:44 -07:00
Lokathor
1bd6144acf (cargo-release) version 1.0.0 2019-11-18 21:10:39 -07:00
Lokathor
efc80f1c4d Update allocation.rs 2019-11-18 20:39:07 -07:00
Lokathor
c03199ed0d (cargo-release) start next development iteration 0.1.3-alpha.0 2019-11-10 23:42:52 -07:00
Lokathor
b0fc42a1cd (cargo-release) version 0.1.2 2019-11-10 23:41:50 -07:00
Lokathor
fba68534dc more trait! 2019-11-10 23:41:41 -07:00
Lokathor
239aec4a07 Update .travis.yml 2019-11-04 19:26:47 -07:00
Lokathor
f9edd7a54a (cargo-release) start next development iteration 0.1.2-alpha.0 2019-11-04 19:13:50 -07:00
Lokathor
28abb7f2c1 (cargo-release) version 0.1.1 2019-11-04 19:13:16 -07:00
Lokathor
3fd763c764 Fix a Miri failure 2019-11-04 19:12:59 -07:00
Lokathor
79143a6295 cargo fmt is a strict one 2019-11-03 23:55:51 -07:00
Lokathor
af3f4404df document the failure case
Closes https://github.com/Lokathor/bytemuck/issues/3
2019-11-03 23:45:38 -07:00
Lokathor
911224f7a0 relicense
Closes https://github.com/Lokathor/bytemuck/issues/2
2019-11-03 23:43:15 -07:00
Lokathor
15bbbb29fd docs 2019-11-03 23:39:06 -07:00
Lokathor
0e3948b8b8
Update cast_slice_tests.rs 2019-11-01 10:39:32 -06:00
Lokathor
b199fad411 Create cast_slice_tests.rs 2019-10-26 04:22:15 -06:00
Lokathor
24ad0df209 Update zeroable.rs 2019-10-05 19:26:47 -06:00
Lokathor
f3bffd9da2 (cargo-release) start next development iteration 0.1.1-alpha.0 2019-09-22 13:07:59 -06:00
Lokathor
7603a0f01d
Merge pull request #1 from Lokathor/phase1
Phase1
2019-09-22 13:07:03 -06:00
Lokathor
55a4eef7b6 improve the ZST case 2019-09-21 17:39:37 -06:00
Lokathor
72d3ae2419 clarify when allocation related operations are available. 2019-09-21 17:33:36 -06:00
Lokathor
dad138dba3
guard against zero sized types with an error
We could update this to just not allocate in the future but I don't believe that the docs give us assurances in that area.
2019-09-20 13:05:09 -06:00
Lokathor
6fea4bfa58
make the deref explicit 2019-09-20 11:40:44 -06:00
Lokathor
40cb0d19c3
comments 2019-09-20 11:12:40 -06:00
Lokathor
d4fde53386
Update src/zeroable.rs
Co-Authored-By: Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>
2019-09-20 11:10:01 -06:00
Lokathor
ca902ff52d
mention repr(packed) 2019-09-20 11:09:33 -06:00
Lokathor
28603a3198
gotta mask that unsafe 2019-09-20 11:08:40 -06:00
Lokathor
cc0a6aa751
use a result 2019-09-20 11:06:50 -06:00