Skip to content

Commit bd35940

Browse files
committed
std feature is removed
1 parent 43744d7 commit bd35940

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
toolchain: ["stable"]
19-
features: ["--features orx-parallel", "--features std", "--features serde"]
19+
features: ["--features orx-parallel", "--features serde"]
2020
no_std_features: ["--features serde"]
2121

2222
steps:

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ serde_json = { version = "1.0.140", default-features = false, features = [
3030
test-case = { version = "3.3.1", default-features = false }
3131

3232
[features]
33-
default = ["orx-parallel", "std"]
34-
std = []
33+
default = ["orx-parallel"]
3534
serde = ["dep:serde"]
3635

3736
[[bench]]

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,15 @@ Alternatively, we can turn a mutable node into an [`into_walk`](https://docs.rs/
132132

133133
## Features
134134

135-
* **orx-parallel**: Tree allows efficient parallel processing through [concurrent iterators](https://crates.io/crates/orx-concurrent-iter) and [parallel iterators](https://crates.io/crates/orx-parallel). This feature is added as default and requires std; hence, please use `cargo add orx-tree --no-default-features` for no-std use cases.
135+
* **orx-parallel**: Tree allows efficient parallel processing through [concurrent iterators](https://crates.io/crates/orx-concurrent-iter) and [parallel iterators](https://crates.io/crates/orx-parallel).
136+
* This feature is added as default and requires **std**; hence, please use `cargo add orx-tree --no-default-features` for **no-std** use cases.
136137
* Currently, parallel iteration over all nodes of the tree in arbitrary order is supported by methods [`par`](https://docs.rs/orx-tree/latest/orx_tree/struct.Tree.html#method.par) and [`into_par`](https://docs.rs/orx-tree/latest/orx_tree/struct.Tree.html#method.into_par).
137138
* Parallelization of all walks or traversals in particular order are under development.
138139
* Parallelization examples can be found in [`demo_parallelization`](https://github.com/orxfun/orx-tree/blob/main/examples/demo_parallelization.rs) example.
139140
* Importantly note that the tree defines its own concurrent iterators, and hence, allows for efficient computation, which is often not possible with generic implementations such as rayon's `par_bridge`. In order to check the impact in performance, you may use the lightweight benchmark example [`bench_parallelization`](https://github.com/orxfun/orx-linked-list/blob/main/examples/bench_parallelization.rs):
140141
* `Sequential computation over Tree : 18.96s`
141142
* `Parallelized over Tree using orx-parallel : 6.02s`
142143
* `Parallelized over Tree using rayon's par-bridge : 81.10s`
143-
144-
* **std**: This crate supports no-std; however, "std" feature is included as a default feature. Please use `cargo add orx-tree --no-default-features` for no-std use cases.
145144

146145
* **serde**: Tree implements `Serialize` and `Deserialize` traits; the "serde" feature needs to be added when required. It uses a linearized representation of the tree as a [`DepthFirstSequence`](https://docs.rs/orx-tree/latest/orx_tree/struct.DepthFirstSequence.html). You may find de-serialization examples in the corresponding [test file](https://github.com/orxfun/orx-tree/blob/main/tests/serde.rs).
147146

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)]
1313
#![no_std]
1414

15-
#[cfg(any(test, feature = "std"))]
15+
#[cfg(test)]
1616
extern crate std;
1717

1818
extern crate alloc;

0 commit comments

Comments
 (0)