Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1208416

Browse files
committed
0.3.0 release
1 parente5cea3a commit1208416

File tree

15 files changed

+83
-74
lines changed

15 files changed

+83
-74
lines changed

‎Cargo.lock‎

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 24 additions & 25 deletions
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‎

Lines changed: 3 additions & 2 deletions
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
pubfnbenchmark_file_parsing(group:&mutBenchmarkGroup<WallTime>,name:&str,contents:&str){
5253
group.throughput(Throughput::Bytes(contents.len()asu64));
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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 3 additions & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 2 additions & 3 deletions
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‎

Lines changed: 5 additions & 1 deletion
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‎

Lines changed: 3 additions & 3 deletions
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‎

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp