ossplate 0.1.0

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.
Files changed (45) hide show
  1. package/README.md +7 -0
  2. package/bin/darwin-arm64/ossplate +0 -0
  3. package/bin/darwin-x64/ossplate +3 -0
  4. package/bin/linux-x64/ossplate +3 -0
  5. package/bin/ossplate.js +5 -0
  6. package/bin/win32-x64/ossplate.exe +3 -0
  7. package/dist/index.d.ts +10 -0
  8. package/dist/index.js +56 -0
  9. package/package.json +43 -0
  10. package/scaffold/.github/workflows/ci.yml +76 -0
  11. package/scaffold/.github/workflows/publish-npm.yml +45 -0
  12. package/scaffold/.github/workflows/publish.yml +97 -0
  13. package/scaffold/.gitignore +9 -0
  14. package/scaffold/CONTRIBUTING.md +30 -0
  15. package/scaffold/LICENSE +9 -0
  16. package/scaffold/README.md +73 -0
  17. package/scaffold/core-rs/Cargo.lock +338 -0
  18. package/scaffold/core-rs/Cargo.toml +28 -0
  19. package/scaffold/core-rs/src/main.rs +1609 -0
  20. package/scaffold/docs/README.md +21 -0
  21. package/scaffold/docs/customizing-the-template.md +144 -0
  22. package/scaffold/docs/phase-1-contract.md +52 -0
  23. package/scaffold/docs/testing.md +71 -0
  24. package/scaffold/docs/upgrade-plan.md +251 -0
  25. package/scaffold/ossplate.toml +15 -0
  26. package/scaffold/scripts/verify.sh +36 -0
  27. package/scaffold/wrapper-js/README.md +7 -0
  28. package/scaffold/wrapper-js/bin/darwin-arm64/ossplate +0 -0
  29. package/scaffold/wrapper-js/bin/darwin-x64/ossplate +3 -0
  30. package/scaffold/wrapper-js/bin/linux-x64/ossplate +3 -0
  31. package/scaffold/wrapper-js/bin/ossplate.js +5 -0
  32. package/scaffold/wrapper-js/bin/win32-x64/ossplate.exe +3 -0
  33. package/scaffold/wrapper-js/package-lock.json +51 -0
  34. package/scaffold/wrapper-js/package.json +43 -0
  35. package/scaffold/wrapper-js/src/index.ts +69 -0
  36. package/scaffold/wrapper-js/tsconfig.json +14 -0
  37. package/scaffold/wrapper-py/README.md +7 -0
  38. package/scaffold/wrapper-py/hatch_build.py +16 -0
  39. package/scaffold/wrapper-py/pyproject.toml +37 -0
  40. package/scaffold/wrapper-py/src/ossplate/__init__.py +3 -0
  41. package/scaffold/wrapper-py/src/ossplate/bin/darwin-arm64/ossplate +0 -0
  42. package/scaffold/wrapper-py/src/ossplate/bin/darwin-x64/ossplate +3 -0
  43. package/scaffold/wrapper-py/src/ossplate/bin/linux-x64/ossplate +3 -0
  44. package/scaffold/wrapper-py/src/ossplate/bin/win32-x64/ossplate.exe +3 -0
  45. package/scaffold/wrapper-py/src/ossplate/cli.py +55 -0
@@ -0,0 +1,338 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "anstream"
7
+ version = "1.0.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
10
+ dependencies = [
11
+ "anstyle",
12
+ "anstyle-parse",
13
+ "anstyle-query",
14
+ "anstyle-wincon",
15
+ "colorchoice",
16
+ "is_terminal_polyfill",
17
+ "utf8parse",
18
+ ]
19
+
20
+ [[package]]
21
+ name = "anstyle"
22
+ version = "1.0.14"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
25
+
26
+ [[package]]
27
+ name = "anstyle-parse"
28
+ version = "1.0.0"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
31
+ dependencies = [
32
+ "utf8parse",
33
+ ]
34
+
35
+ [[package]]
36
+ name = "anstyle-query"
37
+ version = "1.1.5"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
40
+ dependencies = [
41
+ "windows-sys",
42
+ ]
43
+
44
+ [[package]]
45
+ name = "anstyle-wincon"
46
+ version = "3.0.11"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
49
+ dependencies = [
50
+ "anstyle",
51
+ "once_cell_polyfill",
52
+ "windows-sys",
53
+ ]
54
+
55
+ [[package]]
56
+ name = "anyhow"
57
+ version = "1.0.102"
58
+ source = "registry+https://github.com/rust-lang/crates.io-index"
59
+ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
60
+
61
+ [[package]]
62
+ name = "clap"
63
+ version = "4.6.0"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351"
66
+ dependencies = [
67
+ "clap_builder",
68
+ "clap_derive",
69
+ ]
70
+
71
+ [[package]]
72
+ name = "clap_builder"
73
+ version = "4.6.0"
74
+ source = "registry+https://github.com/rust-lang/crates.io-index"
75
+ checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
76
+ dependencies = [
77
+ "anstream",
78
+ "anstyle",
79
+ "clap_lex",
80
+ "strsim",
81
+ ]
82
+
83
+ [[package]]
84
+ name = "clap_derive"
85
+ version = "4.6.0"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a"
88
+ dependencies = [
89
+ "heck",
90
+ "proc-macro2",
91
+ "quote",
92
+ "syn",
93
+ ]
94
+
95
+ [[package]]
96
+ name = "clap_lex"
97
+ version = "1.1.0"
98
+ source = "registry+https://github.com/rust-lang/crates.io-index"
99
+ checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
100
+
101
+ [[package]]
102
+ name = "colorchoice"
103
+ version = "1.0.5"
104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
105
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
106
+
107
+ [[package]]
108
+ name = "equivalent"
109
+ version = "1.0.2"
110
+ source = "registry+https://github.com/rust-lang/crates.io-index"
111
+ checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
112
+
113
+ [[package]]
114
+ name = "hashbrown"
115
+ version = "0.16.1"
116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
117
+ checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
118
+
119
+ [[package]]
120
+ name = "heck"
121
+ version = "0.5.0"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
124
+
125
+ [[package]]
126
+ name = "indexmap"
127
+ version = "2.13.0"
128
+ source = "registry+https://github.com/rust-lang/crates.io-index"
129
+ checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
130
+ dependencies = [
131
+ "equivalent",
132
+ "hashbrown",
133
+ ]
134
+
135
+ [[package]]
136
+ name = "is_terminal_polyfill"
137
+ version = "1.70.2"
138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
139
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
140
+
141
+ [[package]]
142
+ name = "itoa"
143
+ version = "1.0.18"
144
+ source = "registry+https://github.com/rust-lang/crates.io-index"
145
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
146
+
147
+ [[package]]
148
+ name = "memchr"
149
+ version = "2.8.0"
150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
151
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
152
+
153
+ [[package]]
154
+ name = "once_cell_polyfill"
155
+ version = "1.70.2"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
158
+
159
+ [[package]]
160
+ name = "ossplate"
161
+ version = "0.1.0"
162
+ dependencies = [
163
+ "anyhow",
164
+ "clap",
165
+ "serde",
166
+ "serde_json",
167
+ "toml",
168
+ ]
169
+
170
+ [[package]]
171
+ name = "proc-macro2"
172
+ version = "1.0.106"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
175
+ dependencies = [
176
+ "unicode-ident",
177
+ ]
178
+
179
+ [[package]]
180
+ name = "quote"
181
+ version = "1.0.45"
182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
183
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
184
+ dependencies = [
185
+ "proc-macro2",
186
+ ]
187
+
188
+ [[package]]
189
+ name = "serde"
190
+ version = "1.0.228"
191
+ source = "registry+https://github.com/rust-lang/crates.io-index"
192
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
193
+ dependencies = [
194
+ "serde_core",
195
+ "serde_derive",
196
+ ]
197
+
198
+ [[package]]
199
+ name = "serde_core"
200
+ version = "1.0.228"
201
+ source = "registry+https://github.com/rust-lang/crates.io-index"
202
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
203
+ dependencies = [
204
+ "serde_derive",
205
+ ]
206
+
207
+ [[package]]
208
+ name = "serde_derive"
209
+ version = "1.0.228"
210
+ source = "registry+https://github.com/rust-lang/crates.io-index"
211
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
212
+ dependencies = [
213
+ "proc-macro2",
214
+ "quote",
215
+ "syn",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "serde_json"
220
+ version = "1.0.149"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
223
+ dependencies = [
224
+ "itoa",
225
+ "memchr",
226
+ "serde",
227
+ "serde_core",
228
+ "zmij",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "serde_spanned"
233
+ version = "0.6.9"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
236
+ dependencies = [
237
+ "serde",
238
+ ]
239
+
240
+ [[package]]
241
+ name = "strsim"
242
+ version = "0.11.1"
243
+ source = "registry+https://github.com/rust-lang/crates.io-index"
244
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
245
+
246
+ [[package]]
247
+ name = "syn"
248
+ version = "2.0.117"
249
+ source = "registry+https://github.com/rust-lang/crates.io-index"
250
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
251
+ dependencies = [
252
+ "proc-macro2",
253
+ "quote",
254
+ "unicode-ident",
255
+ ]
256
+
257
+ [[package]]
258
+ name = "toml"
259
+ version = "0.8.23"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
262
+ dependencies = [
263
+ "serde",
264
+ "serde_spanned",
265
+ "toml_datetime",
266
+ "toml_edit",
267
+ ]
268
+
269
+ [[package]]
270
+ name = "toml_datetime"
271
+ version = "0.6.11"
272
+ source = "registry+https://github.com/rust-lang/crates.io-index"
273
+ checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
274
+ dependencies = [
275
+ "serde",
276
+ ]
277
+
278
+ [[package]]
279
+ name = "toml_edit"
280
+ version = "0.22.27"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
283
+ dependencies = [
284
+ "indexmap",
285
+ "serde",
286
+ "serde_spanned",
287
+ "toml_datetime",
288
+ "toml_write",
289
+ "winnow",
290
+ ]
291
+
292
+ [[package]]
293
+ name = "toml_write"
294
+ version = "0.1.2"
295
+ source = "registry+https://github.com/rust-lang/crates.io-index"
296
+ checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
297
+
298
+ [[package]]
299
+ name = "unicode-ident"
300
+ version = "1.0.24"
301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
302
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
303
+
304
+ [[package]]
305
+ name = "utf8parse"
306
+ version = "0.2.2"
307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
308
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
309
+
310
+ [[package]]
311
+ name = "windows-link"
312
+ version = "0.2.1"
313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
314
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
315
+
316
+ [[package]]
317
+ name = "windows-sys"
318
+ version = "0.61.2"
319
+ source = "registry+https://github.com/rust-lang/crates.io-index"
320
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
321
+ dependencies = [
322
+ "windows-link",
323
+ ]
324
+
325
+ [[package]]
326
+ name = "winnow"
327
+ version = "0.7.15"
328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
329
+ checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
330
+ dependencies = [
331
+ "memchr",
332
+ ]
333
+
334
+ [[package]]
335
+ name = "zmij"
336
+ version = "1.0.21"
337
+ source = "registry+https://github.com/rust-lang/crates.io-index"
338
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
@@ -0,0 +1,28 @@
1
+ [package]
2
+ name = "ossplate"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ authors = ["Stef <stefdevscore@github.com>"]
6
+ description = "A practical baseline for shipping one project across Cargo, npm, and PyPI without starting from scratch every time."
7
+ license = "Unlicense"
8
+ readme = "../README.md"
9
+ repository = "https://github.com/stefdevscore/ossplate"
10
+ homepage = "https://github.com/stefdevscore/ossplate"
11
+ default-run = "ossplate"
12
+
13
+ [dependencies]
14
+ anyhow = "1.0"
15
+ clap = { version = "4.5", features = ["derive"] }
16
+ serde = { version = "1.0", features = ["derive"] }
17
+ serde_json = "1.0"
18
+ toml = "0.8"
19
+
20
+ [[bin]]
21
+ name = "ossplate"
22
+ path = "src/main.rs"
23
+
24
+ [profile.release]
25
+ opt-level = "z"
26
+ lto = true
27
+ codegen-units = 1
28
+ strip = true