Bump built from 0.6.1 to 0.7.0 (#567)

* Bump built from 0.6.1 to 0.7.0

Bumps [built](https://github.com/lukaslueg/built) from 0.6.1 to 0.7.0.
- [Changelog](https://github.com/lukaslueg/built/blob/master/CHANGELOG.md)
- [Commits](https://github.com/lukaslueg/built/compare/0.6.1...0.7.0)

---
updated-dependencies:
- dependency-name: built
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* update

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam H. Leventhal <ahl@oxide.computer>
This commit is contained in:
dependabot[bot] 2023-09-25 12:13:23 -07:00 committed by GitHub
parent 255e23bc46
commit 5f79f49ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 15 deletions

20
Cargo.lock generated
View File

@ -206,9 +206,9 @@ dependencies = [
[[package]]
name = "built"
version = "0.6.1"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b99c4cdc7b2c2364182331055623bdf45254fcb679fea565c40c3c11c101889a"
checksum = "1462f4ab147e1378c64dacd28f03a56d4771d93eab6c325265a35355ce47213d"
dependencies = [
"cargo-lock",
"git2",
@ -241,7 +241,7 @@ version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e11c675378efb449ed3ce8de78d75d0d80542fc98487c26aba28eb3b82feac72"
dependencies = [
"semver 1.0.16",
"semver 1.0.19",
"serde",
"toml 0.7.6",
"url",
@ -799,11 +799,11 @@ checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e"
[[package]]
name = "git2"
version = "0.17.2"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b989d6a7ca95a362cf2cfc5ad688b3a467be1f87e480b8dad07fee8c79b0044"
checksum = "12ef350ba88a33b4d524b1d1c79096c9ade5ef8c59395df0e60d1e1889414c0e"
dependencies = [
"bitflags 1.3.2",
"bitflags 2.4.0",
"libc",
"libgit2-sys",
"log",
@ -1078,9 +1078,9 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
[[package]]
name = "libgit2-sys"
version = "0.15.2+1.6.4"
version = "0.16.1+1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a80df2e11fb4a61f4ba2ab42dbe7f74468da143f1a75c74e11dee7c813f694fa"
checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c"
dependencies = [
"cc",
"libc",
@ -1812,9 +1812,9 @@ dependencies = [
[[package]]
name = "semver"
version = "1.0.16"
version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a"
checksum = "ad977052201c6de01a8ef2aa3378c4bd23217a056337d1d6da40468d267a4fb0"
dependencies = [
"serde",
]

View File

@ -23,5 +23,5 @@ serde_json = "1.0"
serde_yaml = "0.9"
[build-dependencies]
built = { version = "0.6", features = ["git2"] }
built = { version = "0.7", features = ["cargo-lock", "git2"] }
project-root = "0.2"

View File

@ -1,10 +1,9 @@
fn main() {
let mut opts = built::Options::default();
opts.set_dependencies(true);
// Copyright 2023 Oxide Computer Company
fn main() {
let src = project_root::get_project_root().unwrap();
let dst = std::path::Path::new(&std::env::var("OUT_DIR").unwrap())
.join("built.rs");
built::write_built_file_with_opts(&opts, src.as_ref(), &dst)
built::write_built_file_with_opts(Some(&src), &dst)
.expect("Failed to acquire build-time information");
}