Cargo Features
[dependencies]
ladata = { version = "0.0.29", default-features = false, features = ["std", "alloc", "no_std", "safe", "safest", "unsafe", "unsafe_constructors", "unsafe_init", "unsafe_pop", "unsafe_unit", "unsafest", "nightly", "nightly_docs", "no-std", "deps_default", "deps_all", "deps_numerical", "deps_continuous", "deps_discrete", "deps_categorical", "deps_datetime", "deps_string"] }
- default = deps_default, std
-
These default features are set whenever
ladata
is added without
somewhere in the dependency tree.default-features = false - std default nightly_docs? = alloc
-
environment features
(not enabling "std" declares the library as "no_std")Enables std of devela ^0.8.0 and optional half
half:
* optional dependencies *
feature: "deps_continuous" (continuous numbers):
F16 BF16 - alloc std
-
features that depend on allocation
Enables alloc of devela ^0.8.0
Affects
arr2d::BoxedGrid2D
,array::BoxedArray
,bit_array::BoxedBitArray
,bit_array::BoxedBitArray8
,bit_array::BoxedBitArray16
,bit_array::BoxedBitArray32
,bit_array::BoxedBitArray64
,bit_array::BoxedBitArray128
,deque::BoxedDeque
,linked::BoxedSinglyLinkedList8
,queue::BoxedQueue
,stack::BoxedStack
,storage::Boxed
… - no_std no-std?
-
features incompatible with the standard library
Enables no_std of devela ^0.8.0
- safe safest?
-
safety features
forbid unsafe at the crate level - safest = safe
-
forbid unsafe recursively
Enables safest of devela ^0.8.0
- unsafe nightly_docs? unsafest? = unsafe_constructors, unsafe_init, unsafe_pop, unsafe_unit
- unsafe_constructors unsafe?
-
enables unchecked constructors
Enables unsafe_num of devela ^0.8.0
- unsafe_init unsafe?
-
enable fast array initialization
- unsafe_pop unsafe?
-
enable pop methods not depending on T: Clone
- unsafe_unit unsafe?
-
enable
unit::DataRaw
Affects
unit::raw
,traits::DataRaw
,traits::DataRawCopy
… - unsafest = unsafe
-
enables unsafe recursively.
Enables unsafest of devela ^0.8.0
- nightly nightly_docs?
-
nightly features
only for docs - nightly_docs = deps_all, nightly, std, unsafe
-
Enables nightly_docs of devela ^0.8.0
- no-std = no_std
-
deprecated features
- deps_default default = deps_discrete, deps_string, time
-
other features
- deps_all nightly_docs? = deps_categorical, deps_numerical
- deps_numerical deps_all? = deps_continuous, deps_discrete
- deps_continuous deps_numerical? = half, twofloat
- deps_discrete deps_default deps_numerical? = num-bigint, num-rational, rust_decimal
- deps_categorical deps_all? = deps_datetime, deps_string
- deps_datetime deps_categorical? = fugit, time
- deps_string deps_categorical? deps_default = arraystring
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- half deps_continuous?
- twofloat deps_continuous?
-
Enables twofloat ^0.6.1
F128
- num-rational deps_discrete?
-
Enables num-rational
feature: "deps_discrete" (discrete numbers):
Ratio - num-bigint deps_discrete?
-
Enables num-bigint
BigInt
- rust_decimal deps_discrete?
-
Enables rust_decimal
Decimal
- arraystring deps_string?
-
Enables arraystring
feature: "deps_string" (strings):
ArrayString* - fugit deps_datetime?
-
Enables fugit
feature: "dep_datetime" (date/time):
- time deps_datetime? deps_default