forked from Lokathor/bytemuck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into more-transparentwrapper-impls
- Loading branch information
Showing
12 changed files
with
414 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "bytemuck" | ||
description = "A crate for mucking around with piles of bytes." | ||
version = "1.17.1" | ||
version = "1.19.0" | ||
authors = ["Lokathor <[email protected]>"] | ||
repository = "https://github.com/Lokathor/bytemuck" | ||
readme = "README.md" | ||
|
@@ -13,10 +13,16 @@ exclude = ["/pedantic.bat"] | |
|
||
[features] | ||
# In v2 we'll fix these names to be more "normal". | ||
|
||
# Enable deriving the various `bytemuck` traits. | ||
derive = ["bytemuck_derive"] | ||
# Enable features requiring items from `extern crate alloc`. | ||
extern_crate_alloc = [] | ||
# Enable features requiring items from `extern crate std`. | ||
extern_crate_std = ["extern_crate_alloc"] | ||
# Implement `Zeroable` for `MaybeUninit`. | ||
zeroable_maybe_uninit = [] | ||
# Implement `Zeroable` for `std::sync::atomic` types. | ||
zeroable_atomics = [] | ||
|
||
# All MSRV notes below are GUIDELINES and future versions may require even more | ||
|
@@ -44,8 +50,32 @@ const_zeroed = [] # MSRV 1.75.0: support const `zeroed()` | |
# Do not use if you can avoid it, because this is **unsound**!!!! | ||
unsound_ptr_pod_impl = [] | ||
|
||
# NOT SEMVER SUPPORTED! TEMPORARY ONLY! | ||
# MSRV 1.46.0: adds the `#[track_caller]` attribute to functions which may panic | ||
track_caller = [] | ||
|
||
# Enables all features that are both sound and supported on the latest stable | ||
# version of Rust, with the exception of `extern_crate_alloc` and | ||
# `extern_crate_std`. | ||
# Note: Enabling this feature opts out of any MSRV guarantees! | ||
latest_stable_rust = [ | ||
# Keep this list sorted. | ||
"aarch64_simd", | ||
"align_offset", | ||
"const_zeroed", | ||
"derive", | ||
"min_const_generics", | ||
"must_cast", | ||
"track_caller", | ||
"wasm_simd", | ||
"zeroable_atomics", | ||
"zeroable_maybe_uninit", | ||
] | ||
|
||
# ALL FEATURES BELOW THIS ARE NOT SEMVER SUPPORTED! TEMPORARY ONLY! | ||
|
||
# Enable support for `std::simd` types. | ||
nightly_portable_simd = [] | ||
# Enable support for unstable `std::arch` types (such as the AVX512 types). | ||
nightly_stdsimd = [] | ||
# Enable `f16` and `f128` | ||
nightly_float = [] | ||
|
@@ -63,29 +93,15 @@ unexpected_cfgs = { level = "deny", check-cfg = ['cfg(target_arch, values("spirv | |
# Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too. | ||
features = [ | ||
"nightly_docs", | ||
"derive", | ||
"latest_stable_rust", | ||
"extern_crate_alloc", | ||
"extern_crate_std", | ||
"zeroable_maybe_uninit", | ||
"zeroable_atomics", | ||
"min_const_generics", | ||
"wasm_simd", | ||
"must_cast", | ||
"transparentwrapper_extra", | ||
"const_zeroed", | ||
] | ||
|
||
[package.metadata.playground] | ||
# Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too. | ||
features = [ | ||
"derive", | ||
"latest_stable_rust", | ||
"extern_crate_alloc", | ||
"extern_crate_std", | ||
"zeroable_maybe_uninit", | ||
"zeroable_atomics", | ||
"min_const_generics", | ||
"wasm_simd", | ||
"must_cast", | ||
"transparentwrapper_extra", | ||
"const_zeroed", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "bytemuck_derive" | ||
description = "derive proc-macros for `bytemuck`" | ||
version = "1.7.1" | ||
version = "1.8.0" | ||
authors = ["Lokathor <[email protected]>"] | ||
repository = "https://github.com/Lokathor/bytemuck" | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.