ryjwt 0.0.0a0__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.
- ryjwt-0.0.0a0/.gitignore +50 -0
- ryjwt-0.0.0a0/.python-version +1 -0
- ryjwt-0.0.0a0/CHANGELOG.md +8 -0
- ryjwt-0.0.0a0/Cargo.lock +542 -0
- ryjwt-0.0.0a0/Cargo.toml +40 -0
- ryjwt-0.0.0a0/LICENSE +21 -0
- ryjwt-0.0.0a0/PKG-INFO +160 -0
- ryjwt-0.0.0a0/README.md +124 -0
- ryjwt-0.0.0a0/THIRD_PARTY_LICENSES +2817 -0
- ryjwt-0.0.0a0/Taskfile.yml +114 -0
- ryjwt-0.0.0a0/about.hbs +21 -0
- ryjwt-0.0.0a0/about.toml +25 -0
- ryjwt-0.0.0a0/pyproject.toml +250 -0
- ryjwt-0.0.0a0/python/ryjwt/__init__.py +50 -0
- ryjwt-0.0.0a0/python/ryjwt/_algorithms.py +24 -0
- ryjwt-0.0.0a0/python/ryjwt/_compat.py +54 -0
- ryjwt-0.0.0a0/python/ryjwt/_http.py +131 -0
- ryjwt-0.0.0a0/python/ryjwt/_jwks_client.py +658 -0
- ryjwt-0.0.0a0/python/ryjwt/_ryjwt.pyi +381 -0
- ryjwt-0.0.0a0/python/ryjwt/_types.py +501 -0
- ryjwt-0.0.0a0/python/ryjwt/py.typed +0 -0
- ryjwt-0.0.0a0/rust-toolchain.toml +5 -0
- ryjwt-0.0.0a0/rustfmt.toml +6 -0
- ryjwt-0.0.0a0/src/claims.rs +392 -0
- ryjwt-0.0.0a0/src/dates.rs +195 -0
- ryjwt-0.0.0a0/src/decoder.rs +470 -0
- ryjwt-0.0.0a0/src/encoder.rs +183 -0
- ryjwt-0.0.0a0/src/errors.rs +125 -0
- ryjwt-0.0.0a0/src/json_write.rs +195 -0
- ryjwt-0.0.0a0/src/jwks.rs +313 -0
- ryjwt-0.0.0a0/src/jws.rs +191 -0
- ryjwt-0.0.0a0/src/keys.rs +717 -0
- ryjwt-0.0.0a0/src/lib.rs +352 -0
- ryjwt-0.0.0a0/src/mac.rs +201 -0
- ryjwt-0.0.0a0/style-guide.md +504 -0
- ryjwt-0.0.0a0/tests/_support.py +253 -0
- ryjwt-0.0.0a0/tests/conftest.py +93 -0
- ryjwt-0.0.0a0/tests/smoke.py +50 -0
- ryjwt-0.0.0a0/tests/test_decode.py +1255 -0
- ryjwt-0.0.0a0/tests/test_docs.py +283 -0
- ryjwt-0.0.0a0/tests/test_encode.py +335 -0
- ryjwt-0.0.0a0/tests/test_fuzz.py +190 -0
- ryjwt-0.0.0a0/tests/test_imports.py +78 -0
- ryjwt-0.0.0a0/tests/test_interop.py +114 -0
- ryjwt-0.0.0a0/tests/test_jwks.py +544 -0
- ryjwt-0.0.0a0/tests/test_jwks_client.py +1829 -0
- ryjwt-0.0.0a0/tests/test_keys.py +489 -0
- ryjwt-0.0.0a0/tests/test_threads.py +154 -0
- ryjwt-0.0.0a0/tests/test_typing.py +233 -0
- ryjwt-0.0.0a0/tests/test_typing_errors.py +107 -0
- ryjwt-0.0.0a0/tests/test_unverified.py +223 -0
- ryjwt-0.0.0a0/tests/typing_errors/algorithms.py +15 -0
- ryjwt-0.0.0a0/tests/typing_errors/arguments.py +56 -0
- ryjwt-0.0.0a0/tests/typing_errors/public_key_cannot_encode.py +6 -0
- ryjwt-0.0.0a0/uv.lock +1634 -0
ryjwt-0.0.0a0/.gitignore
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[oc]
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
wheels/
|
|
7
|
+
*.egg-info
|
|
8
|
+
.venv
|
|
9
|
+
# A venv per other interpreter: UV_PROJECT_ENVIRONMENT=.venv-312 uv run --python 3.12 ...
|
|
10
|
+
.venv-*
|
|
11
|
+
|
|
12
|
+
# Tool caches
|
|
13
|
+
.mypy_cache/
|
|
14
|
+
.pytest_cache/
|
|
15
|
+
.ruff_cache/
|
|
16
|
+
.pyrefly/
|
|
17
|
+
.zuban/
|
|
18
|
+
.coverage
|
|
19
|
+
htmlcov/
|
|
20
|
+
|
|
21
|
+
# Rust (the extension maturin builds into python/ryjwt for local development)
|
|
22
|
+
target/
|
|
23
|
+
*.so
|
|
24
|
+
*.pyd
|
|
25
|
+
|
|
26
|
+
# Bench
|
|
27
|
+
node_modules/
|
|
28
|
+
|
|
29
|
+
# The built documentation site (task docs-test)
|
|
30
|
+
site/
|
|
31
|
+
|
|
32
|
+
# Editors and OS
|
|
33
|
+
.idea/
|
|
34
|
+
.vscode/
|
|
35
|
+
.DS_Store
|
|
36
|
+
|
|
37
|
+
# Local
|
|
38
|
+
.claude/settings.local.json
|
|
39
|
+
.claude/worktrees/
|
|
40
|
+
.env
|
|
41
|
+
.env.*
|
|
42
|
+
.in
|
|
43
|
+
.out
|
|
44
|
+
|
|
45
|
+
# Kept local for now, not published
|
|
46
|
+
plans/
|
|
47
|
+
jwks_server.py
|
|
48
|
+
run_jwks.py
|
|
49
|
+
Taskfile.tmp.yml
|
|
50
|
+
main.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.14.8
|
ryjwt-0.0.0a0/Cargo.lock
ADDED
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "ahash"
|
|
7
|
+
version = "0.8.12"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"cfg-if",
|
|
12
|
+
"getrandom 0.3.4",
|
|
13
|
+
"once_cell",
|
|
14
|
+
"version_check",
|
|
15
|
+
"zerocopy",
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
[[package]]
|
|
19
|
+
name = "autocfg"
|
|
20
|
+
version = "1.5.1"
|
|
21
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
22
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
23
|
+
|
|
24
|
+
[[package]]
|
|
25
|
+
name = "aws-lc-rs"
|
|
26
|
+
version = "1.18.1"
|
|
27
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
+
checksum = "b281d307588d634de920874890732659e2e7672f72b5e10e81badc1a8a83621e"
|
|
29
|
+
dependencies = [
|
|
30
|
+
"aws-lc-sys",
|
|
31
|
+
"untrusted",
|
|
32
|
+
"zeroize",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "aws-lc-sys"
|
|
37
|
+
version = "0.45.0"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "9bff6c3b54fad79a2e60b8102caf565819711497c1f5f092f49508e2f5c31b27"
|
|
40
|
+
dependencies = [
|
|
41
|
+
"cc",
|
|
42
|
+
"cmake",
|
|
43
|
+
"dunce",
|
|
44
|
+
"fs_extra",
|
|
45
|
+
"pkg-config",
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "base64"
|
|
50
|
+
version = "0.23.1"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "base64-simd"
|
|
56
|
+
version = "0.8.0"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195"
|
|
59
|
+
dependencies = [
|
|
60
|
+
"outref",
|
|
61
|
+
"vsimd",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[[package]]
|
|
65
|
+
name = "bitvec"
|
|
66
|
+
version = "1.1.1"
|
|
67
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
68
|
+
checksum = "ddcec3d12c579d40898fe0a9a358a803c23e9c52ca3c425707f81c9436211837"
|
|
69
|
+
dependencies = [
|
|
70
|
+
"funty",
|
|
71
|
+
"radium",
|
|
72
|
+
"tap",
|
|
73
|
+
"wyz",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "cc"
|
|
78
|
+
version = "1.6.0"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630"
|
|
81
|
+
dependencies = [
|
|
82
|
+
"find-msvc-tools",
|
|
83
|
+
"jobserver",
|
|
84
|
+
"libc",
|
|
85
|
+
"shlex",
|
|
86
|
+
]
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "cfg-if"
|
|
90
|
+
version = "1.0.5"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "cmake"
|
|
96
|
+
version = "0.1.58"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
|
|
99
|
+
dependencies = [
|
|
100
|
+
"cc",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "dunce"
|
|
105
|
+
version = "1.0.5"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "find-msvc-tools"
|
|
111
|
+
version = "0.1.14"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484"
|
|
114
|
+
|
|
115
|
+
[[package]]
|
|
116
|
+
name = "fs_extra"
|
|
117
|
+
version = "1.3.0"
|
|
118
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
119
|
+
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "funty"
|
|
123
|
+
version = "2.0.0"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "getrandom"
|
|
129
|
+
version = "0.3.4"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
|
|
132
|
+
dependencies = [
|
|
133
|
+
"cfg-if",
|
|
134
|
+
"libc",
|
|
135
|
+
"r-efi 5.3.0",
|
|
136
|
+
"wasip2",
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
[[package]]
|
|
140
|
+
name = "getrandom"
|
|
141
|
+
version = "0.4.3"
|
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
143
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
144
|
+
dependencies = [
|
|
145
|
+
"cfg-if",
|
|
146
|
+
"libc",
|
|
147
|
+
"r-efi 6.0.0",
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "heck"
|
|
152
|
+
version = "0.5.0"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
155
|
+
|
|
156
|
+
[[package]]
|
|
157
|
+
name = "itoa"
|
|
158
|
+
version = "1.0.18"
|
|
159
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
161
|
+
|
|
162
|
+
[[package]]
|
|
163
|
+
name = "jiter"
|
|
164
|
+
version = "0.17.0"
|
|
165
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
166
|
+
checksum = "bc2f2b4e673d798b3dbad0af24bc23b92013e680a6b9ad300b4e5e52fafe0586"
|
|
167
|
+
dependencies = [
|
|
168
|
+
"ahash",
|
|
169
|
+
"bitvec",
|
|
170
|
+
"lexical-parse-float",
|
|
171
|
+
"num-bigint",
|
|
172
|
+
"num-traits",
|
|
173
|
+
"pyo3",
|
|
174
|
+
"pyo3-build-config",
|
|
175
|
+
"smallvec",
|
|
176
|
+
]
|
|
177
|
+
|
|
178
|
+
[[package]]
|
|
179
|
+
name = "jobserver"
|
|
180
|
+
version = "0.1.35"
|
|
181
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
+
checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
|
|
183
|
+
dependencies = [
|
|
184
|
+
"getrandom 0.4.3",
|
|
185
|
+
"libc",
|
|
186
|
+
]
|
|
187
|
+
|
|
188
|
+
[[package]]
|
|
189
|
+
name = "lexical-parse-float"
|
|
190
|
+
version = "1.0.6"
|
|
191
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
192
|
+
checksum = "52a9f232fbd6f550bc0137dcb5f99ab674071ac2d690ac69704593cb4abbea56"
|
|
193
|
+
dependencies = [
|
|
194
|
+
"lexical-parse-integer",
|
|
195
|
+
"lexical-util",
|
|
196
|
+
]
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "lexical-parse-integer"
|
|
200
|
+
version = "1.0.6"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "9a7a039f8fb9c19c996cd7b2fcce303c1b2874fe1aca544edc85c4a5f8489b34"
|
|
203
|
+
dependencies = [
|
|
204
|
+
"lexical-util",
|
|
205
|
+
]
|
|
206
|
+
|
|
207
|
+
[[package]]
|
|
208
|
+
name = "lexical-util"
|
|
209
|
+
version = "1.0.7"
|
|
210
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
211
|
+
checksum = "2604dd126bb14f13fb5d1bd6a66155079cb9fa655b37f875b3a742c705dbed17"
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "libc"
|
|
215
|
+
version = "0.2.190"
|
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
217
|
+
checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78"
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "memchr"
|
|
221
|
+
version = "2.8.3"
|
|
222
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
224
|
+
|
|
225
|
+
[[package]]
|
|
226
|
+
name = "num-bigint"
|
|
227
|
+
version = "0.4.8"
|
|
228
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
229
|
+
checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
|
|
230
|
+
dependencies = [
|
|
231
|
+
"num-integer",
|
|
232
|
+
"num-traits",
|
|
233
|
+
]
|
|
234
|
+
|
|
235
|
+
[[package]]
|
|
236
|
+
name = "num-integer"
|
|
237
|
+
version = "0.1.47"
|
|
238
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
239
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
240
|
+
dependencies = [
|
|
241
|
+
"num-traits",
|
|
242
|
+
]
|
|
243
|
+
|
|
244
|
+
[[package]]
|
|
245
|
+
name = "num-traits"
|
|
246
|
+
version = "0.2.19"
|
|
247
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
249
|
+
dependencies = [
|
|
250
|
+
"autocfg",
|
|
251
|
+
]
|
|
252
|
+
|
|
253
|
+
[[package]]
|
|
254
|
+
name = "once_cell"
|
|
255
|
+
version = "1.21.4"
|
|
256
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
258
|
+
|
|
259
|
+
[[package]]
|
|
260
|
+
name = "outref"
|
|
261
|
+
version = "0.5.2"
|
|
262
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
263
|
+
checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"
|
|
264
|
+
|
|
265
|
+
[[package]]
|
|
266
|
+
name = "pem"
|
|
267
|
+
version = "4.0.0"
|
|
268
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
269
|
+
checksum = "d354a98a3d1251555de99e8fdd8afda05573c31b82f59063a7b0a29b5527f120"
|
|
270
|
+
dependencies = [
|
|
271
|
+
"base64",
|
|
272
|
+
"serde_core",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "pkg-config"
|
|
277
|
+
version = "0.3.34"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
|
|
280
|
+
|
|
281
|
+
[[package]]
|
|
282
|
+
name = "portable-atomic"
|
|
283
|
+
version = "1.15.0"
|
|
284
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
285
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
286
|
+
|
|
287
|
+
[[package]]
|
|
288
|
+
name = "proc-macro2"
|
|
289
|
+
version = "1.0.107"
|
|
290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
291
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
292
|
+
dependencies = [
|
|
293
|
+
"unicode-ident",
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
[[package]]
|
|
297
|
+
name = "pyo3"
|
|
298
|
+
version = "0.29.3"
|
|
299
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
+
checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655"
|
|
301
|
+
dependencies = [
|
|
302
|
+
"libc",
|
|
303
|
+
"num-bigint",
|
|
304
|
+
"num-traits",
|
|
305
|
+
"once_cell",
|
|
306
|
+
"portable-atomic",
|
|
307
|
+
"pyo3-build-config",
|
|
308
|
+
"pyo3-ffi",
|
|
309
|
+
"pyo3-macros",
|
|
310
|
+
]
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "pyo3-build-config"
|
|
314
|
+
version = "0.29.3"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb"
|
|
317
|
+
dependencies = [
|
|
318
|
+
"target-lexicon",
|
|
319
|
+
]
|
|
320
|
+
|
|
321
|
+
[[package]]
|
|
322
|
+
name = "pyo3-ffi"
|
|
323
|
+
version = "0.29.3"
|
|
324
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
325
|
+
checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330"
|
|
326
|
+
dependencies = [
|
|
327
|
+
"libc",
|
|
328
|
+
"pyo3-build-config",
|
|
329
|
+
]
|
|
330
|
+
|
|
331
|
+
[[package]]
|
|
332
|
+
name = "pyo3-macros"
|
|
333
|
+
version = "0.29.3"
|
|
334
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
335
|
+
checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6"
|
|
336
|
+
dependencies = [
|
|
337
|
+
"proc-macro2",
|
|
338
|
+
"pyo3-macros-backend",
|
|
339
|
+
"quote",
|
|
340
|
+
"syn 2.0.119",
|
|
341
|
+
]
|
|
342
|
+
|
|
343
|
+
[[package]]
|
|
344
|
+
name = "pyo3-macros-backend"
|
|
345
|
+
version = "0.29.3"
|
|
346
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
347
|
+
checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3"
|
|
348
|
+
dependencies = [
|
|
349
|
+
"heck",
|
|
350
|
+
"proc-macro2",
|
|
351
|
+
"quote",
|
|
352
|
+
"syn 2.0.119",
|
|
353
|
+
]
|
|
354
|
+
|
|
355
|
+
[[package]]
|
|
356
|
+
name = "quote"
|
|
357
|
+
version = "1.0.47"
|
|
358
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
359
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
360
|
+
dependencies = [
|
|
361
|
+
"proc-macro2",
|
|
362
|
+
]
|
|
363
|
+
|
|
364
|
+
[[package]]
|
|
365
|
+
name = "r-efi"
|
|
366
|
+
version = "5.3.0"
|
|
367
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
368
|
+
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "r-efi"
|
|
372
|
+
version = "6.0.0"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
375
|
+
|
|
376
|
+
[[package]]
|
|
377
|
+
name = "radium"
|
|
378
|
+
version = "0.7.0"
|
|
379
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
380
|
+
checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
|
|
381
|
+
|
|
382
|
+
[[package]]
|
|
383
|
+
name = "ryjwt"
|
|
384
|
+
version = "0.0.0-alpha.0"
|
|
385
|
+
dependencies = [
|
|
386
|
+
"aws-lc-rs",
|
|
387
|
+
"aws-lc-sys",
|
|
388
|
+
"base64-simd",
|
|
389
|
+
"itoa",
|
|
390
|
+
"jiter",
|
|
391
|
+
"memchr",
|
|
392
|
+
"num-bigint",
|
|
393
|
+
"pem",
|
|
394
|
+
"pyo3",
|
|
395
|
+
"ryu",
|
|
396
|
+
]
|
|
397
|
+
|
|
398
|
+
[[package]]
|
|
399
|
+
name = "ryu"
|
|
400
|
+
version = "1.0.23"
|
|
401
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
+
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
|
403
|
+
|
|
404
|
+
[[package]]
|
|
405
|
+
name = "serde_core"
|
|
406
|
+
version = "1.0.229"
|
|
407
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
408
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
409
|
+
dependencies = [
|
|
410
|
+
"serde_derive",
|
|
411
|
+
]
|
|
412
|
+
|
|
413
|
+
[[package]]
|
|
414
|
+
name = "serde_derive"
|
|
415
|
+
version = "1.0.229"
|
|
416
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
417
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
418
|
+
dependencies = [
|
|
419
|
+
"proc-macro2",
|
|
420
|
+
"quote",
|
|
421
|
+
"syn 3.0.6",
|
|
422
|
+
]
|
|
423
|
+
|
|
424
|
+
[[package]]
|
|
425
|
+
name = "shlex"
|
|
426
|
+
version = "2.0.1"
|
|
427
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
429
|
+
|
|
430
|
+
[[package]]
|
|
431
|
+
name = "smallvec"
|
|
432
|
+
version = "1.16.2"
|
|
433
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
434
|
+
checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e"
|
|
435
|
+
|
|
436
|
+
[[package]]
|
|
437
|
+
name = "syn"
|
|
438
|
+
version = "2.0.119"
|
|
439
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
440
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
441
|
+
dependencies = [
|
|
442
|
+
"proc-macro2",
|
|
443
|
+
"quote",
|
|
444
|
+
"unicode-ident",
|
|
445
|
+
]
|
|
446
|
+
|
|
447
|
+
[[package]]
|
|
448
|
+
name = "syn"
|
|
449
|
+
version = "3.0.6"
|
|
450
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
451
|
+
checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
|
|
452
|
+
dependencies = [
|
|
453
|
+
"proc-macro2",
|
|
454
|
+
"quote",
|
|
455
|
+
"unicode-ident",
|
|
456
|
+
]
|
|
457
|
+
|
|
458
|
+
[[package]]
|
|
459
|
+
name = "tap"
|
|
460
|
+
version = "1.0.1"
|
|
461
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
462
|
+
checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
|
|
463
|
+
|
|
464
|
+
[[package]]
|
|
465
|
+
name = "target-lexicon"
|
|
466
|
+
version = "0.13.5"
|
|
467
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
469
|
+
|
|
470
|
+
[[package]]
|
|
471
|
+
name = "unicode-ident"
|
|
472
|
+
version = "1.0.26"
|
|
473
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
474
|
+
checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
|
|
475
|
+
|
|
476
|
+
[[package]]
|
|
477
|
+
name = "untrusted"
|
|
478
|
+
version = "0.7.1"
|
|
479
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
480
|
+
checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
|
|
481
|
+
|
|
482
|
+
[[package]]
|
|
483
|
+
name = "version_check"
|
|
484
|
+
version = "0.9.5"
|
|
485
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
486
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
487
|
+
|
|
488
|
+
[[package]]
|
|
489
|
+
name = "vsimd"
|
|
490
|
+
version = "0.8.0"
|
|
491
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
492
|
+
checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"
|
|
493
|
+
|
|
494
|
+
[[package]]
|
|
495
|
+
name = "wasip2"
|
|
496
|
+
version = "1.0.4+wasi-0.2.12"
|
|
497
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
498
|
+
checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
|
|
499
|
+
dependencies = [
|
|
500
|
+
"wit-bindgen",
|
|
501
|
+
]
|
|
502
|
+
|
|
503
|
+
[[package]]
|
|
504
|
+
name = "wit-bindgen"
|
|
505
|
+
version = "0.57.1"
|
|
506
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
507
|
+
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
|
|
508
|
+
|
|
509
|
+
[[package]]
|
|
510
|
+
name = "wyz"
|
|
511
|
+
version = "0.5.1"
|
|
512
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
+
checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed"
|
|
514
|
+
dependencies = [
|
|
515
|
+
"tap",
|
|
516
|
+
]
|
|
517
|
+
|
|
518
|
+
[[package]]
|
|
519
|
+
name = "zerocopy"
|
|
520
|
+
version = "0.8.59"
|
|
521
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
522
|
+
checksum = "6df92bf3d9227be3d53173901ddbffac2babc27ae50f397776ffd6dc33f800cb"
|
|
523
|
+
dependencies = [
|
|
524
|
+
"zerocopy-derive",
|
|
525
|
+
]
|
|
526
|
+
|
|
527
|
+
[[package]]
|
|
528
|
+
name = "zerocopy-derive"
|
|
529
|
+
version = "0.8.59"
|
|
530
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
531
|
+
checksum = "ac4f328cf2f05d084e496c3e9c3f33ed0a183656a16e1fcec4d464d8373aec82"
|
|
532
|
+
dependencies = [
|
|
533
|
+
"proc-macro2",
|
|
534
|
+
"quote",
|
|
535
|
+
"syn 2.0.119",
|
|
536
|
+
]
|
|
537
|
+
|
|
538
|
+
[[package]]
|
|
539
|
+
name = "zeroize"
|
|
540
|
+
version = "1.9.0"
|
|
541
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
542
|
+
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
|
ryjwt-0.0.0a0/Cargo.toml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "ryjwt"
|
|
3
|
+
version = "0.0.0-alpha.0"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
publish = false
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
|
|
9
|
+
[lib]
|
|
10
|
+
name = "_ryjwt"
|
|
11
|
+
crate-type = ["cdylib"]
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
# prebuilt-nasm: on Windows x86_64 without NASM installed, use aws-lc-sys's prebuilt assembly
|
|
15
|
+
# objects (a no-op elsewhere), so a plain MSVC toolchain can build the wheel.
|
|
16
|
+
aws-lc-rs = { version = "1.18.1", features = ["prebuilt-nasm"] }
|
|
17
|
+
# Pinned to the exact version aws-lc-rs links: src/mac.rs uses its SHA-2 FFI directly.
|
|
18
|
+
aws-lc-sys = "=0.45.0"
|
|
19
|
+
base64-simd = "0.8.0"
|
|
20
|
+
itoa = "1.0.17"
|
|
21
|
+
jiter = { version = "0.17.0", features = ["python", "num-bigint"] }
|
|
22
|
+
memchr = "2.8.3"
|
|
23
|
+
num-bigint = "0.4"
|
|
24
|
+
pem = "4.0.0"
|
|
25
|
+
pyo3 = "0.29.3"
|
|
26
|
+
ryu = "1.0.23"
|
|
27
|
+
|
|
28
|
+
[lints.rust]
|
|
29
|
+
unsafe_op_in_unsafe_fn = "deny"
|
|
30
|
+
|
|
31
|
+
[lints.clippy]
|
|
32
|
+
pedantic = { level = "warn", priority = -1 }
|
|
33
|
+
expect_used = "deny"
|
|
34
|
+
panic = "deny"
|
|
35
|
+
undocumented_unsafe_blocks = "deny"
|
|
36
|
+
unwrap_used = "deny"
|
|
37
|
+
|
|
38
|
+
[profile.release]
|
|
39
|
+
lto = "fat"
|
|
40
|
+
codegen-units = 1
|
ryjwt-0.0.0a0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Roger
|
|
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.
|