Commit Graph

407 Commits

Author SHA1 Message Date
Marvin Löbel
92ce415317
Prevent try_zeroed_box<T>() from reserving size_of<T>() space on the stack. (#43)
* Add test

* Change try_zeroed_box implementation to not allocate space for T on the stack

* Add second test
2020-10-21 14:11:09 -06:00
Lokathor
78b36f2be5 (cargo-release) start next development iteration 1.4.2-alpha.0 2020-09-08 15:15:00 -06:00
Lokathor
68ed5fe6f2 (cargo-release) version 1.4.1 2020-09-08 15:14:52 -06:00
Thom Chiovoloni
64cc5973c4
Add more tests, overhaul CI, and fix plug soundness hole in bytemuck::offset_of! (#38)
* Ensure functions that take generic <A, B> don't call them <T, U>

* Plug soundness hole in offset_of with safe_packed_borrows lint

* Add some more tests I noticed were missing (still many missing)

* Make CI way more thorough

* Fix running MSRV tests with unsupported `--feature`s

* Disable derive tests in sanitizers, and fix miri ci
2020-09-06 18:56:41 -06:00
Thom Chiovoloni
343c618fea
Mark playground as all-features (#37) 2020-09-05 12:33:29 -06:00
Mikko Perttunen
e013e747e7
Add/rename LICENSE files (#36)
Add LICENSE files for the MIT and Apache 2.0 licenses, and rename
LICENSE-ZLIB.md to just LICENSE-ZLIB. This allows the cargo-lichking
tool to automatically detect these files and create bundled 3rdparty
license files for crates using bytemuck.
2020-08-31 11:55:43 -06:00
Lokathor
b816a1b585 (cargo-release) start next development iteration 1.4.1-alpha.0 2020-08-27 21:43:33 -06:00
Lokathor
426df7c9c0 (cargo-release) version 1.4.0 2020-08-27 21:43:25 -06:00
Lokathor
6632bcef2c Update Cargo.toml 2020-08-27 21:39:14 -06:00
Lokathor
09ab956bea update the optional derives to the released version 2020-08-27 21:37:08 -06:00
Lokathor
c171ac4f5b (cargo-release) start next development iteration 1.0.1-alpha.0 2020-08-27 21:34:05 -06:00
Lokathor
9aedc156a8 (cargo-release) version 1.0.0 2020-08-27 21:33:46 -06:00
Lokathor
a6418a963d clarify versions. 2020-08-27 21:27:48 -06:00
Lucien Greathouse
19e61623d7
Blame struct name, better error for padding (#35) 2020-08-23 20:12:47 -06:00
Lokathor
e053f8b456 Merge branch 'main' of https://github.com/Lokathor/bytemuck into main 2020-08-22 06:48:30 -06:00
Lokathor
d445228bd8
Update rust.yml 2020-08-21 16:54:06 -06:00
Lokathor
ef6d1ea1c4
Update rust.yml 2020-08-21 16:44:15 -06:00
Robin Appelman
24b71e078f
add derive macro for Contiguous (#31) 2020-08-21 16:08:34 -06:00
Lokathor
e202fa2756 (cargo-release) version 1.0.0-alpha.3 2020-08-21 15:27:04 -06:00
Lucien Greathouse
550dc3396c
Fix Pod derive to use explicit absolute path to 'core' (#32) 2020-08-21 15:13:55 -06:00
Lokathor
ef32c088a2 docs typo 2020-08-20 20:28:54 -06:00
Lokathor
5d7c6cacfe use pre-release in CI for now. 2020-08-20 19:49:23 -06:00
Lokathor
14fa8650f0 (cargo-release) version 1.0.0-alpha.2 2020-08-20 19:46:44 -06:00
Lokathor
d88235518f bytemuck_derive: readme 2020-08-20 19:46:22 -06:00
Lokathor
6356cf1d3a update gitignore for bytemuck_derive 2020-08-20 19:45:36 -06:00
Lokathor
044c1c3057 (cargo-release) version 1.0.0-alpha.1 2020-08-20 19:41:51 -06:00
Lokathor
571155fc5b update changelog 2020-08-20 19:40:38 -06:00
Lokathor
88c6f08213 next version adds a feature, so it's a minor bump. 2020-08-20 19:39:00 -06:00
Lokathor
87e48ba1d9 ready bytemuck_derive for an alpha publish. 2020-08-20 19:37:56 -06:00
Lokathor
453befa0c3 add new derive macros to CI. 2020-08-20 19:32:55 -06:00
Lokathor
a64f697cd5 give the derives crate a better description. 2020-08-20 19:05:59 -06:00
Robin Appelman
cf944452b7
add basic derive macro for Pod, Zeroable and TransparentWrapper for structs (#30)
* add basic derive macro for Pod and Zeroable for structs

* add derive macro for TransparentWrapper

* use core::mem::size_of instead of std::mem::size_of in generated code

* cleanup error handling a bit

* remove unneeded iter logic

* remove unneeded clone and order impl

* fix generics

* fix doc typo

Co-authored-by: Lucien Greathouse <me@lpghatguy.com>

* remove unneeded lifetime anotation

* use unreachable for already rejected patch

Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
2020-08-20 19:04:36 -06:00
Lokathor
94d71d9925 update changelog. 2020-08-19 21:45:09 -06:00
Lokathor
4d819357ba opt-in zeroable for maybe_unint 2020-08-19 21:43:44 -06:00
Lokathor
6414f14815 Use transmute_copy where appropriate. Format some docs. 2020-08-18 17:02:06 -06:00
Lokathor
d2e161bddd
Update rust.yml 2020-08-17 15:43:51 -06:00
Lokathor
4dc4b3ad28 Update rustfmt.toml 2020-08-09 14:59:43 -06:00
Lokathor
46939d28b7 (cargo-release) start next development iteration 1.3.2-alpha.0 2020-07-25 16:06:06 -06:00
Lokathor
07c5193565 (cargo-release) version 1.3.1 2020-07-25 16:05:55 -06:00
Lokathor
2f95820cea readme note 2020-07-25 16:03:30 -06:00
Lokathor
436abe3e89 convert to resize_with 2020-07-25 15:53:27 -06:00
Lokathor
a2baf0abb3 use the correct (weaker) trait bound. 2020-07-25 15:50:10 -06:00
Lokathor
9f29a253b2 CI badges out of Readme 2020-07-25 15:48:36 -06:00
Lokathor
c9f72f036e gotta have that .0 2020-07-25 15:46:52 -06:00
Lokathor
a1ef436bfa test new CI 2020-07-25 15:43:31 -06:00
Soveu
52be254e2c
zeroed_slice_box returns Result (#28)
It returns `Result<(), Box>` instead of `Box`
`cargo check` catched it
How did it pass CI?
2020-07-25 15:26:28 -06:00
Lokathor
d02404cb65
Update rust.yml 2020-07-25 15:26:01 -06:00
Lokathor
8a7d383ecc
Create rust.yml 2020-07-25 15:25:08 -06:00
Lokathor
bb2b95643e (cargo-release) version 1.3.0 2020-07-24 20:44:29 -06:00
Lokathor
d5047618de note error updates. 2020-07-24 20:43:32 -06:00