Commit Graph

74 Commits

Author SHA1 Message Date
Lokathor
995205de23 version bump 2022-08-14 10:10:45 -06:00
Tom Dohrmann
2c97676bfc
support deriving Pod for packed generic types. (#123)
* improve `#[repr]` parsing

* allow deriving `Pod` for packed generic types

* Revert "Update Cargo.toml"

This reverts commit 6632bcef2c.
2022-08-07 14:32:00 -06:00
Lokathor
d75942c484 (cargo-release) version 1.11.0 2022-07-23 21:15:23 -06:00
Lokathor
89bbdb1620 spelling 2022-07-18 19:25:57 -06:00
Lokathor
bf68430b59 (cargo-release) version 1.10.0 2022-07-02 18:14:46 -06:00
Lokathor
b75005c4d0 (cargo-release) version 1.9.1 2022-04-01 23:49:36 -06:00
Justin Starry
26e1495d61
Bump bytemuck_derive dependency to required version (#97) 2022-04-01 11:55:28 -06:00
Lokathor
73eaaaf9b8 (cargo-release) version 1.9.0 2022-03-29 23:14:16 -06:00
Lokathor
950ae43012 back to the correct derive dependency line 2022-03-29 23:13:34 -06:00
Gray Olson
b472189ff8
Add NoPadding, AnyBitPattern, and CheckedBitPattern traits (#91)
* add MaybePod and NoPadding traits

* MaybePod and NoPadding derive macros

* fix doctest

* fmt

* fix bad doc link

* move new casting functions into separate modules

* fmt

* fix doctest and derive test

* remove relaxed module, add anybitpattern

* rename MaybePod to CheckedCastFromPod

* rename checked casting functions

* rework CheckedCastFromPod into CheckedBitPattern

* add anybitpattern derive, fix up other derives

* fix doctest

* fix derive trait of bits type

* export AnyBitPattern derive

* export anybitpattern from traits

* actually export derive macro for AnyBitPattern

* make bits struct pub because of type leaking rules

* allow clippy lint in derive

* add copy bound to CheckedBitPattern

* - replace Pod bounds with NoPadding+AnyBitPattern
- add try and panic versions of checked cast functions
- slightly update docs

* fix derive tests

* - adapt the allocation module cast functions as well
- as part of that, make AnyBitPattern a subtrait of Zeroable
- AnyBitPattern derive also derives Zeroable

* @JakobDegen and @zakarumych nits

* superset -> subset on CheckedBitPattern and NoPadding docs

* derive Debug on generated `Bits` structs, which can be useful for debugging failures

* don't derive debug on spirv target arch

* make it work on 1.34

* merge conflicts

* fix erroneous behavior in doctest
2022-03-29 17:01:02 -06:00
Lokathor
4569a30c9f (cargo-release) version 1.8.0 2022-03-01 18:12:36 -07:00
Christopher Serr
6029639753
Implement Pod and Zeroable for AArch64 NEON Vectors (#80)
* Implement `Pod` and `Zeroable` for AArch64 NEON Vectors

The NEON intrinsics will be stabilized in Rust 1.59.

* Compile all-features only on nightly
2021-12-21 19:01:47 -07:00
Lokathor
e32f013a06 (cargo-release) version 1.7.3 2021-12-15 23:20:30 -07:00
Lokathor
dd01ccae42 nightly_portable_simd 2021-12-15 23:16:38 -07:00
Christopher Serr
944c90ca3f
Support WASM SIMD's v128 type (#73)
Due to the MSRV it is behind a feature gate.
2021-10-15 13:46:52 -06:00
Lokathor
e01c6b3a2d (cargo-release) start next development iteration 1.7.3-alpha.0 2021-07-22 23:30:18 -06:00
Lokathor
be16fe2958 (cargo-release) version 1.7.2 2021-07-22 23:29:59 -06:00
Lokathor
8ea087185e (cargo-release) start next development iteration 1.7.2-alpha.0 2021-07-22 23:26:51 -06:00
Lokathor
5024fcc6fb (cargo-release) version 1.7.1 2021-07-22 23:26:26 -06:00
Lokathor
6db9c1944b (cargo-release) start next development iteration 1.7.1-alpha.0 2021-06-13 08:42:13 -06:00
Lokathor
19c41fb116 (cargo-release) version 1.7.0 2021-06-13 08:41:56 -06:00
Lokathor
05d956f3b4
ptr pod impl fix. (#65)
* gate the unsound impl.

* changelog

* update cargo.toml
2021-06-13 08:40:58 -06:00
Lokathor
84397ec62f (cargo-release) start next development iteration 1.6.4-alpha.0 2021-06-13 08:17:30 -06:00
Lokathor
fa43870786 (cargo-release) version 1.6.3 2021-06-13 08:17:13 -06:00
Lokathor
fd901461ad (cargo-release) start next development iteration 1.6.3-alpha.0 2021-06-13 08:14:37 -06:00
Lokathor
987baf6273 (cargo-release) version 1.6.2 2021-06-13 08:14:12 -06:00
Lokathor
8c8b0a71e9 (cargo-release) start next development iteration 1.6.2-alpha.0 2021-06-11 19:16:30 -06:00
Lokathor
223ee7deaf (cargo-release) version 1.6.1 2021-06-11 19:16:08 -06:00
Lokathor
c33343ddfb (cargo-release) start next development iteration 1.6.1-alpha.0 2021-06-10 14:10:58 -06:00
Lokathor
37b82b32c6 (cargo-release) version 1.6.0 2021-06-10 14:10:35 -06:00
Connor Horman
cd8dbd64e9
Attach min_const_generics to a crate feature (#63)
* Attach min_const_generics to a crate feature

* Remove `min_const_generics` detection logic
2021-06-05 08:25:57 -06:00
Lokathor
08a4b8fbc2 (cargo-release) start next development iteration 1.5.2-alpha.0 2021-02-17 21:46:55 -07:00
Lokathor
6f1c78e824 (cargo-release) version 1.5.1 2021-02-17 21:46:34 -07:00
Lokathor
b05354dc01 (cargo-release) start next development iteration 1.5.1-alpha.0 2021-01-13 16:53:04 -07:00
Lokathor
e1e5ebda61 (cargo-release) version 1.5.0 2021-01-13 16:52:46 -07: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
343c618fea
Mark playground as all-features (#37) 2020-09-05 12:33:29 -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
5d7c6cacfe use pre-release in CI for now. 2020-08-20 19:49:23 -06:00
Lokathor
88c6f08213 next version adds a feature, so it's a minor bump. 2020-08-20 19:39:00 -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
4d819357ba opt-in zeroable for maybe_unint 2020-08-19 21:43:44 -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
a1ef436bfa test new CI 2020-07-25 15:43:31 -06:00
Lokathor
bb2b95643e (cargo-release) version 1.3.0 2020-07-24 20:44:29 -06:00