Skip to content

ctypes implementation #5488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
406 changes: 215 additions & 191 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ license.workspace = true

[features]
default = ["threading", "stdlib", "zlib", "importlib"]
ctypes = ["rustpython-vm/ctypes"]
importlib = ["rustpython-vm/importlib"]
encodings = ["rustpython-vm/encodings"]
stdlib = ["rustpython-stdlib", "rustpython-pylib", "encodings"]
Expand Down
2 changes: 1 addition & 1 deletion jit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cranelift-jit = "0.88.0"
cranelift-module = "0.88.0"

[dependencies.libffi]
version = "3.1.0"
version = "3.2.0"
features = ["system"]

[dev-dependencies]
Expand Down
7 changes: 7 additions & 0 deletions match_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Test match statement
x = 1
match x:
case 1:
print("one")
case 2:
print("two")
12 changes: 9 additions & 3 deletions vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ codegen = ["rustpython-codegen", "ast"]
parser = ["rustpython-parser", "ast"]
serde = ["dep:serde"]
wasmbind = ["chrono/wasmbind", "getrandom/js", "wasm-bindgen"]
ctypes = []

[dependencies]
rustpython-compiler = { workspace = true, optional = true }
Expand Down Expand Up @@ -87,9 +88,14 @@ unicode_names2 = { workspace = true }
# https://github.com/RustPython/RustPython/pull/832#discussion_r275428939
unicode-casing = "0.1.0"
# update version all at the same time
unic-ucd-bidi = "0.9.0"
unic-ucd-category = "0.9.0"
unic-ucd-ident = "0.9.0"
unic-ucd-bidi = "0.9.0"
unic-ucd-category = "0.9.0"
unic-ucd-ident = "0.9.0"

# ctypes
libloading = "0.8.6"
libffi = "3.2.0"
widestring = "1.1.0"

[target.'cfg(unix)'.dependencies]
rustix = { workspace = true }
Expand Down
Loading
Loading