Skip to content

Commit 72bd296

Browse files
authored
Merge pull request #112 from mwcproject/peers_discovery
Upgraded git2 to fix Windows build
2 parents 10cfb50 + 974fa6d commit 72bd296

File tree

3 files changed

+10
-42
lines changed

3 files changed

+10
-42
lines changed

Cargo.lock

Lines changed: 8 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ default-features = false
4848
features = ["pancurses-backend"]
4949

5050
[build-dependencies]
51-
built = { version = "0.4", features = ["git2"]}
51+
built = { version = "0.8", features = ["git2"]}
5252

5353
[dev-dependencies]
5454
mwc_chain = { path = "./chain", version = "5.3.9" }

src/build/build.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ fn main() {
3939
}
4040

4141
// build and versioning information
42-
let mut opts = built::Options::default();
43-
opts.set_dependencies(true);
4442
let out_dir_path = format!("{}{}", env::var("OUT_DIR").unwrap(), "/built.rs");
4543
// don't fail the build if something's missing, may just be cargo release
4644
let _ = built::write_built_file_with_opts(
47-
&opts,
48-
Path::new(env!("CARGO_MANIFEST_DIR")),
45+
Some(Path::new(env!("CARGO_MANIFEST_DIR"))),
4946
Path::new(&out_dir_path),
5047
);
5148
}

0 commit comments

Comments
 (0)