diff --git a/.cargo/config.toml b/.cargo/config.toml index 4da98a0b..19b46f57 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -12,6 +12,14 @@ cmp = "run -- --mode compile" ex = "run -- --mode exec" read = "run -- --mode read" +dlex = "run --features debug -- --mode lex" +dprs = "run --features debug -- --mode parse" +dlwr = "run --features debug -- --mode lower" +dchk = "run --features debug -- --mode check" +dcmp = "run --features debug -- --mode compile" +dex = "run --features debug -- --mode exec" +dread = "run --features debug -- --mode read" + rd = "run --features debug" rd_ja = "run --features debug --features japanese" rd_zh_cn = "run --features debug --features simplified_chinese" diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 1920302d..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: bug -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**Reproducible code** -Or steps to reproduce the behavior: - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Result** - -**Screenshots (optional)** -If applicable, add screenshots to help explain your problem. - -**OS** - e.g. Windows 11 (WSL2) -If it is an obvious environment-independent bug (e.g. type inference bug), it is not necessary - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 00000000..2d210cad --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,58 @@ +name: 🐛 Bug report +description: Create a report to help us improve +labels: + - bug +body: + - type: textarea + attributes: + label: Describe the bug? + validations: + required: true + + - type: textarea + attributes: + label: Reproducible code + validations: + required: false + + - type: textarea + attributes: + label: Expected result + validations: + required: false + + - type: textarea + attributes: + label: Actual result + validations: + required: false + + - type: textarea + attributes: + label: Additional context + validations: + required: false + + - type: input + attributes: + label: Erg version + validations: + required: true + + - type: input + attributes: + label: Python version + validations: + required: false + + - type: dropdown + attributes: + label: os + options: + - Windows 10 + - Windows 11 + - MacOS 12 (Monterey) + - MacOS 11 (Big Sur) + - Ubuntu + - Linux(other distro) + - Other (write in `Additional context`) diff --git a/Cargo.toml b/Cargo.toml index 6a1ca419..14376a3d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,15 @@ members = [ "compiler/erg_type", ] +[workspace.package] +version = "0.5.8" +authors = ["erg-lang team "] +license = "MIT OR Apache-2.0" +edition = "2021" +repository = "https://github.com/erg-lang/erg" +documentation = "https://docs.rs/erg" +homepage = "https://erg-lang.org/" + [features] # when "debug" feature is turned on, that of the following crates will also be turned on. debug = [ diff --git a/compiler/erg_common/Cargo.toml b/compiler/erg_common/Cargo.toml index b8c3f415..305f0b34 100644 --- a/compiler/erg_common/Cargo.toml +++ b/compiler/erg_common/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "erg_common" -version = "0.5.8" description = "A common components library of Erg" -authors = ["erg-lang team "] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/erg-lang/erg/tree/main/src/erg_common" -documentation = "https://docs.rs/erg_common" -homepage = "https://erg-lang.github.io/" +version.workspace = true +authors.workspace = true +license.workspace = true +edition.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/compiler/erg_compiler/Cargo.toml b/compiler/erg_compiler/Cargo.toml index 74c38e7e..3ec7626a 100644 --- a/compiler/erg_compiler/Cargo.toml +++ b/compiler/erg_compiler/Cargo.toml @@ -1,20 +1,28 @@ [package] name = "erg_compiler" -version = "0.5.8" description = "Centimetre: the Erg compiler" -authors = ["erg-lang team "] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/erg-lang/erg/tree/main/src/compiler/erg_compiler" -documentation = "https://docs.rs/erg_compiler" -homepage = "https://erg-lang.github.io/" +version.workspace = true +authors.workspace = true +license.workspace = true +edition.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true [features] # when "debug" feature is turned on, that of parser will also be turned on. -debug = [ "erg_common/debug", "erg_parser/debug", "erg_type/debug" ] -japanese = [ "erg_common/japanese", "erg_parser/japanese", "erg_type/japanese" ] -simplified_chinese = [ "erg_common/simplified_chinese", "erg_parser/simplified_chinese", "erg_type/simplified_chinese" ] -traditional_chinese = [ "erg_common/traditional_chinese", "erg_parser/traditional_chinese", "erg_type/traditional_chinese" ] +debug = ["erg_common/debug", "erg_parser/debug", "erg_type/debug"] +japanese = ["erg_common/japanese", "erg_parser/japanese", "erg_type/japanese"] +simplified_chinese = [ + "erg_common/simplified_chinese", + "erg_parser/simplified_chinese", + "erg_type/simplified_chinese", +] +traditional_chinese = [ + "erg_common/traditional_chinese", + "erg_parser/traditional_chinese", + "erg_type/traditional_chinese", +] [dependencies] erg_common = { version = "0.5.8", path = "../erg_common" } diff --git a/compiler/erg_parser/Cargo.toml b/compiler/erg_parser/Cargo.toml index 1d33bb67..38288345 100644 --- a/compiler/erg_parser/Cargo.toml +++ b/compiler/erg_parser/Cargo.toml @@ -1,19 +1,19 @@ [package] name = "erg_parser" -version = "0.5.8" description = "The Erg parser" -authors = ["erg-lang team "] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/erg-lang/erg/tree/main/src/erg_compiler/erg_parser" -documentation = "https://docs.rs/erg_parser" -homepage = "https://erg-lang.github.io/" +version.workspace = true +authors.workspace = true +license.workspace = true +edition.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true [features] -debug = [ "erg_common/debug" ] -japanese = [ "erg_common/japanese" ] -simplified_chinese = [ "erg_common/simplified_chinese" ] -traditional_chinese = [ "erg_common/traditional_chinese" ] +debug = ["erg_common/debug"] +japanese = ["erg_common/japanese"] +simplified_chinese = ["erg_common/simplified_chinese"] +traditional_chinese = ["erg_common/traditional_chinese"] [dependencies] erg_common = { version = "0.5.8", path = "../erg_common" } diff --git a/compiler/erg_type/Cargo.toml b/compiler/erg_type/Cargo.toml index 39234fea..3727d03c 100644 --- a/compiler/erg_type/Cargo.toml +++ b/compiler/erg_type/Cargo.toml @@ -1,21 +1,21 @@ [package] name = "erg_type" -version = "0.5.8" description = "APIs for Erg types" -authors = ["erg-lang team "] -license = "MIT OR Apache-2.0" -edition = "2021" -repository = "https://github.com/erg-lang/erg/tree/main/compiler/erg_type" -documentation = "https://docs.rs/erg_type" -homepage = "https://erg-lang.github.io/" +version.workspace = true +authors.workspace = true +license.workspace = true +edition.workspace = true +repository.workspace = true +documentation.workspace = true +homepage.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] -debug = [ "erg_common/debug" ] -japanese = [ "erg_common/japanese" ] -simplified_chinese = [ "erg_common/simplified_chinese" ] -traditional_chinese = [ "erg_common/traditional_chinese" ] +debug = ["erg_common/debug"] +japanese = ["erg_common/japanese"] +simplified_chinese = ["erg_common/simplified_chinese"] +traditional_chinese = ["erg_common/traditional_chinese"] [dependencies] erg_common = { version = "0.5.8", path = "../erg_common" }