Closed mammothbane closed 2 months ago
Thanks for this; I'll review more once I get a chance, but IIUC this should probably result in at least a minor version bump right?
Yeah, everything other than removing the frunk_core/std
should be minor — everything's compatible. Removing frunk_core/std
is major, but I can add have added it back and marked as deprecated.
Thanks for this. Just cut a new release for this.
Finally got around to change I brought up in #220. See also #233.
Most of the uses of
std
in the crate are ofVec
,String
, andBox
, which are inalloc
, which is available on#![no_std]
viaextern crate alloc;
. This commit adjusts these uses to usealloc
directly and adds analloc
feature flag to control them. The notable exceptions still requiring astd
flag areHashMap
andHashSet
(I'm working on a separate change to addBTree{Map,Set}
support for#![no_std]
envs).frunk_core
no longer needs astd
flag: it has been marked deprecated with a comment.The reimport of
core
asstd
(see #220 for historical explanation) is converted to direct usage ofcore
everywhere.Removed
#[cfg(feature = "std")]
condition fromfrunk_laws
and made it depend onfrunk/std
-- it depends onquickcheck
, which requiresstd
.Added
#[cfg(test)] extern crate std;
to#![no_std]
crates, asstd
is required to run the libtest harness.Tested against all the combinations of feature flags I could think of. Successfully compiles into a
#![no_std]
embedded project withalloc
enabled.