mirror of
https://github.com/Lokathor/bytemuck.git
synced 2024-10-30 05:40:50 +00:00
49 lines
1.4 KiB
TOML
49 lines
1.4 KiB
TOML
[package]
|
|
name = "bytemuck"
|
|
description = "A crate for mucking around with piles of bytes."
|
|
version = "1.7.3-alpha.0"
|
|
authors = ["Lokathor <zefria@gmail.com>"]
|
|
repository = "https://github.com/Lokathor/bytemuck"
|
|
readme = "README.md"
|
|
keywords = ["transmute", "bytes", "casting"]
|
|
categories = ["encoding", "no-std"]
|
|
edition = "2018"
|
|
license = "Zlib OR Apache-2.0 OR MIT"
|
|
exclude = ["/pedantic.bat"]
|
|
|
|
[features]
|
|
# In v2 we'll fix these names to be more "normal".
|
|
derive = ["bytemuck_derive"]
|
|
extern_crate_alloc = []
|
|
extern_crate_std = ["extern_crate_alloc"]
|
|
zeroable_maybe_uninit = []
|
|
min_const_generics = []
|
|
|
|
# Do not use if you can avoid it, because this is unsound.
|
|
unsound_ptr_pod_impl = []
|
|
|
|
[dependencies]
|
|
# use the upper line for testing against bytemuck_derive changes, if any
|
|
#bytemuck_derive = { version = "1.0.1-alpha.0", path = "derive", optional = true }
|
|
bytemuck_derive = { version = "1", optional = true }
|
|
|
|
[package.metadata.docs.rs]
|
|
# Note(Lokathor): Don't use all-feautures or it would use `unsound_ptr_pod_impl` too.
|
|
features = [
|
|
"derive",
|
|
"extern_crate_alloc",
|
|
"extern_crate_std",
|
|
"zeroable_maybe_uninit",
|
|
"min_const_generics",
|
|
]
|
|
|
|
[package.metadata.playground]
|
|
# Note(Lokathor): Don't use all-feautures or it would use `unsound_ptr_pod_impl` too.
|
|
features = [
|
|
"derive",
|
|
"extern_crate_alloc",
|
|
"extern_crate_std",
|
|
"zeroable_maybe_uninit",
|
|
"min_const_generics",
|
|
]
|