Skip to content

Commit 97043dc

Browse files
committed
rustpython-cpython
1 parent 0e6e256 commit 97043dc

File tree

5 files changed

+376
-0
lines changed

5 files changed

+376
-0
lines changed

Cargo.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ ssl-rustls = ["ssl", "rustpython-stdlib/ssl-rustls"]
2525
ssl-openssl = ["ssl", "rustpython-stdlib/ssl-openssl"]
2626
ssl-vendor = ["ssl-openssl", "rustpython-stdlib/ssl-vendor"]
2727
tkinter = ["rustpython-stdlib/tkinter"]
28+
cpython = ["dep:rustpython-cpython"]
2829

2930
[build-dependencies]
3031
winresource = "0.1"
@@ -34,6 +35,7 @@ rustpython-compiler = { workspace = true }
3435
rustpython-pylib = { workspace = true, optional = true }
3536
rustpython-stdlib = { workspace = true, optional = true, features = ["compiler"] }
3637
rustpython-vm = { workspace = true, features = ["compiler"] }
38+
rustpython-cpython = { workspace = true, optional = true }
3739
ruff_python_parser = { workspace = true }
3840

3941
cfg-if = { workspace = true }
@@ -150,6 +152,7 @@ rustpython-stdlib = { path = "crates/stdlib", default-features = false, version
150152
rustpython-sre_engine = { path = "crates/sre_engine", version = "0.4.0" }
151153
rustpython-wtf8 = { path = "crates/wtf8", version = "0.4.0" }
152154
rustpython-doc = { path = "crates/doc", version = "0.4.0" }
155+
rustpython-cpython = { path = "crates/cpython", version = "0.4.0" }
153156

154157
ruff_python_parser = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }
155158
ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.14.1" }

crates/cpython/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "rustpython-cpython"
3+
description = "RustPython to CPython bridge via PyO3"
4+
version.workspace = true
5+
authors.workspace = true
6+
edition.workspace = true
7+
rust-version.workspace = true
8+
repository.workspace = true
9+
license.workspace = true
10+
11+
[dependencies]
12+
rustpython-vm = { workspace = true }
13+
rustpython-derive = { workspace = true }
14+
pyo3 = { version = "0.26", features = ["auto-initialize"] }
15+
16+
[lints]
17+
workspace = true

0 commit comments

Comments
 (0)