Skip to content

Commit

Permalink
Update built
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Sep 13, 2023
1 parent 485aca6 commit d8b0deb
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 117 deletions.
140 changes: 36 additions & 104 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tikv-jemallocator = { version = "0.5", features = ["background_threads", "unpref
mimalloc = { version = "0.1", default-features = false }

[build-dependencies]
built = { version = "0.6", features = ["git2", "chrono", "semver"] }
built = { version = "0.7", features = ["git2", "chrono", "semver"] }
openssl-src = { version = "300", features = ["weak-crypto"] }

[profile.release]
Expand Down
13 changes: 1 addition & 12 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
use std::{env, path::Path};

use built::Options;

fn main() {
let mut options = Options::default();
options.set_compiler(false).set_ci(false).set_features(false).set_cfg(false);
built::write_built_file_with_opts(
&options,
env::var("CARGO_MANIFEST_DIR").unwrap().as_ref(),
&Path::new(&env::var("OUT_DIR").unwrap()).join("built.rs"),
)
.expect("Failed to acquire build-time information");
built::write_built_file().expect("Failed to acquire build-time information");
}

0 comments on commit d8b0deb

Please sign in to comment.