2019-09-20 01:09:31 +00:00
|
|
|
[package]
|
|
|
|
name = "bytemuck"
|
|
|
|
description = "A crate for mucking around with piles of bytes."
|
2024-03-13 05:15:46 +00:00
|
|
|
version = "1.15.0"
|
2019-09-20 01:09:31 +00:00
|
|
|
authors = ["Lokathor <zefria@gmail.com>"]
|
|
|
|
repository = "https://github.com/Lokathor/bytemuck"
|
|
|
|
readme = "README.md"
|
|
|
|
keywords = ["transmute", "bytes", "casting"]
|
|
|
|
categories = ["encoding", "no-std"]
|
|
|
|
edition = "2018"
|
2020-07-24 02:23:46 +00:00
|
|
|
license = "Zlib OR Apache-2.0 OR MIT"
|
2020-07-25 21:43:31 +00:00
|
|
|
exclude = ["/pedantic.bat"]
|
2019-09-22 19:07:59 +00:00
|
|
|
|
2019-09-20 01:09:31 +00:00
|
|
|
[features]
|
2021-06-13 14:40:58 +00:00
|
|
|
# In v2 we'll fix these names to be more "normal".
|
|
|
|
derive = ["bytemuck_derive"]
|
2019-09-20 01:09:31 +00:00
|
|
|
extern_crate_alloc = []
|
2020-07-24 12:53:43 +00:00
|
|
|
extern_crate_std = ["extern_crate_alloc"]
|
2020-08-20 03:43:44 +00:00
|
|
|
zeroable_maybe_uninit = []
|
2022-12-21 20:54:31 +00:00
|
|
|
zeroable_atomics = []
|
2023-09-05 20:08:36 +00:00
|
|
|
|
2023-09-05 20:56:04 +00:00
|
|
|
# All MSRV notes below are GUIDELINES and future versions may require even more
|
|
|
|
# MSRV on any feature.
|
|
|
|
|
|
|
|
# MSRV 1.36: Use `align_offset` method instead of casting to `usize` to check
|
|
|
|
# alignment of pointers, this *may* improve codegen in some cases (but it has
|
|
|
|
# never been formally benchmarked!)
|
2023-09-05 20:08:36 +00:00
|
|
|
align_offset = []
|
|
|
|
|
2023-09-05 20:56:04 +00:00
|
|
|
min_const_generics = [] # MSRV 1.51: support arrays via min_const_generics
|
|
|
|
|
|
|
|
wasm_simd = [] # MSRV 1.54.0: support wasm simd types
|
|
|
|
aarch64_simd = [] # MSRV 1.59.0: support aarch64 simd types
|
2023-09-05 20:08:36 +00:00
|
|
|
|
2023-09-05 20:56:04 +00:00
|
|
|
must_cast = [] # MSRV 1.57.0: support the `must` module.
|
2020-08-21 01:04:36 +00:00
|
|
|
|
2024-05-13 16:16:20 +00:00
|
|
|
const_zeroed = [] # MSRV 1.75.0: support const `zeroed()`
|
|
|
|
|
2023-09-05 20:08:36 +00:00
|
|
|
# Do not use if you can avoid it, because this is **unsound**!!!!
|
2021-06-13 14:40:58 +00:00
|
|
|
unsound_ptr_pod_impl = []
|
|
|
|
|
2021-12-16 06:16:38 +00:00
|
|
|
# NOT SEMVER SUPPORTED! TEMPORARY ONLY!
|
|
|
|
nightly_portable_simd = []
|
2022-12-17 23:13:52 +00:00
|
|
|
nightly_stdsimd = []
|
2021-12-16 06:16:38 +00:00
|
|
|
|
2023-09-05 19:39:41 +00:00
|
|
|
# Improved documentation using the nightly toolchain
|
|
|
|
nightly_docs = []
|
|
|
|
|
2020-08-21 01:04:36 +00:00
|
|
|
[dependencies]
|
2023-01-20 05:58:28 +00:00
|
|
|
bytemuck_derive = { version = "1.4", path = "derive", optional = true }
|
2019-09-20 01:09:31 +00:00
|
|
|
|
2020-07-25 21:43:31 +00:00
|
|
|
[package.metadata.docs.rs]
|
2022-07-19 01:25:57 +00:00
|
|
|
# Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too.
|
2021-06-13 14:40:58 +00:00
|
|
|
features = [
|
2023-09-05 19:39:41 +00:00
|
|
|
"nightly_docs",
|
2021-06-13 14:40:58 +00:00
|
|
|
"derive",
|
|
|
|
"extern_crate_alloc",
|
|
|
|
"extern_crate_std",
|
|
|
|
"zeroable_maybe_uninit",
|
2022-12-21 20:54:31 +00:00
|
|
|
"zeroable_atomics",
|
2021-06-13 14:40:58 +00:00
|
|
|
"min_const_generics",
|
2021-10-15 19:46:52 +00:00
|
|
|
"wasm_simd",
|
2023-06-06 21:50:39 +00:00
|
|
|
"must_cast",
|
2024-05-13 16:16:20 +00:00
|
|
|
"const_zeroed",
|
2021-06-13 14:40:58 +00:00
|
|
|
]
|
2020-09-05 18:33:29 +00:00
|
|
|
|
|
|
|
[package.metadata.playground]
|
2022-07-19 01:25:57 +00:00
|
|
|
# Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too.
|
2021-06-13 14:40:58 +00:00
|
|
|
features = [
|
|
|
|
"derive",
|
|
|
|
"extern_crate_alloc",
|
|
|
|
"extern_crate_std",
|
|
|
|
"zeroable_maybe_uninit",
|
2022-12-21 20:54:31 +00:00
|
|
|
"zeroable_atomics",
|
2021-06-13 14:40:58 +00:00
|
|
|
"min_const_generics",
|
2021-10-15 19:46:52 +00:00
|
|
|
"wasm_simd",
|
2023-06-06 21:50:39 +00:00
|
|
|
"must_cast",
|
2024-05-13 16:16:20 +00:00
|
|
|
"const_zeroed",
|
2021-06-13 14:40:58 +00:00
|
|
|
]
|