forked from RustPython/RustPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
156 lines (137 loc) · 4.91 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[package]
name = "rustpython"
version = "0.3.0"
authors = ["RustPython Team"]
edition = "2021"
rust-version = "1.67.1"
description = "A python interpreter written in rust."
repository = "https://github.com/RustPython/RustPython"
license = "MIT"
include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
[workspace]
resolver = "2"
members = [
"compiler", "compiler/core", "compiler/codegen",
".", "common", "derive", "jit", "vm", "pylib", "stdlib", "wasm/lib", "derive-impl",
]
[workspace.dependencies]
rustpython-compiler-core = { path = "compiler/core", version = "0.3.0" }
rustpython-compiler = { path = "compiler", version = "0.3.0" }
rustpython-codegen = { path = "compiler/codegen", version = "0.3.0" }
rustpython-common = { path = "common", version = "0.3.0" }
rustpython-derive = { path = "derive", version = "0.3.0" }
rustpython-derive-impl = { path = "derive-impl", version = "0.3.0" }
rustpython-jit = { path = "jit", version = "0.3.0" }
rustpython-vm = { path = "vm", default-features = false, version = "0.3.0" }
rustpython-pylib = { path = "pylib", version = "0.3.0" }
rustpython-stdlib = { path = "stdlib", default-features = false, version = "0.3.0" }
rustpython-doc = { git = "https://github.com/RustPython/__doc__", tag = "0.3.0", version = "0.3.0" }
rustpython-literal = { git = "https://github.com/RustPython/Parser.git", rev = "13cae0af64d0a23de95f08c0210e97ad74d155e9" }
rustpython-parser-core = { git = "https://github.com/RustPython/Parser.git", rev = "13cae0af64d0a23de95f08c0210e97ad74d155e9" }
rustpython-parser = { git = "https://github.com/RustPython/Parser.git", rev = "13cae0af64d0a23de95f08c0210e97ad74d155e9" }
rustpython-ast = { git = "https://github.com/RustPython/Parser.git", rev = "13cae0af64d0a23de95f08c0210e97ad74d155e9" }
rustpython-format = { git = "https://github.com/RustPython/Parser.git", rev = "13cae0af64d0a23de95f08c0210e97ad74d155e9" }
# rustpython-literal = { path = "../RustPython-parser/literal" }
# rustpython-parser-core = { path = "../RustPython-parser/core" }
# rustpython-parser = { path = "../RustPython-parser/parser" }
# rustpython-ast = { path = "../RustPython-parser/ast" }
# rustpython-format = { path = "../RustPython-parser/format" }
ahash = "0.8.3"
anyhow = "1.0.45"
ascii = "1.0"
atty = "0.2.14"
bitflags = "2.4.0"
bstr = "0.2.17"
cfg-if = "1.0"
chrono = "0.4.31"
crossbeam-utils = "0.8.16"
flame = "0.2.2"
glob = "0.3"
hex = "0.4.3"
indexmap = "1.8.1"
insta = "1.33.0"
itertools = "0.11.0"
is-macro = "0.3.0"
libc = "0.2.133"
log = "0.4.16"
nix = "0.26"
malachite-bigint = { version = "0.1.0" }
malachite-q = "0.3.2"
malachite-base = "0.3.2"
num-complex = "0.4.0"
num-integer = "0.1.44"
num-traits = "0.2"
num_enum = "0.5.7"
once_cell = "1.18"
parking_lot = "0.12.1"
paste = "1.0.7"
rand = "0.8.5"
rustyline = "11"
serde = { version = "1.0.133", default-features = false }
schannel = "0.1.22"
static_assertions = "1.1"
syn = "1.0.91"
thiserror = "1.0"
thread_local = "1.1.4"
unicode_names2 = "1.1.0"
widestring = "0.5.1"
[features]
default = ["threading", "stdlib", "zlib", "importlib"]
importlib = ["rustpython-vm/importlib"]
encodings = ["rustpython-vm/encodings"]
stdlib = ["rustpython-stdlib", "rustpython-pylib", "encodings"]
flame-it = ["rustpython-vm/flame-it", "flame", "flamescope"]
freeze-stdlib = ["rustpython-vm/freeze-stdlib", "rustpython-pylib?/freeze-stdlib"]
jit = ["rustpython-vm/jit"]
threading = ["rustpython-vm/threading", "rustpython-stdlib/threading"]
zlib = ["stdlib", "rustpython-stdlib/zlib"]
bz2 = ["stdlib", "rustpython-stdlib/bz2"]
ssl = ["rustpython-stdlib/ssl"]
ssl-vendor = ["rustpython-stdlib/ssl-vendor"]
[dependencies]
rustpython-compiler = { workspace = true }
rustpython-pylib = { workspace = true, optional = true }
rustpython-stdlib = { workspace = true, optional = true }
rustpython-vm = { workspace = true, features = ["compiler"] }
rustpython-parser = { workspace = true }
atty = { workspace = true }
cfg-if = { workspace = true }
log = { workspace = true }
flame = { workspace = true, optional = true }
clap = "2.34"
dirs = { package = "dirs-next", version = "2.0.0" }
env_logger = { version = "0.9.0", default-features = false, features = ["atty", "termcolor"] }
flamescope = { version = "0.1.2", optional = true }
[target.'cfg(windows)'.dependencies]
libc = { workspace = true }
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
rustyline = { workspace = true }
[dev-dependencies]
cpython = "0.7.0"
criterion = "0.3.5"
python3-sys = "0.7.1"
[[bench]]
name = "execution"
harness = false
[[bench]]
name = "microbenchmarks"
harness = false
[[bin]]
name = "rustpython"
path = "src/main.rs"
[profile.dev.package."*"]
opt-level = 3
[profile.test]
opt-level = 3
# https://github.com/rust-lang/rust/issues/92869
# lto = "thin"
[profile.bench]
lto = "thin"
codegen-units = 1
opt-level = 3
[profile.release]
lto = "thin"
[patch.crates-io]
# REDOX START, Uncomment when you want to compile/check with redoxer
# nix = { git = "https://github.com/coolreader18/nix", branch = "0.26.2-redox" }
# REDOX END