-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rework #![no_std] support, switch on
alloc
(#236)
* rework #![no_std] support, switch on `alloc` Most of the uses of `std` in the crate are of `Vec`, `String`, and `Box`, which are in `alloc`, which is available on `#![no_std]` platforms via `extern crate alloc;`. This commit adjusts these uses to use `alloc` directly and adds an `"alloc"` feature flag to control them. The notable exceptions still requiring a `std` flag are `HashMap` and `HashSet` (I'm working on a separate change to add `BTree{Map,Set}` support for `#![no_std]` envs). `frunk_core` no longer needs a `std` flag: it has been removed. The reimport of `core` as `std` (see #220 for historical explanation) is converted to direct usage of `core` everywhere. Removed `#[cfg(feature = "std")]` condition from `frunk_laws` and made it depend on `frunk/std` -- it depends on `quickcheck`, which requires `std`. Added `#[cfg(test)] extern crate std;` to `#![no_std]` crates, as `std` is required to run the libtest harness. Tested working against all the combinations of feature flags I could think of. * bump minor version, unremove frunk_core/std and mark deprecated * fix rustfmt
- Loading branch information
1 parent
1ca9c99
commit 93c4db7
Showing
15 changed files
with
91 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
93c4db7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'Frunk Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.empty
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
generic_conversion
0.77
ns/iter (± 0.01
)0
ns/iter (± 0
)+∞
hlist_into_hlist_pat_match
0.77
ns/iter (± 0.13
)0
ns/iter (± 0
)+∞
hlist_into_tuple2_match
0.77
ns/iter (± 0.01
)0
ns/iter (± 0
)+∞
labelled_conversion
0.77
ns/iter (± 0.67
)0
ns/iter (± 0
)+∞
name
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
sculpted_conversion
0.77
ns/iter (± 0.01
)0
ns/iter (± 0
)+∞
lens_path_read_mut
0.31
ns/iter (± 0.01
)0
ns/iter (± 0
)+∞
lens_path_read_ref
0.31
ns/iter (± 0.01
)0
ns/iter (± 0
)+∞
lens_path_read_value
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
normal_path_read_mut
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
normal_path_read_ref
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
normal_path_read_value
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
std_add_i32
0.31
ns/iter (± 0.00
)0
ns/iter (± 0
)+∞
This comment was automatically generated by workflow using github-action-benchmark.
CC: @lloydmeta