Skip to content

Commit 1208416

Browse files
committed
0.3.0 release
1 parent e5cea3a commit 1208416

File tree

15 files changed

+83
-74
lines changed

15 files changed

+83
-74
lines changed

Cargo.lock

+16-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+24-25
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustpython"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["RustPython Team"]
55
edition = "2021"
66
rust-version = "1.67.1"
@@ -17,23 +17,23 @@ members = [
1717
]
1818

1919
[workspace.dependencies]
20-
rustpython-compiler-core = { path = "compiler/core" }
21-
rustpython-compiler = { path = "compiler" }
22-
rustpython-codegen = { path = "compiler/codegen" }
23-
rustpython-common = { path = "common" }
24-
rustpython-derive = { path = "derive" }
25-
rustpython-derive-impl = { path = "derive-impl" }
26-
rustpython-jit = { path = "jit" }
27-
rustpython-vm = { path = "vm" }
28-
rustpython-pylib = { path = "pylib" }
29-
rustpython-stdlib = { path = "stdlib" }
30-
rustpython-doc = { git = "https://github.com/RustPython/__doc__", branch = "main" }
31-
32-
rustpython-literal = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0" }
33-
rustpython-parser-core = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0" }
34-
rustpython-parser = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0" }
35-
rustpython-ast = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0" }
36-
rustpython-format = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0" }
20+
rustpython-compiler-core = { path = "compiler/core", version = "0.3.0" }
21+
rustpython-compiler = { path = "compiler", version = "0.3.0" }
22+
rustpython-codegen = { path = "compiler/codegen", version = "0.3.0" }
23+
rustpython-common = { path = "common", version = "0.3.0" }
24+
rustpython-derive = { path = "derive", version = "0.3.0" }
25+
rustpython-derive-impl = { path = "derive-impl", version = "0.3.0" }
26+
rustpython-jit = { path = "jit", version = "0.3.0" }
27+
rustpython-vm = { path = "vm", version = "0.3.0" }
28+
rustpython-pylib = { path = "pylib", version = "0.3.0" }
29+
rustpython-stdlib = { path = "stdlib", version = "0.3.0" }
30+
rustpython-doc = { git = "https://github.com/RustPython/__doc__", tag = "0.3.0", version = "0.3.0" }
31+
32+
rustpython-literal = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0", version = "0.3.0" }
33+
rustpython-parser-core = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0", version = "0.3.0" }
34+
rustpython-parser = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0", version = "0.3.0" }
35+
rustpython-ast = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0", version = "0.3.0" }
36+
rustpython-format = { git = "https://github.com/RustPython/Parser.git", tag = "0.3.0", version = "0.3.0" }
3737
# rustpython-literal = { path = "../RustPython-parser/literal" }
3838
# rustpython-parser-core = { path = "../RustPython-parser/core" }
3939
# rustpython-parser = { path = "../RustPython-parser/parser" }
@@ -48,7 +48,7 @@ bitflags = "2.2.1"
4848
bstr = "0.2.17"
4949
cfg-if = "1.0"
5050
chrono = "0.4.19"
51-
crossbeam-utils = "0.8.9"
51+
crossbeam-utils = "0.8.16"
5252
flame = "0.2.2"
5353
glob = "0.3"
5454
hex = "0.4.3"
@@ -94,11 +94,10 @@ ssl = ["rustpython-stdlib/ssl"]
9494
ssl-vendor = ["rustpython-stdlib/ssl-vendor"]
9595

9696
[dependencies]
97-
rustpython-compiler = { path = "compiler", version = "0.2.0" }
98-
rustpython-pylib = { path = "pylib", optional = true, default-features = false }
99-
rustpython-stdlib = { path = "stdlib", optional = true, default-features = false }
100-
rustpython-vm = { path = "vm", version = "0.2.0", default-features = false, features = ["compiler"] }
101-
97+
rustpython-compiler = { workspace = true }
98+
rustpython-pylib = { workspace = true, optional = true }
99+
rustpython-stdlib = { workspace = true, optional = true }
100+
rustpython-vm = { workspace = true, default-features = false, features = ["compiler"] }
102101
rustpython-parser = { workspace = true }
103102

104103
atty = { workspace = true }
@@ -120,7 +119,7 @@ rustyline = { workspace = true }
120119
[dev-dependencies]
121120
cpython = "0.7.0"
122121
criterion = "0.3.5"
123-
python3-sys = "0.7.0"
122+
python3-sys = "0.7.1"
124123

125124
[[bench]]
126125
name = "execution"

benches/execution.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ use criterion::{
33
criterion_group, criterion_main, Bencher, BenchmarkGroup, BenchmarkId, Criterion, Throughput,
44
};
55
use rustpython_compiler::Mode;
6-
use rustpython_parser::parse_program;
6+
use rustpython_parser::ast;
7+
use rustpython_parser::Parse;
78
use rustpython_vm::{Interpreter, PyResult};
89
use std::collections::HashMap;
910
use std::path::Path;
@@ -51,7 +52,7 @@ pub fn benchmark_file_execution(
5152
pub fn benchmark_file_parsing(group: &mut BenchmarkGroup<WallTime>, name: &str, contents: &str) {
5253
group.throughput(Throughput::Bytes(contents.len() as u64));
5354
group.bench_function(BenchmarkId::new("rustpython", name), |b| {
54-
b.iter(|| parse_program(contents, name).unwrap())
55+
b.iter(|| ast::Suite::parse(contents, name).unwrap())
5556
});
5657
group.bench_function(BenchmarkId::new("cpython", name), |b| {
5758
let gil = cpython::Python::acquire_gil();

common/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustpython-common"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "General python functions and algorithms for use in RustPython"
55
authors = ["RustPython Team"]
66
edition = "2021"

compiler/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[package]
22
name = "rustpython-compiler"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "A usability wrapper around rustpython-parser and rustpython-compiler-core"
55
authors = ["RustPython Team"]
6+
repository = "https://github.com/RustPython/RustPython"
7+
license = "MIT"
68
edition = "2021"
79

810
[dependencies]

compiler/codegen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustpython-codegen"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Compiler for python code into bytecode for the rustpython VM."
55
authors = ["RustPython Team"]
66
repository = "https://github.com/RustPython/RustPython"

compiler/core/Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
22
name = "rustpython-compiler-core"
33
description = "RustPython specific bytecode."
4-
version = "0.2.0"
4+
version = "0.3.0"
55
authors = ["RustPython Team"]
66
edition = "2021"
77
repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"
99

1010
[dependencies]
11-
rustpython-parser-core = { workspace = true }
11+
rustpython-parser-core = { workspace = true, features=["location"] }
1212

1313
bitflags = { workspace = true }
1414
itertools = { workspace = true }
@@ -17,4 +17,3 @@ num-complex = { workspace = true }
1717
serde = { version = "1.0.133", optional = true, default-features = false, features = ["derive"] }
1818

1919
lz4_flex = "0.9.2"
20-

derive-impl/Cargo.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[package]
22
name = "rustpython-derive-impl"
3-
version = "0.2.0"
3+
version = "0.3.0"
4+
description = "Rust language extensions and macros specific to rustpython."
5+
authors = ["RustPython Team"]
6+
repository = "https://github.com/RustPython/RustPython"
7+
license = "MIT"
48
edition = "2021"
59

610
[dependencies]

derive/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustpython-derive"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Rust language extensions and macros specific to rustpython."
55
authors = ["RustPython Team"]
66
repository = "https://github.com/RustPython/RustPython"
@@ -11,6 +11,6 @@ edition = "2021"
1111
proc-macro = true
1212

1313
[dependencies]
14-
rustpython-compiler = { path = "../compiler", version = "0.2.0" }
15-
rustpython-derive-impl = { path = "../derive-impl" }
14+
rustpython-compiler = { workspace = true }
15+
rustpython-derive-impl = { workspace = true }
1616
syn = { workspace = true }

jit/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustpython-jit"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
description = "Experimental JIT(just in time) compiler for python code."
55
authors = ["RustPython Team"]
66
repository = "https://github.com/RustPython/RustPython"
@@ -21,7 +21,7 @@ cranelift-module = "0.88.0"
2121
libffi = "3.1.0"
2222

2323
[dev-dependencies]
24-
rustpython-derive = { path = "../derive", version = "0.2.0" }
24+
rustpython-derive = { path = "../derive", version = "0.3.0" }
2525

2626
approx = "0.5.1"
2727

pylib/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rustpython-pylib"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
authors = ["RustPython Team"]
55
description = "A subset of the Python standard library for use with RustPython"
66
repository = "https://github.com/RustPython/RustPython"
@@ -13,7 +13,7 @@ freeze-stdlib = []
1313

1414
[dependencies]
1515
rustpython-compiler-core = { workspace = true }
16-
rustpython-derive = { version = "0.2.0", path = "../derive" }
16+
rustpython-derive = { version = "0.3.0", path = "../derive" }
1717

1818
[build-dependencies]
1919
glob = { workspace = true }

stdlib/Cargo.toml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[package]
22
name = "rustpython-stdlib"
3-
version = "0.2.0"
3+
version = "0.3.0"
4+
description = "RustPython standard libraries in Rust."
5+
authors = ["RustPython Team"]
6+
repository = "https://github.com/RustPython/RustPython"
7+
license = "MIT"
48
edition = "2021"
59

610
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -14,9 +18,9 @@ ssl-vendor = ["ssl", "openssl/vendored", "openssl-probe"]
1418

1519
[dependencies]
1620
# rustpython crates
17-
rustpython-derive = { path = "../derive" }
18-
rustpython-vm = { path = "../vm" }
19-
rustpython-common = { path = "../common" }
21+
rustpython-derive = { workspace = true }
22+
rustpython-vm = { workspace = true }
23+
rustpython-common = { workspace = true }
2024

2125
ahash = { workspace = true }
2226
ascii = { workspace = true }

vm/Cargo.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rustpython-vm"
3-
version = "0.2.0"
4-
description = "Rust Python virtual machine."
3+
version = "0.3.0"
4+
description = "RustPython virtual machine."
55
authors = ["RustPython Team"]
66
repository = "https://github.com/RustPython/RustPython"
77
license = "MIT"
@@ -24,11 +24,11 @@ parser = ["rustpython-parser", "ast"]
2424
serde = ["dep:serde"]
2525

2626
[dependencies]
27-
rustpython-compiler = { path = "../compiler", optional = true, version = "0.2.0" }
28-
rustpython-codegen = { path = "../compiler/codegen", optional = true, version = "0.2.0" }
29-
rustpython-common = { path = "../common" }
30-
rustpython-derive = { path = "../derive", version = "0.2.0" }
31-
rustpython-jit = { path = "../jit", optional = true, version = "0.2.0" }
27+
rustpython-compiler = { workspace = true, optional = true }
28+
rustpython-codegen = { workspace = true, optional = true }
29+
rustpython-common = { workspace = true }
30+
rustpython-derive = { workspace = true }
31+
rustpython-jit = { workspace = true, optional = true }
3232

3333
rustpython-ast = { workspace = true, optional = true }
3434
rustpython-parser = { workspace = true, optional = true }

0 commit comments

Comments
 (0)