mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
11 lines
339 B
Rust
11 lines
339 B
Rust
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
||
|
|
||
|
fn main() {
|
||
|
// we use a changing variable name to make it harder to depend on this
|
||
|
let crate_version = env!("CARGO_PKG_VERSION");
|
||
|
println!(
|
||
|
"cargo:rustc-env=NODE_GLOBAL_THIS_NAME=__DENO_NODE_GLOBAL_THIS_{}__",
|
||
|
crate_version.replace('.', "_")
|
||
|
);
|
||
|
}
|