mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 03:21:06 +00:00
Remove native deps: openssl-sys, git2-sys, libssh2-sys (#14302)
* Remove native deps: openssl-sys, git2-sys, libssh2-sys Enables substrate master compiles first time on more machines. (E.g. not needing OPENSSL_DEV_LIB to be correctly configured.) * cargo fmt * Remove newline * Update utils/frame/generate-bags/src/lib.rs Co-authored-by: Bastian Köcher <git@kchr.de> * remove trailing new line --------- Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
@@ -17,5 +17,4 @@ pallet-staking = { version = "4.0.0-dev", path = "../../../frame/staking" }
|
||||
|
||||
# third party
|
||||
chrono = { version = "0.4.19" }
|
||||
git2 = { version = "0.16.0", default-features = false }
|
||||
num-format = "0.4.3"
|
||||
|
||||
@@ -89,8 +89,11 @@ fn existential_weight<T: pallet_staking::Config>(
|
||||
/// Just searches the git working directory root for files matching certain patterns; it's
|
||||
/// pretty naive.
|
||||
fn path_to_header_file() -> Option<PathBuf> {
|
||||
let repo = git2::Repository::open_from_env().ok()?;
|
||||
let workdir = repo.workdir()?;
|
||||
let mut workdir: &Path = &std::env::current_dir().ok()?;
|
||||
while !workdir.join(".git").exists() {
|
||||
workdir = workdir.parent()?;
|
||||
}
|
||||
|
||||
for file_name in &["HEADER-APACHE2", "HEADER-GPL3", "HEADER", "file_header.txt"] {
|
||||
let path = workdir.join(file_name);
|
||||
if path.exists() {
|
||||
|
||||
Reference in New Issue
Block a user