aboutsummaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-17 02:31:14 -0700
committerFuwn <[email protected]>2022-03-17 02:31:14 -0700
commitf5a8602748eff4bafea5fd37ffc270f7892c19c8 (patch)
tree7b9dc9b9188a5f967ac19919926f8f3b1b0d86ef /build.rs
parentfeat: 0.1.0 :star: (diff)
downloadcli-f5a8602748eff4bafea5fd37ffc270f7892c19c8.tar.xz
cli-f5a8602748eff4bafea5fd37ffc270f7892c19c8.zip
fix(build): remove vergen
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/build.rs b/build.rs
index 5512a66..bf80569 100644
--- a/build.rs
+++ b/build.rs
@@ -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());
+}