ooverpunch 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.
- ooverpunch-0.1.0/.github/workflows/CI.yml +180 -0
- ooverpunch-0.1.0/.gitignore +72 -0
- ooverpunch-0.1.0/Cargo.lock +685 -0
- ooverpunch-0.1.0/Cargo.toml +14 -0
- ooverpunch-0.1.0/LICENSE +19 -0
- ooverpunch-0.1.0/PKG-INFO +29 -0
- ooverpunch-0.1.0/README.md +18 -0
- ooverpunch-0.1.0/pyproject.toml +15 -0
- ooverpunch-0.1.0/src/lib.rs +51 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# This file is autogenerated by maturin v1.7.4
|
|
2
|
+
# To update, run
|
|
3
|
+
#
|
|
4
|
+
# maturin generate-ci github
|
|
5
|
+
#
|
|
6
|
+
name: CI
|
|
7
|
+
|
|
8
|
+
on:
|
|
9
|
+
push:
|
|
10
|
+
branches:
|
|
11
|
+
- main
|
|
12
|
+
- master
|
|
13
|
+
tags:
|
|
14
|
+
- '*'
|
|
15
|
+
pull_request:
|
|
16
|
+
workflow_dispatch:
|
|
17
|
+
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
linux:
|
|
23
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
26
|
+
platform:
|
|
27
|
+
- runner: ubuntu-latest
|
|
28
|
+
target: x86_64
|
|
29
|
+
- runner: ubuntu-latest
|
|
30
|
+
target: x86
|
|
31
|
+
- runner: ubuntu-latest
|
|
32
|
+
target: aarch64
|
|
33
|
+
- runner: ubuntu-latest
|
|
34
|
+
target: armv7
|
|
35
|
+
- runner: ubuntu-latest
|
|
36
|
+
target: s390x
|
|
37
|
+
- runner: ubuntu-latest
|
|
38
|
+
target: ppc64le
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: 3.x
|
|
44
|
+
- name: Build wheels
|
|
45
|
+
uses: PyO3/maturin-action@v1
|
|
46
|
+
with:
|
|
47
|
+
target: ${{ matrix.platform.target }}
|
|
48
|
+
args: --release --out dist --find-interpreter
|
|
49
|
+
sccache: 'true'
|
|
50
|
+
manylinux: auto
|
|
51
|
+
- name: Upload wheels
|
|
52
|
+
uses: actions/upload-artifact@v4
|
|
53
|
+
with:
|
|
54
|
+
name: wheels-linux-${{ matrix.platform.target }}
|
|
55
|
+
path: dist
|
|
56
|
+
|
|
57
|
+
musllinux:
|
|
58
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
59
|
+
strategy:
|
|
60
|
+
matrix:
|
|
61
|
+
platform:
|
|
62
|
+
- runner: ubuntu-latest
|
|
63
|
+
target: x86_64
|
|
64
|
+
- runner: ubuntu-latest
|
|
65
|
+
target: x86
|
|
66
|
+
- runner: ubuntu-latest
|
|
67
|
+
target: aarch64
|
|
68
|
+
- runner: ubuntu-latest
|
|
69
|
+
target: armv7
|
|
70
|
+
steps:
|
|
71
|
+
- uses: actions/checkout@v4
|
|
72
|
+
- uses: actions/setup-python@v5
|
|
73
|
+
with:
|
|
74
|
+
python-version: 3.x
|
|
75
|
+
- name: Build wheels
|
|
76
|
+
uses: PyO3/maturin-action@v1
|
|
77
|
+
with:
|
|
78
|
+
target: ${{ matrix.platform.target }}
|
|
79
|
+
args: --release --out dist --find-interpreter
|
|
80
|
+
sccache: 'true'
|
|
81
|
+
manylinux: musllinux_1_2
|
|
82
|
+
- name: Upload wheels
|
|
83
|
+
uses: actions/upload-artifact@v4
|
|
84
|
+
with:
|
|
85
|
+
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
86
|
+
path: dist
|
|
87
|
+
|
|
88
|
+
windows:
|
|
89
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
90
|
+
strategy:
|
|
91
|
+
matrix:
|
|
92
|
+
platform:
|
|
93
|
+
- runner: windows-latest
|
|
94
|
+
target: x64
|
|
95
|
+
- runner: windows-latest
|
|
96
|
+
target: x86
|
|
97
|
+
steps:
|
|
98
|
+
- uses: actions/checkout@v4
|
|
99
|
+
- uses: actions/setup-python@v5
|
|
100
|
+
with:
|
|
101
|
+
python-version: 3.x
|
|
102
|
+
architecture: ${{ matrix.platform.target }}
|
|
103
|
+
- name: Build wheels
|
|
104
|
+
uses: PyO3/maturin-action@v1
|
|
105
|
+
with:
|
|
106
|
+
target: ${{ matrix.platform.target }}
|
|
107
|
+
args: --release --out dist --find-interpreter
|
|
108
|
+
sccache: 'true'
|
|
109
|
+
- name: Upload wheels
|
|
110
|
+
uses: actions/upload-artifact@v4
|
|
111
|
+
with:
|
|
112
|
+
name: wheels-windows-${{ matrix.platform.target }}
|
|
113
|
+
path: dist
|
|
114
|
+
|
|
115
|
+
macos:
|
|
116
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
117
|
+
strategy:
|
|
118
|
+
matrix:
|
|
119
|
+
platform:
|
|
120
|
+
- runner: macos-12
|
|
121
|
+
target: x86_64
|
|
122
|
+
- runner: macos-14
|
|
123
|
+
target: aarch64
|
|
124
|
+
steps:
|
|
125
|
+
- uses: actions/checkout@v4
|
|
126
|
+
- uses: actions/setup-python@v5
|
|
127
|
+
with:
|
|
128
|
+
python-version: 3.x
|
|
129
|
+
- name: Build wheels
|
|
130
|
+
uses: PyO3/maturin-action@v1
|
|
131
|
+
with:
|
|
132
|
+
target: ${{ matrix.platform.target }}
|
|
133
|
+
args: --release --out dist --find-interpreter
|
|
134
|
+
sccache: 'true'
|
|
135
|
+
- name: Upload wheels
|
|
136
|
+
uses: actions/upload-artifact@v4
|
|
137
|
+
with:
|
|
138
|
+
name: wheels-macos-${{ matrix.platform.target }}
|
|
139
|
+
path: dist
|
|
140
|
+
|
|
141
|
+
sdist:
|
|
142
|
+
runs-on: ubuntu-latest
|
|
143
|
+
steps:
|
|
144
|
+
- uses: actions/checkout@v4
|
|
145
|
+
- name: Build sdist
|
|
146
|
+
uses: PyO3/maturin-action@v1
|
|
147
|
+
with:
|
|
148
|
+
command: sdist
|
|
149
|
+
args: --out dist
|
|
150
|
+
- name: Upload sdist
|
|
151
|
+
uses: actions/upload-artifact@v4
|
|
152
|
+
with:
|
|
153
|
+
name: wheels-sdist
|
|
154
|
+
path: dist
|
|
155
|
+
|
|
156
|
+
release:
|
|
157
|
+
name: Release
|
|
158
|
+
runs-on: ubuntu-latest
|
|
159
|
+
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
160
|
+
needs: [linux, musllinux, windows, macos, sdist]
|
|
161
|
+
environment: release
|
|
162
|
+
permissions:
|
|
163
|
+
# Use to sign the release artifacts
|
|
164
|
+
id-token: write
|
|
165
|
+
# Used to upload release artifacts
|
|
166
|
+
contents: write
|
|
167
|
+
# Used to generate artifact attestation
|
|
168
|
+
attestations: write
|
|
169
|
+
steps:
|
|
170
|
+
- uses: actions/download-artifact@v4
|
|
171
|
+
- name: Generate artifact attestation
|
|
172
|
+
uses: actions/attest-build-provenance@v1
|
|
173
|
+
with:
|
|
174
|
+
subject-path: 'wheels-*/*'
|
|
175
|
+
- name: Publish to PyPI
|
|
176
|
+
if: "startsWith(github.ref, 'refs/tags/')"
|
|
177
|
+
uses: PyO3/maturin-action@v1
|
|
178
|
+
with:
|
|
179
|
+
command: upload
|
|
180
|
+
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/target
|
|
2
|
+
|
|
3
|
+
# Byte-compiled / optimized / DLL files
|
|
4
|
+
__pycache__/
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
|
|
8
|
+
# C extensions
|
|
9
|
+
*.so
|
|
10
|
+
|
|
11
|
+
# Distribution / packaging
|
|
12
|
+
.Python
|
|
13
|
+
.venv/
|
|
14
|
+
env/
|
|
15
|
+
bin/
|
|
16
|
+
build/
|
|
17
|
+
develop-eggs/
|
|
18
|
+
dist/
|
|
19
|
+
eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
include/
|
|
26
|
+
man/
|
|
27
|
+
venv/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
|
|
32
|
+
# Installer logs
|
|
33
|
+
pip-log.txt
|
|
34
|
+
pip-delete-this-directory.txt
|
|
35
|
+
pip-selfcheck.json
|
|
36
|
+
|
|
37
|
+
# Unit test / coverage reports
|
|
38
|
+
htmlcov/
|
|
39
|
+
.tox/
|
|
40
|
+
.coverage
|
|
41
|
+
.cache
|
|
42
|
+
nosetests.xml
|
|
43
|
+
coverage.xml
|
|
44
|
+
|
|
45
|
+
# Translations
|
|
46
|
+
*.mo
|
|
47
|
+
|
|
48
|
+
# Mr Developer
|
|
49
|
+
.mr.developer.cfg
|
|
50
|
+
.project
|
|
51
|
+
.pydevproject
|
|
52
|
+
|
|
53
|
+
# Rope
|
|
54
|
+
.ropeproject
|
|
55
|
+
|
|
56
|
+
# Django stuff:
|
|
57
|
+
*.log
|
|
58
|
+
*.pot
|
|
59
|
+
|
|
60
|
+
.DS_Store
|
|
61
|
+
|
|
62
|
+
# Sphinx documentation
|
|
63
|
+
docs/_build/
|
|
64
|
+
|
|
65
|
+
# PyCharm
|
|
66
|
+
.idea/
|
|
67
|
+
|
|
68
|
+
# VSCode
|
|
69
|
+
.vscode/
|
|
70
|
+
|
|
71
|
+
# Pyenv
|
|
72
|
+
.python-version
|
|
@@ -0,0 +1,685 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "ahash"
|
|
7
|
+
version = "0.7.8"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"getrandom",
|
|
12
|
+
"once_cell",
|
|
13
|
+
"version_check",
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
[[package]]
|
|
17
|
+
name = "arrayvec"
|
|
18
|
+
version = "0.7.6"
|
|
19
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
20
|
+
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
|
21
|
+
|
|
22
|
+
[[package]]
|
|
23
|
+
name = "autocfg"
|
|
24
|
+
version = "1.4.0"
|
|
25
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
26
|
+
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
|
27
|
+
|
|
28
|
+
[[package]]
|
|
29
|
+
name = "bitvec"
|
|
30
|
+
version = "1.0.1"
|
|
31
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
32
|
+
checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c"
|
|
33
|
+
dependencies = [
|
|
34
|
+
"funty",
|
|
35
|
+
"radium",
|
|
36
|
+
"tap",
|
|
37
|
+
"wyz",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[[package]]
|
|
41
|
+
name = "borsh"
|
|
42
|
+
version = "1.5.1"
|
|
43
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
+
checksum = "a6362ed55def622cddc70a4746a68554d7b687713770de539e59a739b249f8ed"
|
|
45
|
+
dependencies = [
|
|
46
|
+
"borsh-derive",
|
|
47
|
+
"cfg_aliases",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "borsh-derive"
|
|
52
|
+
version = "1.5.1"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "c3ef8005764f53cd4dca619f5bf64cafd4664dada50ece25e4d81de54c80cc0b"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"once_cell",
|
|
57
|
+
"proc-macro-crate",
|
|
58
|
+
"proc-macro2",
|
|
59
|
+
"quote",
|
|
60
|
+
"syn 2.0.87",
|
|
61
|
+
"syn_derive",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[[package]]
|
|
65
|
+
name = "bytecheck"
|
|
66
|
+
version = "0.6.12"
|
|
67
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
68
|
+
checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2"
|
|
69
|
+
dependencies = [
|
|
70
|
+
"bytecheck_derive",
|
|
71
|
+
"ptr_meta",
|
|
72
|
+
"simdutf8",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "bytecheck_derive"
|
|
77
|
+
version = "0.6.12"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"proc-macro2",
|
|
82
|
+
"quote",
|
|
83
|
+
"syn 1.0.109",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "byteorder"
|
|
88
|
+
version = "1.5.0"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "bytes"
|
|
94
|
+
version = "1.8.0"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da"
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "cfg-if"
|
|
100
|
+
version = "1.0.0"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
103
|
+
|
|
104
|
+
[[package]]
|
|
105
|
+
name = "cfg_aliases"
|
|
106
|
+
version = "0.2.1"
|
|
107
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
108
|
+
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
|
|
109
|
+
|
|
110
|
+
[[package]]
|
|
111
|
+
name = "equivalent"
|
|
112
|
+
version = "1.0.1"
|
|
113
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
114
|
+
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "funty"
|
|
118
|
+
version = "2.0.0"
|
|
119
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
120
|
+
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
|
|
121
|
+
|
|
122
|
+
[[package]]
|
|
123
|
+
name = "getrandom"
|
|
124
|
+
version = "0.2.15"
|
|
125
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
126
|
+
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
|
|
127
|
+
dependencies = [
|
|
128
|
+
"cfg-if",
|
|
129
|
+
"libc",
|
|
130
|
+
"wasi",
|
|
131
|
+
]
|
|
132
|
+
|
|
133
|
+
[[package]]
|
|
134
|
+
name = "hashbrown"
|
|
135
|
+
version = "0.12.3"
|
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
+
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
|
138
|
+
dependencies = [
|
|
139
|
+
"ahash",
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[[package]]
|
|
143
|
+
name = "hashbrown"
|
|
144
|
+
version = "0.15.0"
|
|
145
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
+
checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
|
|
147
|
+
|
|
148
|
+
[[package]]
|
|
149
|
+
name = "heck"
|
|
150
|
+
version = "0.5.0"
|
|
151
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
152
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
153
|
+
|
|
154
|
+
[[package]]
|
|
155
|
+
name = "indexmap"
|
|
156
|
+
version = "2.6.0"
|
|
157
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
158
|
+
checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
|
|
159
|
+
dependencies = [
|
|
160
|
+
"equivalent",
|
|
161
|
+
"hashbrown 0.15.0",
|
|
162
|
+
]
|
|
163
|
+
|
|
164
|
+
[[package]]
|
|
165
|
+
name = "indoc"
|
|
166
|
+
version = "2.0.5"
|
|
167
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
168
|
+
checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "itoa"
|
|
172
|
+
version = "1.0.11"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "libc"
|
|
178
|
+
version = "0.2.161"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1"
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "memchr"
|
|
184
|
+
version = "2.7.4"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
|
187
|
+
|
|
188
|
+
[[package]]
|
|
189
|
+
name = "memoffset"
|
|
190
|
+
version = "0.9.1"
|
|
191
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
192
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
193
|
+
dependencies = [
|
|
194
|
+
"autocfg",
|
|
195
|
+
]
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "num-traits"
|
|
199
|
+
version = "0.2.19"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
202
|
+
dependencies = [
|
|
203
|
+
"autocfg",
|
|
204
|
+
]
|
|
205
|
+
|
|
206
|
+
[[package]]
|
|
207
|
+
name = "once_cell"
|
|
208
|
+
version = "1.20.2"
|
|
209
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
210
|
+
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
|
|
211
|
+
|
|
212
|
+
[[package]]
|
|
213
|
+
name = "ooverpunch"
|
|
214
|
+
version = "0.1.0"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"overpunch",
|
|
217
|
+
"pyo3",
|
|
218
|
+
"rust_decimal",
|
|
219
|
+
]
|
|
220
|
+
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "overpunch"
|
|
223
|
+
version = "0.3.0"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "d43baa326eb15ff6bbdf551c4d6c601a3e6ebee18cf0705b8e8d620ea321bf9f"
|
|
226
|
+
dependencies = [
|
|
227
|
+
"rust_decimal",
|
|
228
|
+
"thiserror",
|
|
229
|
+
]
|
|
230
|
+
|
|
231
|
+
[[package]]
|
|
232
|
+
name = "portable-atomic"
|
|
233
|
+
version = "1.9.0"
|
|
234
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
235
|
+
checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
|
|
236
|
+
|
|
237
|
+
[[package]]
|
|
238
|
+
name = "ppv-lite86"
|
|
239
|
+
version = "0.2.20"
|
|
240
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
241
|
+
checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
|
|
242
|
+
dependencies = [
|
|
243
|
+
"zerocopy",
|
|
244
|
+
]
|
|
245
|
+
|
|
246
|
+
[[package]]
|
|
247
|
+
name = "proc-macro-crate"
|
|
248
|
+
version = "3.2.0"
|
|
249
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
250
|
+
checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b"
|
|
251
|
+
dependencies = [
|
|
252
|
+
"toml_edit",
|
|
253
|
+
]
|
|
254
|
+
|
|
255
|
+
[[package]]
|
|
256
|
+
name = "proc-macro-error"
|
|
257
|
+
version = "1.0.4"
|
|
258
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
|
260
|
+
dependencies = [
|
|
261
|
+
"proc-macro-error-attr",
|
|
262
|
+
"proc-macro2",
|
|
263
|
+
"quote",
|
|
264
|
+
"version_check",
|
|
265
|
+
]
|
|
266
|
+
|
|
267
|
+
[[package]]
|
|
268
|
+
name = "proc-macro-error-attr"
|
|
269
|
+
version = "1.0.4"
|
|
270
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
271
|
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
|
272
|
+
dependencies = [
|
|
273
|
+
"proc-macro2",
|
|
274
|
+
"quote",
|
|
275
|
+
"version_check",
|
|
276
|
+
]
|
|
277
|
+
|
|
278
|
+
[[package]]
|
|
279
|
+
name = "proc-macro2"
|
|
280
|
+
version = "1.0.89"
|
|
281
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
+
checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
|
|
283
|
+
dependencies = [
|
|
284
|
+
"unicode-ident",
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
[[package]]
|
|
288
|
+
name = "ptr_meta"
|
|
289
|
+
version = "0.1.4"
|
|
290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
291
|
+
checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1"
|
|
292
|
+
dependencies = [
|
|
293
|
+
"ptr_meta_derive",
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
[[package]]
|
|
297
|
+
name = "ptr_meta_derive"
|
|
298
|
+
version = "0.1.4"
|
|
299
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
+
checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac"
|
|
301
|
+
dependencies = [
|
|
302
|
+
"proc-macro2",
|
|
303
|
+
"quote",
|
|
304
|
+
"syn 1.0.109",
|
|
305
|
+
]
|
|
306
|
+
|
|
307
|
+
[[package]]
|
|
308
|
+
name = "pyo3"
|
|
309
|
+
version = "0.22.5"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "3d922163ba1f79c04bc49073ba7b32fd5a8d3b76a87c955921234b8e77333c51"
|
|
312
|
+
dependencies = [
|
|
313
|
+
"cfg-if",
|
|
314
|
+
"indoc",
|
|
315
|
+
"libc",
|
|
316
|
+
"memoffset",
|
|
317
|
+
"once_cell",
|
|
318
|
+
"portable-atomic",
|
|
319
|
+
"pyo3-build-config",
|
|
320
|
+
"pyo3-ffi",
|
|
321
|
+
"pyo3-macros",
|
|
322
|
+
"rust_decimal",
|
|
323
|
+
"unindent",
|
|
324
|
+
]
|
|
325
|
+
|
|
326
|
+
[[package]]
|
|
327
|
+
name = "pyo3-build-config"
|
|
328
|
+
version = "0.22.5"
|
|
329
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
330
|
+
checksum = "bc38c5feeb496c8321091edf3d63e9a6829eab4b863b4a6a65f26f3e9cc6b179"
|
|
331
|
+
dependencies = [
|
|
332
|
+
"once_cell",
|
|
333
|
+
"target-lexicon",
|
|
334
|
+
]
|
|
335
|
+
|
|
336
|
+
[[package]]
|
|
337
|
+
name = "pyo3-ffi"
|
|
338
|
+
version = "0.22.5"
|
|
339
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
340
|
+
checksum = "94845622d88ae274d2729fcefc850e63d7a3ddff5e3ce11bd88486db9f1d357d"
|
|
341
|
+
dependencies = [
|
|
342
|
+
"libc",
|
|
343
|
+
"pyo3-build-config",
|
|
344
|
+
]
|
|
345
|
+
|
|
346
|
+
[[package]]
|
|
347
|
+
name = "pyo3-macros"
|
|
348
|
+
version = "0.22.5"
|
|
349
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
350
|
+
checksum = "e655aad15e09b94ffdb3ce3d217acf652e26bbc37697ef012f5e5e348c716e5e"
|
|
351
|
+
dependencies = [
|
|
352
|
+
"proc-macro2",
|
|
353
|
+
"pyo3-macros-backend",
|
|
354
|
+
"quote",
|
|
355
|
+
"syn 2.0.87",
|
|
356
|
+
]
|
|
357
|
+
|
|
358
|
+
[[package]]
|
|
359
|
+
name = "pyo3-macros-backend"
|
|
360
|
+
version = "0.22.5"
|
|
361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
+
checksum = "ae1e3f09eecd94618f60a455a23def79f79eba4dc561a97324bf9ac8c6df30ce"
|
|
363
|
+
dependencies = [
|
|
364
|
+
"heck",
|
|
365
|
+
"proc-macro2",
|
|
366
|
+
"pyo3-build-config",
|
|
367
|
+
"quote",
|
|
368
|
+
"syn 2.0.87",
|
|
369
|
+
]
|
|
370
|
+
|
|
371
|
+
[[package]]
|
|
372
|
+
name = "quote"
|
|
373
|
+
version = "1.0.37"
|
|
374
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
375
|
+
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
|
|
376
|
+
dependencies = [
|
|
377
|
+
"proc-macro2",
|
|
378
|
+
]
|
|
379
|
+
|
|
380
|
+
[[package]]
|
|
381
|
+
name = "radium"
|
|
382
|
+
version = "0.7.0"
|
|
383
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
384
|
+
checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
|
|
385
|
+
|
|
386
|
+
[[package]]
|
|
387
|
+
name = "rand"
|
|
388
|
+
version = "0.8.5"
|
|
389
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
390
|
+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
|
391
|
+
dependencies = [
|
|
392
|
+
"libc",
|
|
393
|
+
"rand_chacha",
|
|
394
|
+
"rand_core",
|
|
395
|
+
]
|
|
396
|
+
|
|
397
|
+
[[package]]
|
|
398
|
+
name = "rand_chacha"
|
|
399
|
+
version = "0.3.1"
|
|
400
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
401
|
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
|
402
|
+
dependencies = [
|
|
403
|
+
"ppv-lite86",
|
|
404
|
+
"rand_core",
|
|
405
|
+
]
|
|
406
|
+
|
|
407
|
+
[[package]]
|
|
408
|
+
name = "rand_core"
|
|
409
|
+
version = "0.6.4"
|
|
410
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
411
|
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
412
|
+
dependencies = [
|
|
413
|
+
"getrandom",
|
|
414
|
+
]
|
|
415
|
+
|
|
416
|
+
[[package]]
|
|
417
|
+
name = "rend"
|
|
418
|
+
version = "0.4.2"
|
|
419
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
420
|
+
checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c"
|
|
421
|
+
dependencies = [
|
|
422
|
+
"bytecheck",
|
|
423
|
+
]
|
|
424
|
+
|
|
425
|
+
[[package]]
|
|
426
|
+
name = "rkyv"
|
|
427
|
+
version = "0.7.45"
|
|
428
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
429
|
+
checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b"
|
|
430
|
+
dependencies = [
|
|
431
|
+
"bitvec",
|
|
432
|
+
"bytecheck",
|
|
433
|
+
"bytes",
|
|
434
|
+
"hashbrown 0.12.3",
|
|
435
|
+
"ptr_meta",
|
|
436
|
+
"rend",
|
|
437
|
+
"rkyv_derive",
|
|
438
|
+
"seahash",
|
|
439
|
+
"tinyvec",
|
|
440
|
+
"uuid",
|
|
441
|
+
]
|
|
442
|
+
|
|
443
|
+
[[package]]
|
|
444
|
+
name = "rkyv_derive"
|
|
445
|
+
version = "0.7.45"
|
|
446
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
447
|
+
checksum = "503d1d27590a2b0a3a4ca4c94755aa2875657196ecbf401a42eff41d7de532c0"
|
|
448
|
+
dependencies = [
|
|
449
|
+
"proc-macro2",
|
|
450
|
+
"quote",
|
|
451
|
+
"syn 1.0.109",
|
|
452
|
+
]
|
|
453
|
+
|
|
454
|
+
[[package]]
|
|
455
|
+
name = "rust_decimal"
|
|
456
|
+
version = "1.36.0"
|
|
457
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
458
|
+
checksum = "b082d80e3e3cc52b2ed634388d436fe1f4de6af5786cc2de9ba9737527bdf555"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"arrayvec",
|
|
461
|
+
"borsh",
|
|
462
|
+
"bytes",
|
|
463
|
+
"num-traits",
|
|
464
|
+
"rand",
|
|
465
|
+
"rkyv",
|
|
466
|
+
"serde",
|
|
467
|
+
"serde_json",
|
|
468
|
+
]
|
|
469
|
+
|
|
470
|
+
[[package]]
|
|
471
|
+
name = "ryu"
|
|
472
|
+
version = "1.0.18"
|
|
473
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
474
|
+
checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
|
|
475
|
+
|
|
476
|
+
[[package]]
|
|
477
|
+
name = "seahash"
|
|
478
|
+
version = "4.1.0"
|
|
479
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
|
+
checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b"
|
|
481
|
+
|
|
482
|
+
[[package]]
|
|
483
|
+
name = "serde"
|
|
484
|
+
version = "1.0.214"
|
|
485
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
486
|
+
checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5"
|
|
487
|
+
dependencies = [
|
|
488
|
+
"serde_derive",
|
|
489
|
+
]
|
|
490
|
+
|
|
491
|
+
[[package]]
|
|
492
|
+
name = "serde_derive"
|
|
493
|
+
version = "1.0.214"
|
|
494
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
495
|
+
checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766"
|
|
496
|
+
dependencies = [
|
|
497
|
+
"proc-macro2",
|
|
498
|
+
"quote",
|
|
499
|
+
"syn 2.0.87",
|
|
500
|
+
]
|
|
501
|
+
|
|
502
|
+
[[package]]
|
|
503
|
+
name = "serde_json"
|
|
504
|
+
version = "1.0.132"
|
|
505
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
506
|
+
checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03"
|
|
507
|
+
dependencies = [
|
|
508
|
+
"itoa",
|
|
509
|
+
"memchr",
|
|
510
|
+
"ryu",
|
|
511
|
+
"serde",
|
|
512
|
+
]
|
|
513
|
+
|
|
514
|
+
[[package]]
|
|
515
|
+
name = "simdutf8"
|
|
516
|
+
version = "0.1.5"
|
|
517
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
518
|
+
checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
|
|
519
|
+
|
|
520
|
+
[[package]]
|
|
521
|
+
name = "syn"
|
|
522
|
+
version = "1.0.109"
|
|
523
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
524
|
+
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
|
525
|
+
dependencies = [
|
|
526
|
+
"proc-macro2",
|
|
527
|
+
"quote",
|
|
528
|
+
"unicode-ident",
|
|
529
|
+
]
|
|
530
|
+
|
|
531
|
+
[[package]]
|
|
532
|
+
name = "syn"
|
|
533
|
+
version = "2.0.87"
|
|
534
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
+
checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
|
|
536
|
+
dependencies = [
|
|
537
|
+
"proc-macro2",
|
|
538
|
+
"quote",
|
|
539
|
+
"unicode-ident",
|
|
540
|
+
]
|
|
541
|
+
|
|
542
|
+
[[package]]
|
|
543
|
+
name = "syn_derive"
|
|
544
|
+
version = "0.1.8"
|
|
545
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
546
|
+
checksum = "1329189c02ff984e9736652b1631330da25eaa6bc639089ed4915d25446cbe7b"
|
|
547
|
+
dependencies = [
|
|
548
|
+
"proc-macro-error",
|
|
549
|
+
"proc-macro2",
|
|
550
|
+
"quote",
|
|
551
|
+
"syn 2.0.87",
|
|
552
|
+
]
|
|
553
|
+
|
|
554
|
+
[[package]]
|
|
555
|
+
name = "tap"
|
|
556
|
+
version = "1.0.1"
|
|
557
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
558
|
+
checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
|
|
559
|
+
|
|
560
|
+
[[package]]
|
|
561
|
+
name = "target-lexicon"
|
|
562
|
+
version = "0.12.16"
|
|
563
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
564
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
565
|
+
|
|
566
|
+
[[package]]
|
|
567
|
+
name = "thiserror"
|
|
568
|
+
version = "1.0.67"
|
|
569
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
570
|
+
checksum = "3b3c6efbfc763e64eb85c11c25320f0737cb7364c4b6336db90aa9ebe27a0bbd"
|
|
571
|
+
dependencies = [
|
|
572
|
+
"thiserror-impl",
|
|
573
|
+
]
|
|
574
|
+
|
|
575
|
+
[[package]]
|
|
576
|
+
name = "thiserror-impl"
|
|
577
|
+
version = "1.0.67"
|
|
578
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
579
|
+
checksum = "b607164372e89797d78b8e23a6d67d5d1038c1c65efd52e1389ef8b77caba2a6"
|
|
580
|
+
dependencies = [
|
|
581
|
+
"proc-macro2",
|
|
582
|
+
"quote",
|
|
583
|
+
"syn 2.0.87",
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
[[package]]
|
|
587
|
+
name = "tinyvec"
|
|
588
|
+
version = "1.8.0"
|
|
589
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
590
|
+
checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
|
|
591
|
+
dependencies = [
|
|
592
|
+
"tinyvec_macros",
|
|
593
|
+
]
|
|
594
|
+
|
|
595
|
+
[[package]]
|
|
596
|
+
name = "tinyvec_macros"
|
|
597
|
+
version = "0.1.1"
|
|
598
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
599
|
+
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
|
600
|
+
|
|
601
|
+
[[package]]
|
|
602
|
+
name = "toml_datetime"
|
|
603
|
+
version = "0.6.8"
|
|
604
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
605
|
+
checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41"
|
|
606
|
+
|
|
607
|
+
[[package]]
|
|
608
|
+
name = "toml_edit"
|
|
609
|
+
version = "0.22.22"
|
|
610
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
611
|
+
checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5"
|
|
612
|
+
dependencies = [
|
|
613
|
+
"indexmap",
|
|
614
|
+
"toml_datetime",
|
|
615
|
+
"winnow",
|
|
616
|
+
]
|
|
617
|
+
|
|
618
|
+
[[package]]
|
|
619
|
+
name = "unicode-ident"
|
|
620
|
+
version = "1.0.13"
|
|
621
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
622
|
+
checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
|
|
623
|
+
|
|
624
|
+
[[package]]
|
|
625
|
+
name = "unindent"
|
|
626
|
+
version = "0.2.3"
|
|
627
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
628
|
+
checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
|
|
629
|
+
|
|
630
|
+
[[package]]
|
|
631
|
+
name = "uuid"
|
|
632
|
+
version = "1.11.0"
|
|
633
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
634
|
+
checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a"
|
|
635
|
+
|
|
636
|
+
[[package]]
|
|
637
|
+
name = "version_check"
|
|
638
|
+
version = "0.9.5"
|
|
639
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
640
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
641
|
+
|
|
642
|
+
[[package]]
|
|
643
|
+
name = "wasi"
|
|
644
|
+
version = "0.11.0+wasi-snapshot-preview1"
|
|
645
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
646
|
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
647
|
+
|
|
648
|
+
[[package]]
|
|
649
|
+
name = "winnow"
|
|
650
|
+
version = "0.6.20"
|
|
651
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
652
|
+
checksum = "36c1fec1a2bb5866f07c25f68c26e565c4c200aebb96d7e55710c19d3e8ac49b"
|
|
653
|
+
dependencies = [
|
|
654
|
+
"memchr",
|
|
655
|
+
]
|
|
656
|
+
|
|
657
|
+
[[package]]
|
|
658
|
+
name = "wyz"
|
|
659
|
+
version = "0.5.1"
|
|
660
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
661
|
+
checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed"
|
|
662
|
+
dependencies = [
|
|
663
|
+
"tap",
|
|
664
|
+
]
|
|
665
|
+
|
|
666
|
+
[[package]]
|
|
667
|
+
name = "zerocopy"
|
|
668
|
+
version = "0.7.35"
|
|
669
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
670
|
+
checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
|
|
671
|
+
dependencies = [
|
|
672
|
+
"byteorder",
|
|
673
|
+
"zerocopy-derive",
|
|
674
|
+
]
|
|
675
|
+
|
|
676
|
+
[[package]]
|
|
677
|
+
name = "zerocopy-derive"
|
|
678
|
+
version = "0.7.35"
|
|
679
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
680
|
+
checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
|
|
681
|
+
dependencies = [
|
|
682
|
+
"proc-macro2",
|
|
683
|
+
"quote",
|
|
684
|
+
"syn 2.0.87",
|
|
685
|
+
]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "ooverpunch"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
|
|
6
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
7
|
+
[lib]
|
|
8
|
+
name = "ooverpunch"
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
[dependencies]
|
|
12
|
+
pyo3 = { version = "0.22.0", features = ["rust_decimal"] }
|
|
13
|
+
overpunch = "0.3.0"
|
|
14
|
+
rust_decimal = "1.35.0"
|
ooverpunch-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2024 Ryan P. Kelly
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: ooverpunch
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Classifier: Programming Language :: Rust
|
|
5
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
|
+
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
10
|
+
|
|
11
|
+
ooverpunch
|
|
12
|
+
==========
|
|
13
|
+
|
|
14
|
+
Python wrapper around Rust [overpunch](https://crates.io/crates/overpunch).
|
|
15
|
+
|
|
16
|
+
Usage:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
from decimal import Decimal
|
|
20
|
+
|
|
21
|
+
import ooverpunch
|
|
22
|
+
|
|
23
|
+
print(ooverpunch.extract("123N", 2))
|
|
24
|
+
print(ooverpunch.format(Decimal("29.45"), 2))
|
|
25
|
+
|
|
26
|
+
print(ooverpunch.convert_from_signed_format("123N", "s9(7)v99"))
|
|
27
|
+
print(ooverpunch.convert_to_signed_format(Decimal("29.45"), "s9(7)v99"))
|
|
28
|
+
```
|
|
29
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
ooverpunch
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
Python wrapper around Rust [overpunch](https://crates.io/crates/overpunch).
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
from decimal import Decimal
|
|
10
|
+
|
|
11
|
+
import ooverpunch
|
|
12
|
+
|
|
13
|
+
print(ooverpunch.extract("123N", 2))
|
|
14
|
+
print(ooverpunch.format(Decimal("29.45"), 2))
|
|
15
|
+
|
|
16
|
+
print(ooverpunch.convert_from_signed_format("123N", "s9(7)v99"))
|
|
17
|
+
print(ooverpunch.convert_to_signed_format(Decimal("29.45"), "s9(7)v99"))
|
|
18
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin>=1.7,<2.0", "ziglang"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ooverpunch"
|
|
7
|
+
requires-python = ">=3.8"
|
|
8
|
+
classifiers = [
|
|
9
|
+
"Programming Language :: Rust",
|
|
10
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
11
|
+
"Programming Language :: Python :: Implementation :: PyPy",
|
|
12
|
+
]
|
|
13
|
+
dynamic = ["version"]
|
|
14
|
+
[tool.maturin]
|
|
15
|
+
features = ["pyo3/extension-module"]
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
use overpunch::{
|
|
2
|
+
convert_from_signed_format as convert_from_signed_format_rs,
|
|
3
|
+
convert_to_signed_format as convert_to_signed_format_rs, extract as extract_rs,
|
|
4
|
+
format as format_rs, OverpunchError as _OverpunchError,
|
|
5
|
+
};
|
|
6
|
+
use pyo3::exceptions::PyValueError;
|
|
7
|
+
use pyo3::prelude::*;
|
|
8
|
+
use rust_decimal::Decimal;
|
|
9
|
+
|
|
10
|
+
struct OverpunchError(_OverpunchError);
|
|
11
|
+
|
|
12
|
+
impl From<OverpunchError> for PyErr {
|
|
13
|
+
fn from(err: OverpunchError) -> PyErr {
|
|
14
|
+
PyValueError::new_err(format!("{}", err.0))
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
impl From<_OverpunchError> for OverpunchError {
|
|
19
|
+
fn from(other: _OverpunchError) -> Self {
|
|
20
|
+
Self(other)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
#[pyfunction]
|
|
25
|
+
fn convert_from_signed_format(value: &str, format: &str) -> Result<Decimal, OverpunchError> {
|
|
26
|
+
Ok(convert_from_signed_format_rs(value, format).unwrap())
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#[pyfunction]
|
|
30
|
+
fn convert_to_signed_format(value: Decimal, format: &str) -> Result<String, OverpunchError> {
|
|
31
|
+
Ok(convert_to_signed_format_rs(value, format).unwrap())
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
#[pyfunction]
|
|
35
|
+
fn extract(value: &str, decimals: usize) -> Result<Decimal, OverpunchError> {
|
|
36
|
+
Ok(extract_rs(value, decimals)?)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#[pyfunction]
|
|
40
|
+
fn format(value: Decimal, decimals: usize) -> Result<String, OverpunchError> {
|
|
41
|
+
Ok(format_rs(value, decimals)?)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#[pymodule]
|
|
45
|
+
fn ooverpunch(m: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
46
|
+
m.add_function(wrap_pyfunction!(convert_from_signed_format, m)?)?;
|
|
47
|
+
m.add_function(wrap_pyfunction!(convert_to_signed_format, m)?)?;
|
|
48
|
+
m.add_function(wrap_pyfunction!(extract, m)?)?;
|
|
49
|
+
m.add_function(wrap_pyfunction!(format, m)?)?;
|
|
50
|
+
Ok(())
|
|
51
|
+
}
|