Skip to content

Commit d23611d

Browse files
authored
Merge pull request #65 from youknowone/refactor-pyo3
to_pyo3_ast to return &'py + Separate rustpython_ast_pyo3
2 parents e1f02fc + 7d384d8 commit d23611d

File tree

15 files changed

+7188
-7186
lines changed

15 files changed

+7188
-7186
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
1212
resolver = "2"
1313
members = [
1414
"ast", "core", "format", "literal", "parser",
15+
"ast-pyo3",
1516
"ruff_text_size", "ruff_source_location",
1617
]
1718

ast-pyo3/Cargo.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[package]
2+
name = "rustpython-ast-pyo3"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[features]
7+
# This feature is experimental
8+
# It reimplements AST types, but currently both slower than python AST types and limited to use in other API
9+
wrapper = []
10+
11+
[dependencies]
12+
rustpython-ast = { workspace = true, features = ["location"] }
13+
num-complex = { workspace = true }
14+
once_cell = { workspace = true }
15+
16+
pyo3 = { workspace = true, features = ["num-bigint", "num-complex"] }

0 commit comments

Comments
 (0)