mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Update src/doc/src/reference/build-script-examples.md
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
This commit is contained in:
parent
3654e61843
commit
f64f11d518
@ -440,7 +440,7 @@ script looks something [like
|
|||||||
this](https://github.com/sfackler/rust-openssl/blob/dc72a8e2c429e46c275e528b61a733a66e7877fc/openssl-sys/build/main.rs#L216):
|
this](https://github.com/sfackler/rust-openssl/blob/dc72a8e2c429e46c275e528b61a733a66e7877fc/openssl-sys/build/main.rs#L216):
|
||||||
|
|
||||||
```rust,ignore
|
```rust,ignore
|
||||||
println!("cargo:version_number={openssl_version:x}");
|
println!("cargo::metadata=version_number={openssl_version:x}");
|
||||||
```
|
```
|
||||||
|
|
||||||
This instruction causes the `DEP_OPENSSL_VERSION_NUMBER` environment variable
|
This instruction causes the `DEP_OPENSSL_VERSION_NUMBER` environment variable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user