Skip to content

Commit 90f6a99

Browse files
committed
Fix docs: Bindeps env vars are passed to build script at runtime
The environment variables are not available through the `env!` macro. Instead, they are passed by cargo when the build script is invoked.
1 parent fc5035d commit 90f6a99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/src/reference/unstable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ bar = { artifact = "cdylib", version = "1.0", target = "wasm32-unknown-unknown"
886886

887887
```rust
888888
fn main() {
889-
wasm::run_file(env!("CARGO_CDYLIB_FILE_BAR"));
889+
wasm::run_file(std::env::var("CARGO_CDYLIB_FILE_BAR").unwrap());
890890
}
891891
```
892892

0 commit comments

Comments
 (0)