Skip to content

Commit 12601d0

Browse files
committed
integrate sre_engine crate to workspace
1 parent b3a606d commit 12601d0

File tree

4 files changed

+42
-11
lines changed

4 files changed

+42
-11
lines changed

Cargo.lock

Lines changed: 34 additions & 4 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
1313
resolver = "2"
1414
members = [
1515
"compiler", "compiler/core", "compiler/codegen",
16-
".", "common", "derive", "jit", "vm", "pylib", "stdlib", "wasm/lib", "derive-impl",
16+
".", "common", "derive", "jit", "vm", "vm/sre_engine", "pylib", "stdlib", "wasm/lib", "derive-impl",
1717
]
1818

1919
[workspace.dependencies]
@@ -27,6 +27,7 @@ rustpython-jit = { path = "jit", version = "0.3.0" }
2727
rustpython-vm = { path = "vm", default-features = false, version = "0.3.0" }
2828
rustpython-pylib = { path = "pylib", version = "0.3.0" }
2929
rustpython-stdlib = { path = "stdlib", default-features = false, version = "0.3.0" }
30+
rustpython-sre_engine = { path = "vm/sre_engine", version = "0.6.0" }
3031
rustpython-doc = { git = "https://github.com/RustPython/__doc__", tag = "0.3.0", version = "0.3.0" }
3132

3233
rustpython-literal = { git = "https://github.com/RustPython/Parser.git", rev = "29c4728dbedc7e69cc2560b9b34058bbba9b1303" }
@@ -64,7 +65,7 @@ malachite-base = "0.4.4"
6465
num-complex = "0.4.0"
6566
num-integer = "0.1.44"
6667
num-traits = "0.2"
67-
num_enum = "0.5.7"
68+
num_enum = "0.7"
6869
once_cell = "1.18"
6970
parking_lot = "0.12.1"
7071
paste = "1.0.7"

vm/sre_engine/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[package]
2-
name = "sre-engine"
2+
name = "rustpython-sre_engine"
33
version = "0.6.0"
44
authors = ["Kangzhi Shi <shikangzhi@gmail.com>", "RustPython Team"]
55
description = "A low-level implementation of Python's SRE regex engine"
6-
repository = "https://github.com/RustPython/sre-engine"
6+
repository = "https://github.com/RustPython/RustPython"
77
license = "MIT"
88
edition = "2021"
99
keywords = ["regex"]
1010
include = ["LICENSE", "src/**/*.rs"]
1111

1212
[dependencies]
13-
num_enum = "0.7"
14-
bitflags = "2"
13+
num_enum = { workspace = true }
14+
bitflags = { workspace = true }
1515
optional = "0.5"

vm/sre_engine/tests/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use sre_engine::{Request, State, StrDrive};
1+
use rustpython_sre_engine::{Request, State, StrDrive};
22

33
struct Pattern {
44
code: &'static [u32],

0 commit comments

Comments
 (0)