diff options
| author | Fuwn <[email protected]> | 2022-03-17 02:31:14 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-17 02:31:14 -0700 |
| commit | f5a8602748eff4bafea5fd37ffc270f7892c19c8 (patch) | |
| tree | 7b9dc9b9188a5f967ac19919926f8f3b1b0d86ef /build.rs | |
| parent | feat: 0.1.0 :star: (diff) | |
| download | cli-f5a8602748eff4bafea5fd37ffc270f7892c19c8.tar.xz cli-f5a8602748eff4bafea5fd37ffc270f7892c19c8.zip | |
fix(build): remove vergen
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -16,4 +16,9 @@ // Copyright (C) 2022-2022 Fuwn <[email protected]> // SPDX-License-Identifier: GPL-3.0-only -fn main() -> anyhow::Result<()> { vergen::vergen(vergen::Config::default()) } +use std::env::var; + +fn main() { + println!("cargo:rustc-env=TARGET={}", var("TARGET").unwrap()); + println!("cargo:rustc-env=PROFILE={}", var("PROFILE").unwrap()); +} |