tempkeys 0.1.1__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.
@@ -0,0 +1,95 @@
1
+ name: Build and Publish
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ tags: [ 'v*' ]
7
+ pull_request:
8
+ branches: [ main ]
9
+
10
+ env:
11
+ CARGO_TERM_COLOR: always
12
+
13
+ jobs:
14
+ check:
15
+ name: Check
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: dtolnay/rust-toolchain@stable
20
+ with:
21
+ components: rustfmt, clippy
22
+ - uses: Swatinem/rust-cache@v2
23
+ - run: cargo fmt --all -- --check
24
+ - run: cargo clippy --all-targets -- -D warnings
25
+ - run: cargo test --locked
26
+
27
+ build-wheels:
28
+ name: Build wheel (${{ matrix.target }})
29
+ needs: [check]
30
+ if: startsWith(github.ref, 'refs/tags/v')
31
+ strategy:
32
+ matrix:
33
+ include:
34
+ - target: x86_64-unknown-linux-gnu
35
+ os: ubuntu-latest
36
+ - target: aarch64-unknown-linux-gnu
37
+ os: ubuntu-24.04-arm
38
+ runs-on: ${{ matrix.os }}
39
+ steps:
40
+ - uses: actions/checkout@v6
41
+
42
+ - name: Set version from tag
43
+ run: sed -i "0,/^version = .*/s//version = \"${GITHUB_REF#refs/tags/v}\"/" Cargo.toml
44
+
45
+ - name: Build wheel
46
+ uses: PyO3/maturin-action@v1
47
+ with:
48
+ target: ${{ matrix.target }}
49
+ args: --release --out dist
50
+ manylinux: 2_28
51
+
52
+ - uses: actions/upload-artifact@v4
53
+ with:
54
+ name: wheels-${{ matrix.target }}
55
+ path: dist/
56
+
57
+ build-sdist:
58
+ name: Build sdist
59
+ needs: [check]
60
+ if: startsWith(github.ref, 'refs/tags/v')
61
+ runs-on: ubuntu-latest
62
+ steps:
63
+ - uses: actions/checkout@v6
64
+
65
+ - name: Set version from tag
66
+ run: sed -i "0,/^version = .*/s//version = \"${GITHUB_REF#refs/tags/v}\"/" Cargo.toml
67
+
68
+ - name: Build sdist
69
+ uses: PyO3/maturin-action@v1
70
+ with:
71
+ command: sdist
72
+ args: --out dist
73
+
74
+ - uses: actions/upload-artifact@v4
75
+ with:
76
+ name: wheels-sdist
77
+ path: dist/
78
+
79
+ publish-pypi:
80
+ name: Publish to PyPI
81
+ needs: [build-wheels, build-sdist]
82
+ runs-on: ubuntu-latest
83
+ environment: pypi
84
+ permissions:
85
+ id-token: write # OIDC token for PyPI Trusted Publishing
86
+ steps:
87
+ - uses: actions/download-artifact@v4
88
+ with:
89
+ path: dist
90
+ pattern: wheels-*
91
+ merge-multiple: true
92
+
93
+ - uses: pypa/gh-action-pypi-publish@release/v1
94
+ with:
95
+ packages-dir: dist/
@@ -0,0 +1 @@
1
+ /target
@@ -0,0 +1,417 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "aead"
7
+ version = "0.6.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "1973cfbc1a2daf9cf550e74e1f088c28e7f7d8c1e1418fb6c9dc5184b7e84c99"
10
+ dependencies = [
11
+ "crypto-common",
12
+ "inout",
13
+ ]
14
+
15
+ [[package]]
16
+ name = "anstream"
17
+ version = "1.0.0"
18
+ source = "registry+https://github.com/rust-lang/crates.io-index"
19
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
20
+ dependencies = [
21
+ "anstyle",
22
+ "anstyle-parse",
23
+ "anstyle-query",
24
+ "anstyle-wincon",
25
+ "colorchoice",
26
+ "is_terminal_polyfill",
27
+ "utf8parse",
28
+ ]
29
+
30
+ [[package]]
31
+ name = "anstyle"
32
+ version = "1.0.14"
33
+ source = "registry+https://github.com/rust-lang/crates.io-index"
34
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
35
+
36
+ [[package]]
37
+ name = "anstyle-parse"
38
+ version = "1.0.0"
39
+ source = "registry+https://github.com/rust-lang/crates.io-index"
40
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
41
+ dependencies = [
42
+ "utf8parse",
43
+ ]
44
+
45
+ [[package]]
46
+ name = "anstyle-query"
47
+ version = "1.1.5"
48
+ source = "registry+https://github.com/rust-lang/crates.io-index"
49
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
50
+ dependencies = [
51
+ "windows-sys",
52
+ ]
53
+
54
+ [[package]]
55
+ name = "anstyle-wincon"
56
+ version = "3.0.11"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
59
+ dependencies = [
60
+ "anstyle",
61
+ "once_cell_polyfill",
62
+ "windows-sys",
63
+ ]
64
+
65
+ [[package]]
66
+ name = "block-buffer"
67
+ version = "0.12.1"
68
+ source = "registry+https://github.com/rust-lang/crates.io-index"
69
+ checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
70
+ dependencies = [
71
+ "hybrid-array",
72
+ ]
73
+
74
+ [[package]]
75
+ name = "cfg-if"
76
+ version = "1.0.5"
77
+ source = "registry+https://github.com/rust-lang/crates.io-index"
78
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
79
+
80
+ [[package]]
81
+ name = "chacha20"
82
+ version = "0.10.2"
83
+ source = "registry+https://github.com/rust-lang/crates.io-index"
84
+ checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
85
+ dependencies = [
86
+ "cfg-if",
87
+ "cipher",
88
+ "cpufeatures",
89
+ ]
90
+
91
+ [[package]]
92
+ name = "chacha20poly1305"
93
+ version = "0.11.0"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "9b89e1c441e926b9c82a8d023f6e1b7ae0adcfaa7d621814e4d60789bac751cb"
96
+ dependencies = [
97
+ "aead",
98
+ "chacha20",
99
+ "cipher",
100
+ "poly1305",
101
+ ]
102
+
103
+ [[package]]
104
+ name = "cipher"
105
+ version = "0.5.2"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "e8cf2a2c93cd704877c0858356ed03480ff301ee950b43f1cbe4573b088bfa6c"
108
+ dependencies = [
109
+ "block-buffer",
110
+ "crypto-common",
111
+ "inout",
112
+ ]
113
+
114
+ [[package]]
115
+ name = "clap"
116
+ version = "4.6.7"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
119
+ dependencies = [
120
+ "clap_builder",
121
+ "clap_derive",
122
+ ]
123
+
124
+ [[package]]
125
+ name = "clap_builder"
126
+ version = "4.6.7"
127
+ source = "registry+https://github.com/rust-lang/crates.io-index"
128
+ checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
129
+ dependencies = [
130
+ "anstream",
131
+ "anstyle",
132
+ "clap_lex",
133
+ "strsim",
134
+ ]
135
+
136
+ [[package]]
137
+ name = "clap_derive"
138
+ version = "4.6.7"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
141
+ dependencies = [
142
+ "heck",
143
+ "proc-macro2",
144
+ "quote",
145
+ "syn",
146
+ ]
147
+
148
+ [[package]]
149
+ name = "clap_lex"
150
+ version = "1.1.1"
151
+ source = "registry+https://github.com/rust-lang/crates.io-index"
152
+ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
153
+
154
+ [[package]]
155
+ name = "cmov"
156
+ version = "0.5.4"
157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
158
+ checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
159
+
160
+ [[package]]
161
+ name = "colorchoice"
162
+ version = "1.0.5"
163
+ source = "registry+https://github.com/rust-lang/crates.io-index"
164
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
165
+
166
+ [[package]]
167
+ name = "cpufeatures"
168
+ version = "0.3.1"
169
+ source = "registry+https://github.com/rust-lang/crates.io-index"
170
+ checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
171
+ dependencies = [
172
+ "libc",
173
+ ]
174
+
175
+ [[package]]
176
+ name = "crypto-common"
177
+ version = "0.2.2"
178
+ source = "registry+https://github.com/rust-lang/crates.io-index"
179
+ checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
180
+ dependencies = [
181
+ "getrandom",
182
+ "hybrid-array",
183
+ "rand_core",
184
+ ]
185
+
186
+ [[package]]
187
+ name = "ctutils"
188
+ version = "0.4.2"
189
+ source = "registry+https://github.com/rust-lang/crates.io-index"
190
+ checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
191
+ dependencies = [
192
+ "cmov",
193
+ ]
194
+
195
+ [[package]]
196
+ name = "getrandom"
197
+ version = "0.4.3"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
200
+ dependencies = [
201
+ "cfg-if",
202
+ "libc",
203
+ "r-efi",
204
+ "rand_core",
205
+ ]
206
+
207
+ [[package]]
208
+ name = "heck"
209
+ version = "0.5.0"
210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
211
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
212
+
213
+ [[package]]
214
+ name = "hybrid-array"
215
+ version = "0.4.15"
216
+ source = "registry+https://github.com/rust-lang/crates.io-index"
217
+ checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
218
+ dependencies = [
219
+ "typenum",
220
+ ]
221
+
222
+ [[package]]
223
+ name = "inout"
224
+ version = "0.2.2"
225
+ source = "registry+https://github.com/rust-lang/crates.io-index"
226
+ checksum = "4250ce6452e92010fdf7268ccc5d14faa80bb12fc741938534c58f16804e03c7"
227
+ dependencies = [
228
+ "hybrid-array",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "is_terminal_polyfill"
233
+ version = "1.70.2"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
236
+
237
+ [[package]]
238
+ name = "itoa"
239
+ version = "1.0.18"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
242
+
243
+ [[package]]
244
+ name = "libc"
245
+ version = "0.2.189"
246
+ source = "registry+https://github.com/rust-lang/crates.io-index"
247
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
248
+
249
+ [[package]]
250
+ name = "memchr"
251
+ version = "2.8.3"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
254
+
255
+ [[package]]
256
+ name = "once_cell_polyfill"
257
+ version = "1.70.2"
258
+ source = "registry+https://github.com/rust-lang/crates.io-index"
259
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
260
+
261
+ [[package]]
262
+ name = "poly1305"
263
+ version = "0.9.1"
264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
265
+ checksum = "6e2d0073b297041425c7c3df6eb4792d598a15323fe63346852b092eca02904c"
266
+ dependencies = [
267
+ "cpufeatures",
268
+ "universal-hash",
269
+ ]
270
+
271
+ [[package]]
272
+ name = "proc-macro2"
273
+ version = "1.0.107"
274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
275
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
276
+ dependencies = [
277
+ "unicode-ident",
278
+ ]
279
+
280
+ [[package]]
281
+ name = "quote"
282
+ version = "1.0.47"
283
+ source = "registry+https://github.com/rust-lang/crates.io-index"
284
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
285
+ dependencies = [
286
+ "proc-macro2",
287
+ ]
288
+
289
+ [[package]]
290
+ name = "r-efi"
291
+ version = "6.0.0"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
294
+
295
+ [[package]]
296
+ name = "rand_core"
297
+ version = "0.10.1"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
300
+
301
+ [[package]]
302
+ name = "serde"
303
+ version = "1.0.229"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
306
+ dependencies = [
307
+ "serde_core",
308
+ ]
309
+
310
+ [[package]]
311
+ name = "serde_core"
312
+ version = "1.0.229"
313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
314
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
315
+ dependencies = [
316
+ "serde_derive",
317
+ ]
318
+
319
+ [[package]]
320
+ name = "serde_derive"
321
+ version = "1.0.229"
322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
323
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
324
+ dependencies = [
325
+ "proc-macro2",
326
+ "quote",
327
+ "syn",
328
+ ]
329
+
330
+ [[package]]
331
+ name = "serde_json"
332
+ version = "1.0.151"
333
+ source = "registry+https://github.com/rust-lang/crates.io-index"
334
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
335
+ dependencies = [
336
+ "itoa",
337
+ "memchr",
338
+ "serde",
339
+ "serde_core",
340
+ "zmij",
341
+ ]
342
+
343
+ [[package]]
344
+ name = "strsim"
345
+ version = "0.11.1"
346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
347
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
348
+
349
+ [[package]]
350
+ name = "syn"
351
+ version = "3.0.6"
352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
353
+ checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
354
+ dependencies = [
355
+ "proc-macro2",
356
+ "quote",
357
+ "unicode-ident",
358
+ ]
359
+
360
+ [[package]]
361
+ name = "tempkeys"
362
+ version = "0.1.1"
363
+ dependencies = [
364
+ "chacha20poly1305",
365
+ "clap",
366
+ "libc",
367
+ "serde_json",
368
+ ]
369
+
370
+ [[package]]
371
+ name = "typenum"
372
+ version = "1.20.1"
373
+ source = "registry+https://github.com/rust-lang/crates.io-index"
374
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
375
+
376
+ [[package]]
377
+ name = "unicode-ident"
378
+ version = "1.0.26"
379
+ source = "registry+https://github.com/rust-lang/crates.io-index"
380
+ checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
381
+
382
+ [[package]]
383
+ name = "universal-hash"
384
+ version = "0.6.1"
385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
386
+ checksum = "f4987bdc12753382e0bec4a65c50738ffaabc998b9cdd1f952fb5f39b0048a96"
387
+ dependencies = [
388
+ "crypto-common",
389
+ "ctutils",
390
+ ]
391
+
392
+ [[package]]
393
+ name = "utf8parse"
394
+ version = "0.2.2"
395
+ source = "registry+https://github.com/rust-lang/crates.io-index"
396
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
397
+
398
+ [[package]]
399
+ name = "windows-link"
400
+ version = "0.2.1"
401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
402
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
403
+
404
+ [[package]]
405
+ name = "windows-sys"
406
+ version = "0.61.2"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
409
+ dependencies = [
410
+ "windows-link",
411
+ ]
412
+
413
+ [[package]]
414
+ name = "zmij"
415
+ version = "1.0.23"
416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
417
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,12 @@
1
+ [package]
2
+ name = "tempkeys"
3
+ version = "0.1.1"
4
+ edition = "2024"
5
+ license = "MIT"
6
+ readme = "README.md"
7
+
8
+ [dependencies]
9
+ chacha20poly1305 = "0.11.0"
10
+ clap = { version = "4.6.7", features = ["derive"] }
11
+ libc = "0.2.189"
12
+ serde_json = "1.0.151"
tempkeys-0.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ville Vainio
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.