Skip to content

Commit efc96c0

Browse files
committed
CHANGE: make the std feature default (breaks no_std)
Software that uses this crate in a no_std environment will now have to clear the `std` flag manually. Rationale: Creating documentation and testing things that require `std` would require a lot conditional compilation tricks. Things would easily go under the Radar when buildiong doc and running tests with `no_std` being the default. Most users likely expect the `std` feature to be enabled by default. Still if it this is a problem we can keep `no_std` being the default with some effort.
1 parent d8c717e commit efc96c0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license = "MIT"
1212
readme = "README.md"
1313

1414
[features]
15-
default = ["atomic_append"]
16-
atomic_append = []
15+
default = ["std", "atomic_append"]
1716
std = []
17+
atomic_append = []
1818

Diff for: README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ If you use this without creating a weak ptr, it is safe. It is unsafe to create
88

99
* `std`
1010
Enables API's that requires stdlib features. Provides more compatibility to `Vec`.
11-
This feature is not enabled by default.
11+
This feature is enabled by default.
12+
* `atomic_append`
13+
Enables the `atomic_push` API's that allows extending a `HeaderVec` with interior
14+
mutability from a single thread by a immutable handle.
15+
This feature is enabled by default.

0 commit comments

Comments
 (0)