| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
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 | 1 年前 | |
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 | 1 年前 | |
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 | 1 年前 | |
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 | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |