mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
10 lines
339 B
Rust
10 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('.', "_")
|
|
);
|
|
}
|