Debian Codegraph @

debian/missing-sources/bytemuck/Cargo.toml.orig

raw
1 [package]
2 name = "bytemuck"
3 description = "A crate for mucking around with piles of bytes."
4 version = "1.24.0"
5 authors = ["Lokathor <[email protected]>"]
6 repository = "https://github.com/Lokathor/bytemuck"
7 readme = "README.md"
8 keywords = ["transmute", "bytes", "casting"]
9 categories = ["encoding", "no-std"]
10 edition = "2018"
11 license = "Zlib OR Apache-2.0 OR MIT"
12 exclude = ["/pedantic.bat", "derive/", "contiguous_bitset/"]
13
14 [features]
15 # In v2 we'll fix these names to be more "normal".
16
17 # Enable deriving the various `bytemuck` traits.
18 derive = ["bytemuck_derive"]
19 # Enable features requiring items from `extern crate alloc`.
20 extern_crate_alloc = []
21 # Enable features requiring items from `extern crate std`.
22 extern_crate_std = ["extern_crate_alloc"]
23 # Implement `Zeroable` for `MaybeUninit`.
24 zeroable_maybe_uninit = []
25 # Implement `Zeroable` for `std::sync::atomic` types.
26 zeroable_atomics = []
27
28 # All MSRV notes below are GUIDELINES and future versions may require even more
29 # MSRV on any feature.
30
31 # MSRV 1.36: Use `align_offset` method instead of casting to `usize` to check
32 # alignment of pointers, this *may* improve codegen in some cases (but it has
33 # never been formally benchmarked!)
34 align_offset = []
35
36 min_const_generics = [] # MSRV 1.51: support arrays via min_const_generics
37
38 wasm_simd = [] # MSRV 1.54.0: support wasm simd types
39 aarch64_simd = [] # MSRV 1.59.0: support aarch64 simd types
40 avx512_simd = [] # MSRV 1.89.0: support avx512 simd types
41
42 must_cast = [] # MSRV 1.64.0: support the `must` module.
43 must_cast_extra = [
44 "must_cast",
45 ] # MSRV 1.83.0: support mutable references in const
46
47 # Adds `TransparentWrapper` impls for stdlib types newer than bytemuck's base MSRV.
48 # Current MSRV 1.74.0: `core::num::Saturating`.
49 # MSRV may increase if impls are added for newer types.
50 transparentwrapper_extra = []
51
52 const_zeroed = [] # MSRV 1.75.0: support const `zeroed()`
53
54 # MSRV 1.82.0: support `zeroed_*rc*` when combined with `extern_crate_alloc`
55 alloc_uninit = []
56
57 # Do not use if you can avoid it, because this is **unsound**!!!!
58 unsound_ptr_pod_impl = []
59
60 # MSRV 1.46.0: adds the `#[track_caller]` attribute to functions which may panic
61 track_caller = []
62
63 # MSRV 1.74.0 Pod/Zeroable implementations for `core::num::Saturating`
64 pod_saturating = []
65
66 # MSRV 1.71: Adds ZeroableInOption impl for fn-ptrs with -unwind
67 zeroable_unwind_fn = []
68
69 # MSRV 1.81: Impls core::error:Error for error types
70 impl_core_error = []
71
72 # Enables all features that are both sound and supported on the latest stable
73 # version of Rust, with the exception of `extern_crate_alloc` and
74 # `extern_crate_std`.
75 # Note: Enabling this feature opts out of any MSRV guarantees!
76 latest_stable_rust = [
77 # Keep this list sorted.
78 "aarch64_simd",
79 "avx512_simd",
80 "align_offset",
81 "alloc_uninit",
82 "const_zeroed",
83 "derive",
84 "impl_core_error",
85 "min_const_generics",
86 "must_cast",
87 "must_cast_extra",
88 "pod_saturating",
89 "track_caller",
90 "transparentwrapper_extra",
91 "wasm_simd",
92 "zeroable_atomics",
93 "zeroable_maybe_uninit",
94 "zeroable_unwind_fn",
95 ]
96
97 # ALL FEATURES BELOW THIS ARE NOT SEMVER SUPPORTED! TEMPORARY ONLY!
98
99 # Enable support for `std::simd` types.
100 nightly_portable_simd = []
101 # Enable support for unstable `std::arch` types (such as the AVX512 types).
102 nightly_stdsimd = []
103 # Enable `f16` and `f128`
104 nightly_float = []
105
106 # Improved documentation using the nightly toolchain
107 nightly_docs = []
108
109 [dependencies]
110 bytemuck_derive = { version = "1.10.2", path = "derive", optional = true }
111
112 [lints.rust]
113 unexpected_cfgs = { level = "deny", check-cfg = [
114 'cfg(target_arch, values("spirv"))',
115 ] }
116
117 [package.metadata.docs.rs]
118 # Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too.
119 features = [
120 "nightly_docs",
121 "latest_stable_rust",
122 "extern_crate_alloc",
123 "extern_crate_std",
124 ]
125
126 [package.metadata.playground]
127 # Note(Lokathor): Don't use all-features or it would use `unsound_ptr_pod_impl` too.
128 features = ["latest_stable_rust", "extern_crate_alloc", "extern_crate_std"]