Lokathor
4f2a822cb6
Correct the error variant returned in some situations.
2020-07-24 20:41:57 -06:00
Lokathor
8b43015301
Merge branch 'main' of https://github.com/Lokathor/bytemuck into main
2020-07-24 20:37:13 -06:00
Lokathor
a52ed9f98a
license to changelog.
2020-07-24 20:36:38 -06:00
Lokathor
6ab12a78aa
changelog
2020-07-24 20:34:51 -06:00
Lokathor
51f1121d4f
Add zeroed_slice_box
2020-07-24 20:34:32 -06:00
Lokathor
9ef3b89552
Update .travis.yml
2020-07-24 07:33:27 -06:00
Lokathor
4e06e7903b
spelling.
2020-07-24 06:59:00 -06:00
Lokathor
51f3ee921c
update changelog.
2020-07-24 06:58:37 -06:00
Lokathor
b531b050f3
Part of https://github.com/Lokathor/bytemuck/issues/21
2020-07-24 06:57:41 -06:00
Lokathor
1be7a90f16
Closes https://github.com/Lokathor/bytemuck/issues/22
2020-07-24 06:53:43 -06:00
Lokathor
2d41741f40
Merge pull request #24 from Lokathor/re-license
...
add additional license options
2020-07-24 06:41:48 -06:00
Lokathor
c507a6a8a7
add additional license options
2020-07-23 20:23:46 -06:00
Lokathor
3fc1e6ca4c
Merge branch 'master' of https://github.com/Lokathor/bytemuck
2020-07-23 20:22:52 -06:00
Lokathor
ca164245cb
update changelog.
2020-07-23 20:22:43 -06:00
Lokathor
c9a387a8da
update offset_of to have 2-arg and 3-arg versions.
2020-07-23 20:21:09 -06:00
Lokathor
f9849c63c7
update changelog
2020-07-23 19:30:33 -06:00
Lokathor
93e9b53571
Merge pull request #17 from HeroicKatora/master
...
Add a method to allocate zeroed slices
2020-07-23 19:06:59 -06:00
Andreas Molzer
11e791c88a
Add a method to allocate zeroed slices
...
Note that the method requires a Pod and not only a Zeroable structure
since only the latter guarantees that slices have a consistent layout.
We need to compute this layout to manually allocate it.
2020-07-23 22:10:49 +02:00
Lokathor
7899e02d5f
Merge pull request #23 from ignatenkobrain/patch-1
...
chore: Exclude unneeded files
2020-02-17 08:50:09 -07:00
Igor Gnatenko
83ee985942
chore: Exclude unneeded files
2020-02-17 11:01:13 +01:00
Lokathor
9fa2759bd2
(cargo-release) start next development iteration 1.2.1-alpha.0
2020-02-06 20:45:35 -07:00
Lokathor
2725633356
(cargo-release) version 1.2.0
2020-02-06 20:44:50 -07:00
Lokathor
364b6fe075
changelog update
2020-02-06 20:44:33 -07:00
Lokathor
6ad44e459f
Merge pull request #20 from Lokathor/speedup
...
eliminate some dead branches
2020-02-06 19:51:58 -07:00
Lokathor
fa686336e7
factor the panic to one spot.
2020-02-06 19:38:05 -07:00
Lokathor
cd8ed37eae
Remove the unreachable_unchecked
2020-02-06 19:18:10 -07:00
Lokathor
326c78d127
formatting
2020-02-04 00:20:12 -07:00
Lokathor
c0c3b38025
eliminate some dead branches
2020-02-04 00:18:22 -07:00
Lokathor
d37861c3d0
Update README.md
2020-01-29 01:57:45 -07:00
Lokathor
d8173e3335
(cargo-release) version 1.2.0-alpha.1
2020-01-29 01:19:24 -07:00
Lokathor
34284ba9e5
version spike
2020-01-29 01:19:19 -07:00
Lokathor
6feac18319
Merge pull request #15 from thomcc/transparent
...
Add TransparentWrapper marker trait
2020-01-29 01:16:21 -07:00
Lokathor
f5d5523f77
Pod safety documentation change
...
The previous requirements were incorrect because I misunderstood how `repr(packed)` actually means `repr(Rust, packed)` rather than `repr(C, packed)` as I first assumed.
Closes https://github.com/Lokathor/bytemuck/issues/14
2020-01-29 01:08:14 -07:00
Thom Chiovoloni
e415a28966
Duplicate the doctests for the sake of miri
2020-01-11 08:01:58 -08:00
Thom Chiovoloni
f62e320bba
Rework TransparentWrapper to not require that the wrapped type be public
2020-01-11 07:31:17 -08:00
Thom Chiovoloni
c383083c16
Add TransparentWrapper marker trait
2020-01-11 06:28:11 -08:00
Lokathor
481c6879ec
Merge pull request #16 from thomcc/miri
...
Run miri in CI
2020-01-10 20:49:02 -07:00
Thom Chiovoloni
ff3c0c7a50
Try to run miri in CI
2020-01-10 11:50:56 -08:00
Lokathor
da1ba1ec80
Merge pull request #12 from thomcc/contiguous
...
Add Contiguous trait
2019-12-29 22:02:55 -07:00
Thom Chiovoloni
d9ca3306dd
Add Contiguous trait
2019-12-11 19:04:23 -08:00
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