From 6635f7188bc4219d46d44a658e5b64d5cb7ff4ed Mon Sep 17 00:00:00 2001 From: Shunsuke Shibayama Date: Sat, 22 Oct 2022 21:49:35 +0900 Subject: [PATCH] Update version (nightly) --- Cargo.lock | 8 ++++---- Cargo.toml | 10 +++++----- compiler/erg_compiler/Cargo.toml | 4 ++-- compiler/erg_compiler/build.rs | 8 ++++++-- compiler/erg_parser/Cargo.toml | 2 +- 5 files changed, 18 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 727a953f..c0dd2fd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 3 [[package]] name = "erg" -version = "0.5.11-nightly.3" +version = "0.5.11-nightly.4" dependencies = [ "erg_common", "erg_compiler", @@ -13,7 +13,7 @@ dependencies = [ [[package]] name = "erg_common" -version = "0.5.11-nightly.3" +version = "0.5.11-nightly.4" dependencies = [ "hermit-abi", "libc", @@ -22,7 +22,7 @@ dependencies = [ [[package]] name = "erg_compiler" -version = "0.5.11-nightly.3" +version = "0.5.11-nightly.4" dependencies = [ "erg_common", "erg_parser", @@ -30,7 +30,7 @@ dependencies = [ [[package]] name = "erg_parser" -version = "0.5.11-nightly.3" +version = "0.5.11-nightly.4" dependencies = [ "erg_common", ] diff --git a/Cargo.toml b/Cargo.toml index 87f436c6..199cfcfb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "erg" -version = "0.5.11-nightly.3" +version = "0.5.11-nightly.4" description = "The Erg programming language" authors = ["erg-lang team "] license = "MIT OR Apache-2.0" @@ -18,7 +18,7 @@ members = [ ] [workspace.package] -version = "0.5.11-nightly.3" +version = "0.5.11-nightly.4" authors = ["erg-lang team "] license = "MIT OR Apache-2.0" edition = "2021" @@ -50,9 +50,9 @@ traditional_chinese = [ pre-commit = [] [dependencies] -erg_common = { version = "0.5.11-nightly.3", path = "./compiler/erg_common" } -erg_parser = { version = "0.5.11-nightly.3", path = "./compiler/erg_parser" } -erg_compiler = { version = "0.5.11-nightly.3", path = "./compiler/erg_compiler" } +erg_common = { version = "0.5.11-nightly.4", path = "./compiler/erg_common" } +erg_parser = { version = "0.5.11-nightly.4", path = "./compiler/erg_parser" } +erg_compiler = { version = "0.5.11-nightly.4", path = "./compiler/erg_compiler" } # [workspace] # member = ["cm", "dyne"] diff --git a/compiler/erg_compiler/Cargo.toml b/compiler/erg_compiler/Cargo.toml index 34d37e4a..1864d0a0 100644 --- a/compiler/erg_compiler/Cargo.toml +++ b/compiler/erg_compiler/Cargo.toml @@ -24,8 +24,8 @@ traditional_chinese = [ ] [dependencies] -erg_common = { version = "0.5.11-nightly.3", path = "../erg_common" } -erg_parser = { version = "0.5.11-nightly.3", path = "../erg_parser" } +erg_common = { version = "0.5.11-nightly.4", path = "../erg_common" } +erg_parser = { version = "0.5.11-nightly.4", path = "../erg_parser" } [lib] path = "lib.rs" diff --git a/compiler/erg_compiler/build.rs b/compiler/erg_compiler/build.rs index eb97f61d..76eec292 100644 --- a/compiler/erg_compiler/build.rs +++ b/compiler/erg_compiler/build.rs @@ -16,11 +16,15 @@ fn main() -> std::io::Result<()> { .to_string() + "/.erg"; if !path::Path::new(&erg_path).exists() { - fs::create_dir(&erg_path)?; + fs::create_dir(&erg_path).unwrap_or_else(|_| { + eprintln!("failed to create the directory: {erg_path}"); + }); } println!("cargo:rustc-env=CARGO_ERG_PATH={erg_path}"); // create a std library in ".erg" - copy_dir(&erg_path, "lib")?; + copy_dir(&erg_path, "lib").unwrap_or_else(|_| { + eprintln!("failed to copy the std library to {erg_path}"); + }); Ok(()) } diff --git a/compiler/erg_parser/Cargo.toml b/compiler/erg_parser/Cargo.toml index acbe1d07..d6e768ba 100644 --- a/compiler/erg_parser/Cargo.toml +++ b/compiler/erg_parser/Cargo.toml @@ -16,7 +16,7 @@ simplified_chinese = ["erg_common/simplified_chinese"] traditional_chinese = ["erg_common/traditional_chinese"] [dependencies] -erg_common = { version = "0.5.11-nightly.3", path = "../erg_common" } +erg_common = { version = "0.5.11-nightly.4", path = "../erg_common" } [lib] path = "lib.rs"