You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -112,7 +112,7 @@ The runtime crate version will align its major and minor versions with the Rust
112
112
All dependencies should be listed inside the workspace's root `Cargo.toml` file.
113
113
This allows us to easily change version of a crate used by the entire repo by modifying the version in a single place.
114
114
115
-
Right now, if **non_std** is required, `default-features = false` must be set in the root `Cargo.toml` file (related to this [issue](https://github.com/rust-lang/cargo/pull/11409)). Otherwise, it will have no effect, causing your compilation to fail.
115
+
Right now, if **no_std** is required, `default-features = false` must be set in the root `Cargo.toml` file (related to this [issue](https://github.com/rust-lang/cargo/pull/11409)). Otherwise, it will have no effect, causing your compilation to fail.
116
116
Also `package` imports aren't properly propagated from root to sub-crates, so defining those should be avoided.
117
117
118
118
Defining _features_ in the root `Cargo.toml` is additive with the features defined in concrete crate's `Cargo.toml`.
@@ -122,7 +122,7 @@ Defining _features_ in the root `Cargo.toml` is additive with the features defin
122
122
1. Check if the dependency is already defined in the root `Cargo.toml`
123
123
1. if **yes**, nothing to do, just take note of the enabled features
124
124
2. if **no**, add it (make sure to use `default-features = false` if dependency is used in _no_std_ context)
125
-
2. Add `new_dependecy = { workspace = true }` to the required crate
125
+
2. Add `new_dependency = { workspace = true }` to the required crate
126
126
3. In case dependency is defined with `default-features = false` but you need it in _std_ context, add `features = ["std"]` to the required crate.
0 commit comments