This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
forked from pca006132/RustPython
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
78 lines (65 loc) · 2.1 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
[package]
name = "rustpython"
version = "0.1.2"
authors = ["RustPython Team"]
edition = "2018"
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 = [
".", "ast", "bytecode", "common", "compiler", "compiler/porcelain",
"derive", "jit", "parser", "vm", "vm/pylib-crate", "wasm/lib",
]
[features]
default = ["threading", "pylib", "zlib"]
flame-it = ["rustpython-vm/flame-it", "flame", "flamescope"]
freeze-stdlib = ["rustpython-vm/freeze-stdlib"]
jit = ["rustpython-vm/jit"]
threading = ["rustpython-vm/threading"]
zlib = ["rustpython-vm/zlib"]
ssl = ["rustpython-vm/ssl"]
ssl-vendor = ["rustpython-vm/ssl-vendor"]
[dependencies]
log = "0.4"
env_logger = { version = "0.8", default-features = false, features = ["atty", "termcolor"] }
clap = "2.33"
rustpython-compiler = { path = "compiler/porcelain", version = "0.1.1" }
rustpython-parser = { path = "parser", version = "0.1.1" }
rustpython-vm = { path = "vm", version = "0.1.1", default-features = false, features = ["compile-parse"] }
pylib = { package = "rustpython-pylib", path = "vm/pylib-crate", version = "0.1.0", optional = true }
dirs = { package = "dirs-next", version = "2.0.0" }
num-traits = "0.2.8"
cfg-if = "1.0"
libc = "0.2"
flame = { version = "0.2", optional = true }
flamescope = { version = "0.1", optional = true }
[target.'cfg(not(target_os = "wasi"))'.dependencies]
rustyline = "8.1"
[dev-dependencies]
cpython = "0.6"
python3-sys = "0.6"
criterion = "0.3"
[[bench]]
name = "execution"
harness = false
[[bench]]
name = "microbenchmarks"
harness = false
[[bin]]
name = "rustpython"
path = "src/main.rs"
[profile.dev.package."*"]
opt-level = 3
[profile.bench]
lto = true
codegen-units = 1
opt-level = 3
[patch.crates-io]
# REDOX START, Uncommment when you want to compile/check with redoxer
# rustyline = { git = "https://github.com/kkawakam/rustyline" }
# # nix = { git = "https://github.com/nix-rust/nix" }
# nix = { git = "https://github.com/coolreader18/nix", branch = "upd-libc" }
# REDOX END