Skip to content

Commit 6e3eb66

Browse files
committed
Fixes for esp-config and esp-storage
1 parent a258ba9 commit 6e3eb66

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

esp-config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ This crate is guaranteed to compile when using the latest stable Rust version at
5252

5353
Licensed under either of:
5454

55-
- Apache License, Version 2.0 ([LICENSE-APACHE](../LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
56-
- MIT license ([LICENSE-MIT](../LICENSE-MIT) or http://opensource.org/licenses/MIT)
55+
- Apache License, Version 2.0 ([LICENSE-APACHE](../LICENSE-APACHE) or <http://www.apache.org/licenses/LICENSE-2.0>)
56+
- MIT license ([LICENSE-MIT](../LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
5757

5858
at your option.
5959

xtask/src/lib.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,14 @@ pub fn build_documentation(
149149
let args = builder.build();
150150
log::debug!("{args:#?}");
151151

152+
let mut envs = vec![("RUSTDOCFLAGS", "--cfg docsrs --cfg not_really_docsrs")];
153+
// Special case: `esp-storage` requires the optimization level to be 2 or 3:
154+
if package == Package::EspStorage {
155+
envs.push(("CARGO_PROFILE_DEBUG_OPT_LEVEL", "3"));
156+
}
157+
152158
// Execute `cargo doc` from the package root:
153-
cargo::run_with_env(
154-
&args,
155-
&package_path,
156-
[("RUSTDOCFLAGS", "--cfg docsrs --cfg not_really_docsrs")],
157-
false,
158-
)?;
159+
cargo::run_with_env(&args, &package_path, envs, false)?;
159160

160161
// Build up the path at which the built documentation can be found:
161162
let mut docs_path = workspace.join(package.to_string()).join("target");

0 commit comments

Comments
 (0)