saturnix-filter 0.1.0__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.
- saturnix_filter-0.1.0/.github/workflows/ci.yml +63 -0
- saturnix_filter-0.1.0/.github/workflows/release.yml +207 -0
- saturnix_filter-0.1.0/.gitignore +17 -0
- saturnix_filter-0.1.0/Cargo.lock +297 -0
- saturnix_filter-0.1.0/Cargo.toml +18 -0
- saturnix_filter-0.1.0/LICENSE +21 -0
- saturnix_filter-0.1.0/PKG-INFO +89 -0
- saturnix_filter-0.1.0/README.md +66 -0
- saturnix_filter-0.1.0/pyproject.toml +38 -0
- saturnix_filter-0.1.0/src/lib.rs +508 -0
- saturnix_filter-0.1.0/tests/test_filters.py +35 -0
- saturnix_filter-0.1.0/uv.lock +717 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
CARGO_TERM_COLOR: always
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
lint-rust:
|
|
14
|
+
name: Lint Rust
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v6
|
|
18
|
+
|
|
19
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
20
|
+
with:
|
|
21
|
+
components: rustfmt, clippy
|
|
22
|
+
|
|
23
|
+
- uses: Swatinem/rust-cache@v2
|
|
24
|
+
|
|
25
|
+
- name: Check formatting
|
|
26
|
+
run: cargo fmt --check
|
|
27
|
+
|
|
28
|
+
- name: Clippy
|
|
29
|
+
run: cargo clippy --all-targets -- -D warnings
|
|
30
|
+
|
|
31
|
+
test-rust:
|
|
32
|
+
name: Test Rust
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v6
|
|
36
|
+
|
|
37
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
38
|
+
|
|
39
|
+
- uses: Swatinem/rust-cache@v2
|
|
40
|
+
|
|
41
|
+
- name: Run tests
|
|
42
|
+
run: cargo test
|
|
43
|
+
|
|
44
|
+
test-python:
|
|
45
|
+
name: Test Python (${{ matrix.os }})
|
|
46
|
+
runs-on: ${{ matrix.os }}
|
|
47
|
+
strategy:
|
|
48
|
+
fail-fast: false
|
|
49
|
+
matrix:
|
|
50
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v6
|
|
53
|
+
|
|
54
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
55
|
+
|
|
56
|
+
- uses: Swatinem/rust-cache@v2
|
|
57
|
+
|
|
58
|
+
- uses: astral-sh/setup-uv@v7
|
|
59
|
+
|
|
60
|
+
- name: Build and test
|
|
61
|
+
run: |
|
|
62
|
+
uv run maturin develop
|
|
63
|
+
uv run pytest
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: 'New version number to release (e.g., 0.2.0)'
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write # Required for pushing commits, creating tags, and creating GitHub releases
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
prepare-release:
|
|
16
|
+
name: Prepare Release & Git Tag
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
outputs:
|
|
19
|
+
version: ${{ steps.bump.outputs.version }}
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout repository
|
|
22
|
+
uses: actions/checkout@v6
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- name: Set up Python
|
|
27
|
+
uses: actions/setup-python@v6
|
|
28
|
+
with:
|
|
29
|
+
python-version: '3.12'
|
|
30
|
+
|
|
31
|
+
- name: Bump version in configuration files
|
|
32
|
+
id: bump
|
|
33
|
+
run: |
|
|
34
|
+
python -c "
|
|
35
|
+
import re
|
|
36
|
+
version = '${{ inputs.version }}'
|
|
37
|
+
|
|
38
|
+
# 1. Update pyproject.toml
|
|
39
|
+
with open('pyproject.toml', 'r') as f:
|
|
40
|
+
content = f.read()
|
|
41
|
+
content = re.sub(r'(?<=^version = \")[^\"]+', version, content, count=1, flags=re.MULTILINE)
|
|
42
|
+
with open('pyproject.toml', 'w') as f:
|
|
43
|
+
f.write(content)
|
|
44
|
+
|
|
45
|
+
# 2. Update Cargo.toml
|
|
46
|
+
with open('Cargo.toml', 'r') as f:
|
|
47
|
+
content = f.read()
|
|
48
|
+
content = re.sub(r'(?<=^version = \")[^\"]+', version, content, count=1, flags=re.MULTILINE)
|
|
49
|
+
with open('Cargo.toml', 'w') as f:
|
|
50
|
+
f.write(content)
|
|
51
|
+
"
|
|
52
|
+
echo "version=${{ inputs.version }}" >> $GITHUB_OUTPUT
|
|
53
|
+
|
|
54
|
+
- name: Commit and push changes
|
|
55
|
+
run: |
|
|
56
|
+
git config --global user.name "github-actions[bot]"
|
|
57
|
+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
58
|
+
git add pyproject.toml Cargo.toml
|
|
59
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
60
|
+
git commit -m "chore: bump version to v${{ inputs.version }}"
|
|
61
|
+
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
|
|
62
|
+
git push origin main
|
|
63
|
+
else
|
|
64
|
+
echo "No changes to commit (version is already set to ${{ inputs.version }})."
|
|
65
|
+
fi
|
|
66
|
+
|
|
67
|
+
- name: Create and push Git tag
|
|
68
|
+
run: |
|
|
69
|
+
if git rev-parse "v${{ inputs.version }}" >/dev/null 2>&1; then
|
|
70
|
+
echo "Tag v${{ inputs.version }} already exists. Force updating tag."
|
|
71
|
+
git tag -f "v${{ inputs.version }}"
|
|
72
|
+
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
|
|
73
|
+
git push origin "v${{ inputs.version }}" --force
|
|
74
|
+
else
|
|
75
|
+
git tag "v${{ inputs.version }}"
|
|
76
|
+
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git"
|
|
77
|
+
git push origin "v${{ inputs.version }}"
|
|
78
|
+
fi
|
|
79
|
+
|
|
80
|
+
- name: Create GitHub Release
|
|
81
|
+
env:
|
|
82
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
83
|
+
run: |
|
|
84
|
+
gh release create "v${{ inputs.version }}" --title "v${{ inputs.version }}" --generate-notes || echo "Release already exists."
|
|
85
|
+
|
|
86
|
+
build-windows:
|
|
87
|
+
name: Build Wheels (Windows - x86_64)
|
|
88
|
+
runs-on: windows-latest
|
|
89
|
+
needs: prepare-release
|
|
90
|
+
steps:
|
|
91
|
+
- name: Checkout repository
|
|
92
|
+
uses: actions/checkout@v6
|
|
93
|
+
with:
|
|
94
|
+
ref: "v${{ needs.prepare-release.outputs.version }}"
|
|
95
|
+
|
|
96
|
+
- name: Build wheels using Maturin
|
|
97
|
+
uses: PyO3/maturin-action@v1
|
|
98
|
+
with:
|
|
99
|
+
target: x86_64
|
|
100
|
+
args: --release --out dist
|
|
101
|
+
sccache: 'true'
|
|
102
|
+
|
|
103
|
+
- name: Upload wheels as artifact
|
|
104
|
+
uses: actions/upload-artifact@v7
|
|
105
|
+
with:
|
|
106
|
+
name: wheels-windows-x86_64
|
|
107
|
+
path: dist
|
|
108
|
+
|
|
109
|
+
build-linux:
|
|
110
|
+
name: Build Wheels (Linux - ${{ matrix.target }})
|
|
111
|
+
runs-on: ubuntu-latest
|
|
112
|
+
needs: prepare-release
|
|
113
|
+
strategy:
|
|
114
|
+
fail-fast: false
|
|
115
|
+
matrix:
|
|
116
|
+
target: [x86_64, aarch64]
|
|
117
|
+
steps:
|
|
118
|
+
- name: Checkout repository
|
|
119
|
+
uses: actions/checkout@v6
|
|
120
|
+
with:
|
|
121
|
+
ref: "v${{ needs.prepare-release.outputs.version }}"
|
|
122
|
+
|
|
123
|
+
- name: Set up QEMU for multi-architecture emulation
|
|
124
|
+
if: matrix.target == 'aarch64'
|
|
125
|
+
uses: docker/setup-qemu-action@v4
|
|
126
|
+
|
|
127
|
+
- name: Build wheels using Maturin (manylinux)
|
|
128
|
+
uses: PyO3/maturin-action@v1
|
|
129
|
+
with:
|
|
130
|
+
target: ${{ matrix.target }}
|
|
131
|
+
args: --release --out dist
|
|
132
|
+
sccache: 'true'
|
|
133
|
+
manylinux: auto
|
|
134
|
+
|
|
135
|
+
- name: Upload wheels as artifact
|
|
136
|
+
uses: actions/upload-artifact@v7
|
|
137
|
+
with:
|
|
138
|
+
name: wheels-linux-${{ matrix.target }}
|
|
139
|
+
path: dist
|
|
140
|
+
|
|
141
|
+
build-macos:
|
|
142
|
+
name: Build Wheels (macOS - ${{ matrix.target }})
|
|
143
|
+
runs-on: macos-latest
|
|
144
|
+
needs: prepare-release
|
|
145
|
+
strategy:
|
|
146
|
+
fail-fast: false
|
|
147
|
+
matrix:
|
|
148
|
+
target: [x86_64, aarch64]
|
|
149
|
+
steps:
|
|
150
|
+
- name: Checkout repository
|
|
151
|
+
uses: actions/checkout@v6
|
|
152
|
+
with:
|
|
153
|
+
ref: "v${{ needs.prepare-release.outputs.version }}"
|
|
154
|
+
|
|
155
|
+
- name: Build wheels using Maturin
|
|
156
|
+
uses: PyO3/maturin-action@v1
|
|
157
|
+
with:
|
|
158
|
+
target: ${{ matrix.target }}
|
|
159
|
+
args: --release --out dist
|
|
160
|
+
sccache: 'true'
|
|
161
|
+
|
|
162
|
+
- name: Upload wheels as artifact
|
|
163
|
+
uses: actions/upload-artifact@v7
|
|
164
|
+
with:
|
|
165
|
+
name: wheels-macos-${{ matrix.target }}
|
|
166
|
+
path: dist
|
|
167
|
+
|
|
168
|
+
build-sdist:
|
|
169
|
+
name: Build Source Distribution
|
|
170
|
+
runs-on: ubuntu-latest
|
|
171
|
+
needs: prepare-release
|
|
172
|
+
steps:
|
|
173
|
+
- name: Checkout repository
|
|
174
|
+
uses: actions/checkout@v6
|
|
175
|
+
with:
|
|
176
|
+
ref: "v${{ needs.prepare-release.outputs.version }}"
|
|
177
|
+
|
|
178
|
+
- name: Build source distribution using Maturin
|
|
179
|
+
uses: PyO3/maturin-action@v1
|
|
180
|
+
with:
|
|
181
|
+
command: sdist
|
|
182
|
+
args: --out dist
|
|
183
|
+
|
|
184
|
+
- name: Upload source distribution as artifact
|
|
185
|
+
uses: actions/upload-artifact@v7
|
|
186
|
+
with:
|
|
187
|
+
name: sdist
|
|
188
|
+
path: dist
|
|
189
|
+
|
|
190
|
+
publish:
|
|
191
|
+
name: Publish to PyPI
|
|
192
|
+
runs-on: ubuntu-latest
|
|
193
|
+
needs: [build-windows, build-linux, build-macos, build-sdist]
|
|
194
|
+
permissions:
|
|
195
|
+
id-token: write # Required for PyPI OIDC Trusted Publishing
|
|
196
|
+
steps:
|
|
197
|
+
- name: Download all build artifacts
|
|
198
|
+
uses: actions/download-artifact@v8
|
|
199
|
+
with:
|
|
200
|
+
pattern: '*'
|
|
201
|
+
path: dist
|
|
202
|
+
merge-multiple: true
|
|
203
|
+
|
|
204
|
+
- name: Publish all packages to PyPI
|
|
205
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
206
|
+
with:
|
|
207
|
+
packages-dir: dist/
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "2.13.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "cfg-if"
|
|
19
|
+
version = "1.0.4"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "crossbeam-deque"
|
|
25
|
+
version = "0.8.7"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"crossbeam-epoch",
|
|
30
|
+
"crossbeam-utils",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[[package]]
|
|
34
|
+
name = "crossbeam-epoch"
|
|
35
|
+
version = "0.9.20"
|
|
36
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
+
checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
|
|
38
|
+
dependencies = [
|
|
39
|
+
"crossbeam-utils",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "crossbeam-utils"
|
|
44
|
+
version = "0.8.22"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "either"
|
|
50
|
+
version = "1.16.0"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "heck"
|
|
56
|
+
version = "0.4.1"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "indoc"
|
|
62
|
+
version = "2.0.7"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
65
|
+
dependencies = [
|
|
66
|
+
"rustversion",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "libc"
|
|
71
|
+
version = "0.2.186"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "lock_api"
|
|
77
|
+
version = "0.4.14"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"scopeguard",
|
|
82
|
+
]
|
|
83
|
+
|
|
84
|
+
[[package]]
|
|
85
|
+
name = "memoffset"
|
|
86
|
+
version = "0.9.1"
|
|
87
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
88
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
89
|
+
dependencies = [
|
|
90
|
+
"autocfg",
|
|
91
|
+
]
|
|
92
|
+
|
|
93
|
+
[[package]]
|
|
94
|
+
name = "once_cell"
|
|
95
|
+
version = "1.21.4"
|
|
96
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
97
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
98
|
+
|
|
99
|
+
[[package]]
|
|
100
|
+
name = "parking_lot"
|
|
101
|
+
version = "0.12.5"
|
|
102
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
103
|
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
|
104
|
+
dependencies = [
|
|
105
|
+
"lock_api",
|
|
106
|
+
"parking_lot_core",
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "parking_lot_core"
|
|
111
|
+
version = "0.9.12"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
|
114
|
+
dependencies = [
|
|
115
|
+
"cfg-if",
|
|
116
|
+
"libc",
|
|
117
|
+
"redox_syscall",
|
|
118
|
+
"smallvec",
|
|
119
|
+
"windows-link",
|
|
120
|
+
]
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "portable-atomic"
|
|
124
|
+
version = "1.13.1"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
127
|
+
|
|
128
|
+
[[package]]
|
|
129
|
+
name = "proc-macro2"
|
|
130
|
+
version = "1.0.106"
|
|
131
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
133
|
+
dependencies = [
|
|
134
|
+
"unicode-ident",
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "pyo3"
|
|
139
|
+
version = "0.21.2"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "a5e00b96a521718e08e03b1a622f01c8a8deb50719335de3f60b3b3950f069d8"
|
|
142
|
+
dependencies = [
|
|
143
|
+
"cfg-if",
|
|
144
|
+
"indoc",
|
|
145
|
+
"libc",
|
|
146
|
+
"memoffset",
|
|
147
|
+
"parking_lot",
|
|
148
|
+
"portable-atomic",
|
|
149
|
+
"pyo3-build-config",
|
|
150
|
+
"pyo3-ffi",
|
|
151
|
+
"pyo3-macros",
|
|
152
|
+
"unindent",
|
|
153
|
+
]
|
|
154
|
+
|
|
155
|
+
[[package]]
|
|
156
|
+
name = "pyo3-build-config"
|
|
157
|
+
version = "0.21.2"
|
|
158
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
159
|
+
checksum = "7883df5835fafdad87c0d888b266c8ec0f4c9ca48a5bed6bbb592e8dedee1b50"
|
|
160
|
+
dependencies = [
|
|
161
|
+
"once_cell",
|
|
162
|
+
"target-lexicon",
|
|
163
|
+
]
|
|
164
|
+
|
|
165
|
+
[[package]]
|
|
166
|
+
name = "pyo3-ffi"
|
|
167
|
+
version = "0.21.2"
|
|
168
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
169
|
+
checksum = "01be5843dc60b916ab4dad1dca6d20b9b4e6ddc8e15f50c47fe6d85f1fb97403"
|
|
170
|
+
dependencies = [
|
|
171
|
+
"libc",
|
|
172
|
+
"pyo3-build-config",
|
|
173
|
+
]
|
|
174
|
+
|
|
175
|
+
[[package]]
|
|
176
|
+
name = "pyo3-macros"
|
|
177
|
+
version = "0.21.2"
|
|
178
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
179
|
+
checksum = "77b34069fc0682e11b31dbd10321cbf94808394c56fd996796ce45217dfac53c"
|
|
180
|
+
dependencies = [
|
|
181
|
+
"proc-macro2",
|
|
182
|
+
"pyo3-macros-backend",
|
|
183
|
+
"quote",
|
|
184
|
+
"syn",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "pyo3-macros-backend"
|
|
189
|
+
version = "0.21.2"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "08260721f32db5e1a5beae69a55553f56b99bd0e1c3e6e0a5e8851a9d0f5a85c"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"heck",
|
|
194
|
+
"proc-macro2",
|
|
195
|
+
"pyo3-build-config",
|
|
196
|
+
"quote",
|
|
197
|
+
"syn",
|
|
198
|
+
]
|
|
199
|
+
|
|
200
|
+
[[package]]
|
|
201
|
+
name = "quote"
|
|
202
|
+
version = "1.0.46"
|
|
203
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
204
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
205
|
+
dependencies = [
|
|
206
|
+
"proc-macro2",
|
|
207
|
+
]
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "rayon"
|
|
211
|
+
version = "1.12.0"
|
|
212
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
213
|
+
checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
|
|
214
|
+
dependencies = [
|
|
215
|
+
"either",
|
|
216
|
+
"rayon-core",
|
|
217
|
+
]
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "rayon-core"
|
|
221
|
+
version = "1.13.0"
|
|
222
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
|
224
|
+
dependencies = [
|
|
225
|
+
"crossbeam-deque",
|
|
226
|
+
"crossbeam-utils",
|
|
227
|
+
]
|
|
228
|
+
|
|
229
|
+
[[package]]
|
|
230
|
+
name = "redox_syscall"
|
|
231
|
+
version = "0.5.18"
|
|
232
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
233
|
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
|
234
|
+
dependencies = [
|
|
235
|
+
"bitflags",
|
|
236
|
+
]
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "rustversion"
|
|
240
|
+
version = "1.0.23"
|
|
241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
243
|
+
|
|
244
|
+
[[package]]
|
|
245
|
+
name = "saturnix_filter"
|
|
246
|
+
version = "0.1.0"
|
|
247
|
+
dependencies = [
|
|
248
|
+
"pyo3",
|
|
249
|
+
"rayon",
|
|
250
|
+
]
|
|
251
|
+
|
|
252
|
+
[[package]]
|
|
253
|
+
name = "scopeguard"
|
|
254
|
+
version = "1.2.0"
|
|
255
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
256
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
257
|
+
|
|
258
|
+
[[package]]
|
|
259
|
+
name = "smallvec"
|
|
260
|
+
version = "1.15.2"
|
|
261
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
+
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "syn"
|
|
266
|
+
version = "2.0.118"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"proc-macro2",
|
|
271
|
+
"quote",
|
|
272
|
+
"unicode-ident",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "target-lexicon"
|
|
277
|
+
version = "0.12.16"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
280
|
+
|
|
281
|
+
[[package]]
|
|
282
|
+
name = "unicode-ident"
|
|
283
|
+
version = "1.0.24"
|
|
284
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
285
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
286
|
+
|
|
287
|
+
[[package]]
|
|
288
|
+
name = "unindent"
|
|
289
|
+
version = "0.2.4"
|
|
290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
291
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
292
|
+
|
|
293
|
+
[[package]]
|
|
294
|
+
name = "windows-link"
|
|
295
|
+
version = "0.2.1"
|
|
296
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
297
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "saturnix_filter"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
rust-version = "1.75"
|
|
6
|
+
description = "High-performance camera film simulation filters"
|
|
7
|
+
license = "MIT"
|
|
8
|
+
repository = "https://github.com/oberbichler/saturnix-filter"
|
|
9
|
+
authors = ["Thomas Oberbichler <thomas.oberbichler@gmail.com>"]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
|
|
12
|
+
[lib]
|
|
13
|
+
name = "saturnix_filter"
|
|
14
|
+
crate-type = ["cdylib"]
|
|
15
|
+
|
|
16
|
+
[dependencies]
|
|
17
|
+
pyo3 = { version = "0.21.0", features = ["extension-module", "abi3-py39"] }
|
|
18
|
+
rayon = "1.10"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Thomas Oberbichler
|
|
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.
|