-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Cargo.toml
104 lines (95 loc) · 3.5 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "erg"
description = "The Erg programming language"
documentation = "https://docs.rs/erg"
keywords = ["erg", "programming-language"]
build = "build.rs"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
repository.workspace = true
homepage.workspace = true
# These are checked by main.yml#publish-nightly
[workspace]
members = [
"crates/erg_common",
"crates/erg_compiler",
"crates/erg_linter/",
"crates/erg_parser",
"crates/els",
"crates/erg_proc_macros/",
]
[workspace.package]
version = "0.6.49-nightly.4"
authors = ["erg-lang team <[email protected]>"]
license = "MIT OR Apache-2.0"
edition = "2021"
repository = "https://github.com/erg-lang/erg"
homepage = "https://erg-lang.org/"
[features]
default = ["parallel"]
# when "debug" feature is turned on, that of the following crates will also be turned on.
debug = ["erg_common/debug", "erg_parser/debug", "erg_compiler/debug", "erg_linter/debug"] # "els/debug"
backtrace = ["erg_common/backtrace", "els/backtrace"]
japanese = [
"erg_common/japanese",
"erg_parser/japanese",
"erg_compiler/japanese",
"els/japanese",
"erg_linter/japanese",
]
simplified_chinese = [
"erg_common/simplified_chinese",
"erg_parser/simplified_chinese",
"erg_compiler/simplified_chinese",
"els/simplified_chinese",
"erg_linter/simplified_chinese",
]
traditional_chinese = [
"erg_common/traditional_chinese",
"erg_parser/traditional_chinese",
"erg_compiler/traditional_chinese",
"els/traditional_chinese",
"erg_linter/traditional_chinese",
]
unicode = ["erg_common/unicode", "erg_parser/unicode", "erg_compiler/unicode", "els/unicode", "erg_linter/unicode"]
pretty = ["erg_common/pretty", "erg_parser/pretty", "erg_compiler/pretty", "els/pretty", "erg_linter/pretty"]
large_thread = [
"erg_common/large_thread",
"erg_parser/large_thread",
"erg_compiler/large_thread",
"els/large_thread",
"erg_linter/large_thread",
]
py_compat = ["erg_compiler/py_compat", "els/py_compat"]
gal = ["erg_common/gal", "erg_compiler/gal"]
els = ["erg_common/els", "erg_compiler/els", "dep:els"]
full-repl = ["erg_common/full-repl"]
full = ["els", "full-repl", "unicode", "pretty"]
experimental = ["erg_common/experimental", "erg_parser/experimental", "erg_compiler/experimental", "erg_linter/experimental"]
log-level-error = ["erg_common/log-level-error", "erg_parser/log-level-error", "erg_compiler/log-level-error", "erg_linter/log-level-error"]
parallel = ["erg_common/parallel", "erg_parser/parallel", "erg_compiler/parallel", "erg_linter/parallel"]
[workspace.dependencies]
erg_common = { version = "0.6.49-nightly.4", path = "./crates/erg_common" }
erg_parser = { version = "0.6.49-nightly.4", path = "./crates/erg_parser" }
erg_compiler = { version = "0.6.49-nightly.4", path = "./crates/erg_compiler" }
erg_linter = { version = "0.6.49-nightly.4", path = "./crates/erg_linter" }
els = { version = "0.1.61-nightly.4", path = "./crates/els" }
erg_proc_macros = { version = "0.6.49-nightly.4", path = "./crates/erg_proc_macros" }
pyo3 = { version = "0.21", features = ["extension-module"] }
[dependencies]
erg_common = { workspace = true }
erg_parser = { workspace = true }
erg_compiler = { workspace = true }
erg_linter = { workspace = true }
els = { workspace = true, optional = true, features = ["lint"] }
[build-dependencies]
erg_common = { workspace = true }
[lib]
path = "src/lib.rs"
# [profile.release]
# panic = 'abort'
[profile.opt-with-dbg]
inherits = "release"
debug = true