Skip to content

Commit 3a57d02

Browse files
committed
build: mark no_std as legacy feature flag
The `no_std` feature flag has no effect, anymore (as already documented in `README.md`). Document this in `Cargo.toml`, but retain it for backwards compatibility. Note that for better cross-package composability, an `std` flag would likely be preferred in the future, over a `no_std` flag. The former allows multiple packages with different preferences on this feature to be combined in a single build, while the latter does not. Hence, suggest that `no_std` as feature flag is a legacy compatibility flag, and will not be used in the future.
1 parent c4c7ae5 commit 3a57d02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ compiler_builtins = { version = "0.1", optional = true }
2424

2525
[features]
2626
default = []
27-
no_std = []
2827
bench = []
2928
rustc-dep-of-std = ['std', 'core', 'compiler_builtins']
29+
30+
# Legacy, now a no-op
31+
no_std = []

0 commit comments

Comments
 (0)