rygex 0.1.11__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rygex-0.1.11/.devcontainer/Dockerfile +53 -0
- rygex-0.1.11/.devcontainer/devcontainer.json +35 -0
- rygex-0.1.11/.dockerignore +3 -0
- rygex-0.1.11/.github/workflows/build.yaml +91 -0
- rygex-0.1.11/.gitignore +14 -0
- rygex-0.1.11/.vscode/launch.json +65 -0
- rygex-0.1.11/Cargo.lock +241 -0
- rygex-0.1.11/Cargo.toml +17 -0
- rygex-0.1.11/LICENSE +21 -0
- rygex-0.1.11/PKG-INFO +161 -0
- rygex-0.1.11/Pipfile +12 -0
- rygex-0.1.11/Pipfile.lock +79 -0
- rygex-0.1.11/README.md +147 -0
- rygex-0.1.11/add-version.sh +27 -0
- rygex-0.1.11/archive/README.md.bk +473 -0
- rygex-0.1.11/build_standalone.sh +76 -0
- rygex-0.1.11/irygex.py +6 -0
- rygex-0.1.11/make_big_file.py +77 -0
- rygex-0.1.11/performance_results.txt +219 -0
- rygex-0.1.11/performance_script.py +261 -0
- rygex-0.1.11/perl_counter.pl +85 -0
- rygex-0.1.11/pyproject.toml +34 -0
- rygex-0.1.11/requirements.txt +5 -0
- rygex-0.1.11/rygex/args.py +269 -0
- rygex-0.1.11/rygex/cli.py +195 -0
- rygex-0.1.11/rygex/converters.py +51 -0
- rygex-0.1.11/rygex/formatting.py +57 -0
- rygex-0.1.11/rygex/legacy.py +144 -0
- rygex-0.1.11/rygex/models.py +26 -0
- rygex-0.1.11/rygex/parallel.py +92 -0
- rygex-0.1.11/rygex/python_regex.py +254 -0
- rygex-0.1.11/rygex/utils.py +18 -0
- rygex-0.1.11/rygex/validation.py +42 -0
- rygex-0.1.11/rygex_ext.pyi +63 -0
- rygex-0.1.11/src/lib.rs +924 -0
- rygex-0.1.11/test-build.sh +4 -0
- rygex-0.1.11/testfile +10 -0
- rygex-0.1.11/ufw.test +541 -0
- rygex-0.1.11/ufw.test1.tar.xz +0 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# .devcontainer/Dockerfile
|
|
2
|
+
FROM python:3.13
|
|
3
|
+
|
|
4
|
+
# 1) Install OS deps + Rust toolchain
|
|
5
|
+
USER root
|
|
6
|
+
RUN apt-get update \
|
|
7
|
+
&& apt-get install -y --no-install-recommends \
|
|
8
|
+
build-essential \
|
|
9
|
+
git \
|
|
10
|
+
curl \
|
|
11
|
+
pkg-config \
|
|
12
|
+
libssl-dev \
|
|
13
|
+
gawk \
|
|
14
|
+
perl \
|
|
15
|
+
sed \
|
|
16
|
+
ripgrep \
|
|
17
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
18
|
+
|
|
19
|
+
ARG USER=vscode
|
|
20
|
+
ARG UID=1000
|
|
21
|
+
RUN useradd -m --uid $UID $USER
|
|
22
|
+
|
|
23
|
+
# 4) Switch to non-root
|
|
24
|
+
USER $USER
|
|
25
|
+
WORKDIR /workspace
|
|
26
|
+
|
|
27
|
+
# 5) Install the latest Rust toolchain via rustup
|
|
28
|
+
# -y = agree to defaults, installs to $HOME/.cargo
|
|
29
|
+
RUN curl https://sh.rustup.rs -sSf \
|
|
30
|
+
| sh -s -- -y --default-toolchain stable \
|
|
31
|
+
&& ~/.cargo/bin/rustup default stable
|
|
32
|
+
|
|
33
|
+
# 6) Ensure Cargo/Rust are on your PATH
|
|
34
|
+
ENV PATH=/home/${USER}/.cargo/bin:${PATH}
|
|
35
|
+
|
|
36
|
+
# 5) Ensure user-local bin is on PATH
|
|
37
|
+
ENV PATH=/home/${USER}/.local/bin:${PATH}
|
|
38
|
+
|
|
39
|
+
# 6) Copy dependency manifests & install Python libs
|
|
40
|
+
COPY . .
|
|
41
|
+
RUN pip install --upgrade pip \
|
|
42
|
+
&& pip install --user --no-cache-dir -r requirements.txt
|
|
43
|
+
|
|
44
|
+
USER root
|
|
45
|
+
RUN chown -R $USER:$USER .
|
|
46
|
+
USER $USER
|
|
47
|
+
RUN ls -l /workspace && cat /workspace/Cargo.toml
|
|
48
|
+
# 8) Build your Rust/Python hybrid and install the wheel
|
|
49
|
+
RUN maturin build --release \
|
|
50
|
+
&& pip install --user target/wheels/rygex-*.whl --force-reinstall
|
|
51
|
+
|
|
52
|
+
# 9) Drop into bash
|
|
53
|
+
ENTRYPOINT ["bash"]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// .devcontainer/devcontainer.json
|
|
2
|
+
{
|
|
3
|
+
"name": "CLI App Dev",
|
|
4
|
+
"dockerFile": "Dockerfile",
|
|
5
|
+
"context": "..",
|
|
6
|
+
"remoteUser": "vscode",
|
|
7
|
+
|
|
8
|
+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
|
|
9
|
+
"workspaceFolder": "/workspace",
|
|
10
|
+
|
|
11
|
+
"postCreateCommand": "pip install --user -r requirements.txt",
|
|
12
|
+
|
|
13
|
+
"customizations": {
|
|
14
|
+
"vscode": {
|
|
15
|
+
// Add extensions you want installed in the containers
|
|
16
|
+
"extensions": [
|
|
17
|
+
"ms-python.python",
|
|
18
|
+
"ms-vscode.cpptools",
|
|
19
|
+
"ms-azuretools.vscode-docker"
|
|
20
|
+
],
|
|
21
|
+
"settings": {
|
|
22
|
+
// 1) Define a "bash" profile
|
|
23
|
+
"terminal.integrated.profiles.linux": {
|
|
24
|
+
"bash": {
|
|
25
|
+
"path": "/bin/bash",
|
|
26
|
+
"args": ["-l"] // make it a login shell if you like
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
// 2) Use that profile by default
|
|
30
|
+
"terminal.integrated.defaultProfile.linux": "bash"
|
|
31
|
+
}
|
|
32
|
+
// To remove an extension, prefix with a minus, e.g. "-ms-vscode.git"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
name: Build & Release Wheels
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- 'v*' # e.g. v0.1.0
|
|
6
|
+
- 'latest'
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
id-token: write
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
build:
|
|
17
|
+
strategy:
|
|
18
|
+
matrix:
|
|
19
|
+
os: [ubuntu-latest, windows-latest]
|
|
20
|
+
python-version: ['3.14']
|
|
21
|
+
runs-on: ${{ matrix.os }}
|
|
22
|
+
env:
|
|
23
|
+
# cibuildwheel builds these four targets per‐job
|
|
24
|
+
CIBW_BUILD: |
|
|
25
|
+
cp312-manylinux_x86_64 cp313-manylinux_x86_64 cp314-manylinux_x86_64
|
|
26
|
+
cp312-win_amd64 cp313-win_amd64 cp314-win_amd64
|
|
27
|
+
CIBW_MANYLINUX_X86_64_IMAGE: ghcr.io/jonnypeace/manylinux_rust:latest
|
|
28
|
+
steps:
|
|
29
|
+
- uses: actions/checkout@v4 # Updated to v4
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
uses: actions/setup-python@v5 # Updated to v5
|
|
32
|
+
with:
|
|
33
|
+
python-version: ${{ matrix.python-version }}
|
|
34
|
+
|
|
35
|
+
- name: Install build tools
|
|
36
|
+
run: pip install maturin cibuildwheel
|
|
37
|
+
|
|
38
|
+
- name: Build rygex wheels
|
|
39
|
+
run: cibuildwheel --output-dir wheelhouse .
|
|
40
|
+
|
|
41
|
+
- name: Upload wheel artifact
|
|
42
|
+
uses: actions/upload-artifact@v4
|
|
43
|
+
with:
|
|
44
|
+
name: wheels-${{ matrix.os }}-py${{ matrix.python-version }}
|
|
45
|
+
path: wheelhouse/*.whl
|
|
46
|
+
|
|
47
|
+
build_sdist:
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v4
|
|
51
|
+
- name: Build sdist
|
|
52
|
+
run: pipx run build --sdist
|
|
53
|
+
- uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: wheels-sdist
|
|
56
|
+
path: dist/*.tar.gz
|
|
57
|
+
|
|
58
|
+
release:
|
|
59
|
+
needs: [build, build_sdist] # Wait for both wheels and sdist
|
|
60
|
+
runs-on: ubuntu-latest
|
|
61
|
+
steps:
|
|
62
|
+
- name: Download all artifacts
|
|
63
|
+
uses: actions/download-artifact@v4
|
|
64
|
+
with:
|
|
65
|
+
path: all-wheels
|
|
66
|
+
pattern: wheels-*
|
|
67
|
+
merge-multiple: true
|
|
68
|
+
- name: Create GitHub Release
|
|
69
|
+
uses: softprops/action-gh-release@v1
|
|
70
|
+
with:
|
|
71
|
+
tag_name: ${{ github.ref_name }}
|
|
72
|
+
name: ${{ github.ref_name }} Release
|
|
73
|
+
files: all-wheels/* # This will pick up .whl and .tar.gz
|
|
74
|
+
generate_release_notes: true
|
|
75
|
+
env:
|
|
76
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
77
|
+
|
|
78
|
+
publish:
|
|
79
|
+
needs: [build, build_sdist] # Wait for both wheels and sdist
|
|
80
|
+
runs-on: ubuntu-latest
|
|
81
|
+
environment:
|
|
82
|
+
name: owner-env
|
|
83
|
+
url: https://pypi.org/p/rygex
|
|
84
|
+
steps:
|
|
85
|
+
- uses: actions/download-artifact@v4
|
|
86
|
+
with:
|
|
87
|
+
path: dist
|
|
88
|
+
pattern: wheels-*
|
|
89
|
+
merge-multiple: true
|
|
90
|
+
- name: Publish to PyPI
|
|
91
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
rygex-0.1.11/.gitignore
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Use IntelliSense to learn about possible attributes.
|
|
3
|
+
// Hover to view descriptions of existing attributes.
|
|
4
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
+
"version": "0.2.0",
|
|
6
|
+
"configurations": [
|
|
7
|
+
|
|
8
|
+
{
|
|
9
|
+
"name": "001: -p small file",
|
|
10
|
+
"type": "debugpy",
|
|
11
|
+
"request": "launch",
|
|
12
|
+
"program": "${workspaceFolder}/irygex.py",
|
|
13
|
+
"args": [
|
|
14
|
+
"-p", "\\w+\\s+DST=(123.12.123.12)\\s+\\w+", "1",
|
|
15
|
+
"-c",
|
|
16
|
+
"-f", "ufw.test"
|
|
17
|
+
],
|
|
18
|
+
"console": "integratedTerminal",
|
|
19
|
+
"cwd": "${workspaceFolder}"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "002: start end omitall small file",
|
|
23
|
+
"type": "debugpy",
|
|
24
|
+
"request": "launch",
|
|
25
|
+
"program": "${workspaceFolder}/irygex.py",
|
|
26
|
+
"args": [
|
|
27
|
+
"-s", "SRC=", "1",
|
|
28
|
+
"-e", " DST=", "1",
|
|
29
|
+
"-O",
|
|
30
|
+
"-c",
|
|
31
|
+
"-f", "ufw.test"
|
|
32
|
+
],
|
|
33
|
+
"console": "integratedTerminal",
|
|
34
|
+
"cwd": "${workspaceFolder}"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "003: -p -m small file",
|
|
38
|
+
"type": "debugpy",
|
|
39
|
+
"request": "launch",
|
|
40
|
+
"program": "${workspaceFolder}/irygex.py",
|
|
41
|
+
"args": [
|
|
42
|
+
"-p", "\\w+\\s+DST=(123.12.123.12)\\s+\\w+", "1",
|
|
43
|
+
"-m",
|
|
44
|
+
"-c",
|
|
45
|
+
"-f", "ufw.test"
|
|
46
|
+
],
|
|
47
|
+
"console": "integratedTerminal",
|
|
48
|
+
"cwd": "${workspaceFolder}"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "004: -p -m BIG file",
|
|
52
|
+
"type": "debugpy",
|
|
53
|
+
"request": "launch",
|
|
54
|
+
"program": "${workspaceFolder}/irygex.py",
|
|
55
|
+
"args": [
|
|
56
|
+
"-p", "\\w+\\s+DST=(123.12.123.12)\\s+\\w+", "1",
|
|
57
|
+
"-m", "8",
|
|
58
|
+
"-c",
|
|
59
|
+
"-f", "ufw.test1"
|
|
60
|
+
],
|
|
61
|
+
"console": "integratedTerminal",
|
|
62
|
+
"cwd": "${workspaceFolder}"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
rygex-0.1.11/Cargo.lock
ADDED
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.4"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "crossbeam-deque"
|
|
16
|
+
version = "0.8.6"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"crossbeam-epoch",
|
|
21
|
+
"crossbeam-utils",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[[package]]
|
|
25
|
+
name = "crossbeam-epoch"
|
|
26
|
+
version = "0.9.18"
|
|
27
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
|
29
|
+
dependencies = [
|
|
30
|
+
"crossbeam-utils",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[[package]]
|
|
34
|
+
name = "crossbeam-utils"
|
|
35
|
+
version = "0.8.21"
|
|
36
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
38
|
+
|
|
39
|
+
[[package]]
|
|
40
|
+
name = "either"
|
|
41
|
+
version = "1.15.0"
|
|
42
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
43
|
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
|
44
|
+
|
|
45
|
+
[[package]]
|
|
46
|
+
name = "heck"
|
|
47
|
+
version = "0.5.0"
|
|
48
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
49
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "libc"
|
|
53
|
+
version = "0.2.180"
|
|
54
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
55
|
+
checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc"
|
|
56
|
+
|
|
57
|
+
[[package]]
|
|
58
|
+
name = "memchr"
|
|
59
|
+
version = "2.8.0"
|
|
60
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
61
|
+
checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
|
|
62
|
+
|
|
63
|
+
[[package]]
|
|
64
|
+
name = "memmap2"
|
|
65
|
+
version = "0.5.10"
|
|
66
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
67
|
+
checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
|
|
68
|
+
dependencies = [
|
|
69
|
+
"libc",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
[[package]]
|
|
73
|
+
name = "once_cell"
|
|
74
|
+
version = "1.21.3"
|
|
75
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
76
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
77
|
+
|
|
78
|
+
[[package]]
|
|
79
|
+
name = "portable-atomic"
|
|
80
|
+
version = "1.13.1"
|
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
83
|
+
|
|
84
|
+
[[package]]
|
|
85
|
+
name = "proc-macro2"
|
|
86
|
+
version = "1.0.106"
|
|
87
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
88
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
89
|
+
dependencies = [
|
|
90
|
+
"unicode-ident",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
[[package]]
|
|
94
|
+
name = "pyo3"
|
|
95
|
+
version = "0.28.0"
|
|
96
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
97
|
+
checksum = "fcf3ccafdf54c050be48a3a086d372f77ba6615f5057211607cd30e5ac5cec6d"
|
|
98
|
+
dependencies = [
|
|
99
|
+
"libc",
|
|
100
|
+
"once_cell",
|
|
101
|
+
"portable-atomic",
|
|
102
|
+
"pyo3-build-config",
|
|
103
|
+
"pyo3-ffi",
|
|
104
|
+
"pyo3-macros",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "pyo3-build-config"
|
|
109
|
+
version = "0.28.0"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "972720a441c91fd9c49f212a1d2d74c6e3803b231ebc8d66c51efbd7ccab11c8"
|
|
112
|
+
dependencies = [
|
|
113
|
+
"target-lexicon",
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "pyo3-ffi"
|
|
118
|
+
version = "0.28.0"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "5994456d9dab8934d600d3867571b6410f24fbd6002570ad56356733eb54859b"
|
|
121
|
+
dependencies = [
|
|
122
|
+
"libc",
|
|
123
|
+
"pyo3-build-config",
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "pyo3-macros"
|
|
128
|
+
version = "0.28.0"
|
|
129
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
|
+
checksum = "11ce9cc8d81b3c4969748807604d92b4eef363c5bb82b1a1bdb34ec6f1093a18"
|
|
131
|
+
dependencies = [
|
|
132
|
+
"proc-macro2",
|
|
133
|
+
"pyo3-macros-backend",
|
|
134
|
+
"quote",
|
|
135
|
+
"syn",
|
|
136
|
+
]
|
|
137
|
+
|
|
138
|
+
[[package]]
|
|
139
|
+
name = "pyo3-macros-backend"
|
|
140
|
+
version = "0.28.0"
|
|
141
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
142
|
+
checksum = "eaf4b60036a154d23282679b658e3cc7d88d3b8c9a40b43824785f232d2e1b98"
|
|
143
|
+
dependencies = [
|
|
144
|
+
"heck",
|
|
145
|
+
"proc-macro2",
|
|
146
|
+
"pyo3-build-config",
|
|
147
|
+
"quote",
|
|
148
|
+
"syn",
|
|
149
|
+
]
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "quote"
|
|
153
|
+
version = "1.0.44"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4"
|
|
156
|
+
dependencies = [
|
|
157
|
+
"proc-macro2",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "rayon"
|
|
162
|
+
version = "1.11.0"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"either",
|
|
167
|
+
"rayon-core",
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "rayon-core"
|
|
172
|
+
version = "1.13.0"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
|
175
|
+
dependencies = [
|
|
176
|
+
"crossbeam-deque",
|
|
177
|
+
"crossbeam-utils",
|
|
178
|
+
]
|
|
179
|
+
|
|
180
|
+
[[package]]
|
|
181
|
+
name = "regex"
|
|
182
|
+
version = "1.12.3"
|
|
183
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
184
|
+
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
|
|
185
|
+
dependencies = [
|
|
186
|
+
"aho-corasick",
|
|
187
|
+
"memchr",
|
|
188
|
+
"regex-automata",
|
|
189
|
+
"regex-syntax",
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "regex-automata"
|
|
194
|
+
version = "0.4.14"
|
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
196
|
+
checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
|
|
197
|
+
dependencies = [
|
|
198
|
+
"aho-corasick",
|
|
199
|
+
"memchr",
|
|
200
|
+
"regex-syntax",
|
|
201
|
+
]
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "regex-syntax"
|
|
205
|
+
version = "0.8.9"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "rygex"
|
|
211
|
+
version = "0.1.11"
|
|
212
|
+
dependencies = [
|
|
213
|
+
"memchr",
|
|
214
|
+
"memmap2",
|
|
215
|
+
"pyo3",
|
|
216
|
+
"rayon",
|
|
217
|
+
"regex",
|
|
218
|
+
]
|
|
219
|
+
|
|
220
|
+
[[package]]
|
|
221
|
+
name = "syn"
|
|
222
|
+
version = "2.0.114"
|
|
223
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
+
checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a"
|
|
225
|
+
dependencies = [
|
|
226
|
+
"proc-macro2",
|
|
227
|
+
"quote",
|
|
228
|
+
"unicode-ident",
|
|
229
|
+
]
|
|
230
|
+
|
|
231
|
+
[[package]]
|
|
232
|
+
name = "target-lexicon"
|
|
233
|
+
version = "0.13.4"
|
|
234
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
235
|
+
checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
|
|
236
|
+
|
|
237
|
+
[[package]]
|
|
238
|
+
name = "unicode-ident"
|
|
239
|
+
version = "1.0.22"
|
|
240
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
|
+
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
rygex-0.1.11/Cargo.toml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "rygex"
|
|
3
|
+
version = "0.1.11"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
|
|
7
|
+
[dependencies]
|
|
8
|
+
pyo3 = { version = "0.28", features = ["extension-module"] }
|
|
9
|
+
regex = "1.11.1"
|
|
10
|
+
rayon = "1.10.0"
|
|
11
|
+
memmap2 = "0.5"
|
|
12
|
+
memchr = "2.5"
|
|
13
|
+
|
|
14
|
+
[lib]
|
|
15
|
+
name = "rygex_ext" # This will be the module name in Python.
|
|
16
|
+
path = "src/lib.rs"
|
|
17
|
+
crate-type = ["cdylib"]
|
rygex-0.1.11/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Jonny
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|