fastgen-cli 0.4.0__tar.gz → 0.7.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.
Files changed (70) hide show
  1. fastgen_cli-0.7.0/Cargo.lock +531 -0
  2. fastgen_cli-0.7.0/Cargo.toml +38 -0
  3. {fastgen_cli-0.4.0 → fastgen_cli-0.7.0}/LICENSE +1 -1
  4. fastgen_cli-0.7.0/PKG-INFO +378 -0
  5. fastgen_cli-0.7.0/README.md +358 -0
  6. fastgen_cli-0.7.0/README.zh-CN.md +353 -0
  7. fastgen_cli-0.7.0/pyproject.toml +30 -0
  8. fastgen_cli-0.7.0/src/cli.rs +263 -0
  9. fastgen_cli-0.7.0/src/generators/alembic.rs +89 -0
  10. fastgen_cli-0.7.0/src/generators/core.rs +55 -0
  11. fastgen_cli-0.7.0/src/generators/main.rs +245 -0
  12. fastgen_cli-0.7.0/src/generators/mod.rs +8 -0
  13. fastgen_cli-0.7.0/src/generators/module.rs +52 -0
  14. fastgen_cli-0.7.0/src/generators/project.rs +67 -0
  15. fastgen_cli-0.7.0/src/generators/registry.rs +255 -0
  16. fastgen_cli-0.7.0/src/layout.rs +79 -0
  17. fastgen_cli-0.7.0/src/lib.rs +9 -0
  18. fastgen_cli-0.7.0/src/main.rs +10 -0
  19. fastgen_cli-0.7.0/src/naming.rs +178 -0
  20. fastgen_cli-0.7.0/src/render.rs +72 -0
  21. fastgen_cli-0.7.0/src/templates/alembic/alembic.ini.j2 +38 -0
  22. fastgen_cli-0.7.0/src/templates/alembic/migrations/env.py.j2 +64 -0
  23. fastgen_cli-0.7.0/src/templates/alembic/migrations/script.py.mako.j2 +26 -0
  24. fastgen_cli-0.7.0/src/templates/alembic/migrations/versions/0001_initial.py.j2 +21 -0
  25. {fastgen_cli-0.4.0/src/fastgen → fastgen_cli-0.7.0/src}/templates/core/database.py.j2 +1 -1
  26. fastgen_cli-0.7.0/src/templates/module/__init__.py.j2 +5 -0
  27. fastgen_cli-0.7.0/src/templates/module/api/__init__.py.j2 +1 -0
  28. fastgen_cli-0.7.0/src/templates/module/api/router.py.j2 +63 -0
  29. fastgen_cli-0.7.0/src/templates/module/application/__init__.py.j2 +1 -0
  30. fastgen_cli-0.7.0/src/templates/module/application/schemas.py.j2 +21 -0
  31. fastgen_cli-0.7.0/src/templates/module/application/{{ snake }}_service.py.j2 +47 -0
  32. fastgen_cli-0.7.0/src/templates/module/domain/__init__.py.j2 +1 -0
  33. fastgen_cli-0.7.0/src/templates/module/domain/model.py.j2 +11 -0
  34. fastgen_cli-0.7.0/src/templates/module/domain/repository.py.j2 +17 -0
  35. fastgen_cli-0.7.0/src/templates/module/infrastructure/__init__.py.j2 +1 -0
  36. fastgen_cli-0.7.0/src/templates/module/infrastructure/{{ snake }}_repository.py.j2 +30 -0
  37. fastgen_cli-0.7.0/src/templates/module/tests/conftest.py.j2 +39 -0
  38. fastgen_cli-0.7.0/src/templates/module/tests/test_{{ snake }}.py.j2 +33 -0
  39. fastgen_cli-0.7.0/src/templates/project/.env.example.j2 +2 -0
  40. fastgen_cli-0.7.0/src/templates/project/.env.j2 +1 -0
  41. fastgen_cli-0.7.0/src/templates/project/.gitignore.j2 +21 -0
  42. fastgen_cli-0.7.0/src/templates/project/.python-version.j2 +1 -0
  43. fastgen_cli-0.7.0/src/templates/project/README.md.j2 +47 -0
  44. fastgen_cli-0.7.0/src/templates/project/pyproject.toml.j2 +32 -0
  45. fastgen_cli-0.7.0/src/templates/project/src/__init__.py.j2 +1 -0
  46. fastgen_cli-0.7.0/src/templates/project/src/main.py.j2 +38 -0
  47. fastgen_cli-0.7.0/src/templates/project/tests/__init__.py.j2 +1 -0
  48. fastgen_cli-0.7.0/src/templates/project/tests/conftest.py.j2 +13 -0
  49. fastgen_cli-0.7.0/src/templates/project/tests/test_health.py.j2 +7 -0
  50. fastgen_cli-0.7.0/src/templates.rs +167 -0
  51. fastgen_cli-0.7.0/src/writers.rs +98 -0
  52. fastgen_cli-0.4.0/.gitignore +0 -6
  53. fastgen_cli-0.4.0/PKG-INFO +0 -86
  54. fastgen_cli-0.4.0/README.md +0 -64
  55. fastgen_cli-0.4.0/pyproject.toml +0 -38
  56. fastgen_cli-0.4.0/src/fastgen/__init__.py +0 -1
  57. fastgen_cli-0.4.0/src/fastgen/cli.py +0 -80
  58. fastgen_cli-0.4.0/src/fastgen/generators/__init__.py +0 -0
  59. fastgen_cli-0.4.0/src/fastgen/generators/base.py +0 -45
  60. fastgen_cli-0.4.0/src/fastgen/generators/core.py +0 -43
  61. fastgen_cli-0.4.0/src/fastgen/generators/module.py +0 -40
  62. fastgen_cli-0.4.0/src/fastgen/generators/registry.py +0 -91
  63. fastgen_cli-0.4.0/src/fastgen/naming.py +0 -41
  64. fastgen_cli-0.4.0/src/fastgen/templates/module/__init__.py.j2 +0 -4
  65. fastgen_cli-0.4.0/src/fastgen/templates/module/router.py.j2 +0 -10
  66. fastgen_cli-0.4.0/src/fastgen/templates/module/schemas.py.j2 +0 -5
  67. fastgen_cli-0.4.0/src/fastgen/templates/module/service.py.j2 +0 -2
  68. fastgen_cli-0.4.0/src/fastgen/writers.py +0 -43
  69. fastgen_cli-0.4.0/uv.lock +0 -191
  70. {fastgen_cli-0.4.0/src/fastgen → fastgen_cli-0.7.0/src}/templates/core/config.py.j2 +0 -0
@@ -0,0 +1,531 @@
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 = "0.6.21"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
10
+ dependencies = [
11
+ "anstyle",
12
+ "anstyle-parse 0.2.7",
13
+ "anstyle-query",
14
+ "anstyle-wincon",
15
+ "colorchoice",
16
+ "is_terminal_polyfill",
17
+ "utf8parse",
18
+ ]
19
+
20
+ [[package]]
21
+ name = "anstream"
22
+ version = "1.0.0"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
25
+ dependencies = [
26
+ "anstyle",
27
+ "anstyle-parse 1.0.0",
28
+ "anstyle-query",
29
+ "anstyle-wincon",
30
+ "colorchoice",
31
+ "is_terminal_polyfill",
32
+ "utf8parse",
33
+ ]
34
+
35
+ [[package]]
36
+ name = "anstyle"
37
+ version = "1.0.14"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
40
+
41
+ [[package]]
42
+ name = "anstyle-parse"
43
+ version = "0.2.7"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
46
+ dependencies = [
47
+ "utf8parse",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "anstyle-parse"
52
+ version = "1.0.0"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
55
+ dependencies = [
56
+ "utf8parse",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "anstyle-query"
61
+ version = "1.1.5"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
64
+ dependencies = [
65
+ "windows-sys",
66
+ ]
67
+
68
+ [[package]]
69
+ name = "anstyle-wincon"
70
+ version = "3.0.11"
71
+ source = "registry+https://github.com/rust-lang/crates.io-index"
72
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
73
+ dependencies = [
74
+ "anstyle",
75
+ "once_cell_polyfill",
76
+ "windows-sys",
77
+ ]
78
+
79
+ [[package]]
80
+ name = "anyhow"
81
+ version = "1.0.104"
82
+ source = "registry+https://github.com/rust-lang/crates.io-index"
83
+ checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
84
+
85
+ [[package]]
86
+ name = "bitflags"
87
+ version = "2.13.2"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
90
+
91
+ [[package]]
92
+ name = "cfg-if"
93
+ version = "1.0.5"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
96
+
97
+ [[package]]
98
+ name = "clap"
99
+ version = "4.6.7"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
102
+ dependencies = [
103
+ "clap_builder",
104
+ "clap_derive",
105
+ ]
106
+
107
+ [[package]]
108
+ name = "clap_builder"
109
+ version = "4.6.7"
110
+ source = "registry+https://github.com/rust-lang/crates.io-index"
111
+ checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
112
+ dependencies = [
113
+ "anstream 1.0.0",
114
+ "anstyle",
115
+ "clap_lex",
116
+ "strsim",
117
+ ]
118
+
119
+ [[package]]
120
+ name = "clap_derive"
121
+ version = "4.6.7"
122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
123
+ checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
124
+ dependencies = [
125
+ "heck",
126
+ "proc-macro2",
127
+ "quote",
128
+ "syn",
129
+ ]
130
+
131
+ [[package]]
132
+ name = "clap_lex"
133
+ version = "1.1.1"
134
+ source = "registry+https://github.com/rust-lang/crates.io-index"
135
+ checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
136
+
137
+ [[package]]
138
+ name = "colorchoice"
139
+ version = "1.0.5"
140
+ source = "registry+https://github.com/rust-lang/crates.io-index"
141
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
142
+
143
+ [[package]]
144
+ name = "comfy-table"
145
+ version = "7.2.2"
146
+ source = "registry+https://github.com/rust-lang/crates.io-index"
147
+ checksum = "958c5d6ecf1f214b4c2bbbbf6ab9523a864bd136dcf71a7e8904799acfe1ad47"
148
+ dependencies = [
149
+ "crossterm",
150
+ "unicode-segmentation",
151
+ "unicode-width",
152
+ ]
153
+
154
+ [[package]]
155
+ name = "crossterm"
156
+ version = "0.29.0"
157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
158
+ checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"
159
+ dependencies = [
160
+ "bitflags",
161
+ "crossterm_winapi",
162
+ "document-features",
163
+ "parking_lot",
164
+ "rustix",
165
+ "winapi",
166
+ ]
167
+
168
+ [[package]]
169
+ name = "crossterm_winapi"
170
+ version = "0.9.1"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
173
+ dependencies = [
174
+ "winapi",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "document-features"
179
+ version = "0.2.12"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
182
+ dependencies = [
183
+ "litrs",
184
+ ]
185
+
186
+ [[package]]
187
+ name = "errno"
188
+ version = "0.3.14"
189
+ source = "registry+https://github.com/rust-lang/crates.io-index"
190
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
191
+ dependencies = [
192
+ "libc",
193
+ "windows-sys",
194
+ ]
195
+
196
+ [[package]]
197
+ name = "fastgen-cli"
198
+ version = "0.7.0"
199
+ dependencies = [
200
+ "anstream 0.6.21",
201
+ "anyhow",
202
+ "clap",
203
+ "comfy-table",
204
+ "minijinja",
205
+ "owo-colors",
206
+ "serde_json",
207
+ "tempfile",
208
+ ]
209
+
210
+ [[package]]
211
+ name = "fastrand"
212
+ version = "2.5.0"
213
+ source = "registry+https://github.com/rust-lang/crates.io-index"
214
+ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
215
+
216
+ [[package]]
217
+ name = "getrandom"
218
+ version = "0.4.3"
219
+ source = "registry+https://github.com/rust-lang/crates.io-index"
220
+ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
221
+ dependencies = [
222
+ "cfg-if",
223
+ "libc",
224
+ "r-efi",
225
+ ]
226
+
227
+ [[package]]
228
+ name = "heck"
229
+ version = "0.5.0"
230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
231
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
232
+
233
+ [[package]]
234
+ name = "is_terminal_polyfill"
235
+ version = "1.70.2"
236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
237
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
238
+
239
+ [[package]]
240
+ name = "itoa"
241
+ version = "1.0.18"
242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
243
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
244
+
245
+ [[package]]
246
+ name = "libc"
247
+ version = "0.2.189"
248
+ source = "registry+https://github.com/rust-lang/crates.io-index"
249
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
250
+
251
+ [[package]]
252
+ name = "linux-raw-sys"
253
+ version = "0.12.1"
254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
255
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
256
+
257
+ [[package]]
258
+ name = "litrs"
259
+ version = "1.0.0"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
262
+
263
+ [[package]]
264
+ name = "lock_api"
265
+ version = "0.4.14"
266
+ source = "registry+https://github.com/rust-lang/crates.io-index"
267
+ checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
268
+ dependencies = [
269
+ "scopeguard",
270
+ ]
271
+
272
+ [[package]]
273
+ name = "memchr"
274
+ version = "2.8.3"
275
+ source = "registry+https://github.com/rust-lang/crates.io-index"
276
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
277
+
278
+ [[package]]
279
+ name = "memo-map"
280
+ version = "0.3.4"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "5449c8c750f1a07ea702bbd212bd999fceece9b3d1508b17023b3e174583124b"
283
+
284
+ [[package]]
285
+ name = "minijinja"
286
+ version = "2.24.0"
287
+ source = "registry+https://github.com/rust-lang/crates.io-index"
288
+ checksum = "86886cf6dbf4e614b19c9a1eec9775f021869d7eadde0fc73921a81b90c9b4c9"
289
+ dependencies = [
290
+ "memo-map",
291
+ "serde",
292
+ "serde_json",
293
+ ]
294
+
295
+ [[package]]
296
+ name = "once_cell"
297
+ version = "1.21.4"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
300
+
301
+ [[package]]
302
+ name = "once_cell_polyfill"
303
+ version = "1.70.2"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
306
+
307
+ [[package]]
308
+ name = "owo-colors"
309
+ version = "4.4.0"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "13c45bb4a6ae1280ec0803b1ef9d3455eb50f01efbbe1447ab020f1d54fba9d8"
312
+
313
+ [[package]]
314
+ name = "parking_lot"
315
+ version = "0.12.5"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
318
+ dependencies = [
319
+ "lock_api",
320
+ "parking_lot_core",
321
+ ]
322
+
323
+ [[package]]
324
+ name = "parking_lot_core"
325
+ version = "0.9.12"
326
+ source = "registry+https://github.com/rust-lang/crates.io-index"
327
+ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
328
+ dependencies = [
329
+ "cfg-if",
330
+ "libc",
331
+ "redox_syscall",
332
+ "smallvec",
333
+ "windows-link",
334
+ ]
335
+
336
+ [[package]]
337
+ name = "proc-macro2"
338
+ version = "1.0.107"
339
+ source = "registry+https://github.com/rust-lang/crates.io-index"
340
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
341
+ dependencies = [
342
+ "unicode-ident",
343
+ ]
344
+
345
+ [[package]]
346
+ name = "quote"
347
+ version = "1.0.47"
348
+ source = "registry+https://github.com/rust-lang/crates.io-index"
349
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
350
+ dependencies = [
351
+ "proc-macro2",
352
+ ]
353
+
354
+ [[package]]
355
+ name = "r-efi"
356
+ version = "6.0.0"
357
+ source = "registry+https://github.com/rust-lang/crates.io-index"
358
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
359
+
360
+ [[package]]
361
+ name = "redox_syscall"
362
+ version = "0.5.18"
363
+ source = "registry+https://github.com/rust-lang/crates.io-index"
364
+ checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
365
+ dependencies = [
366
+ "bitflags",
367
+ ]
368
+
369
+ [[package]]
370
+ name = "rustix"
371
+ version = "1.1.5"
372
+ source = "registry+https://github.com/rust-lang/crates.io-index"
373
+ checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d"
374
+ dependencies = [
375
+ "bitflags",
376
+ "errno",
377
+ "libc",
378
+ "linux-raw-sys",
379
+ "windows-sys",
380
+ ]
381
+
382
+ [[package]]
383
+ name = "scopeguard"
384
+ version = "1.2.0"
385
+ source = "registry+https://github.com/rust-lang/crates.io-index"
386
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
387
+
388
+ [[package]]
389
+ name = "serde"
390
+ version = "1.0.229"
391
+ source = "registry+https://github.com/rust-lang/crates.io-index"
392
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
393
+ dependencies = [
394
+ "serde_core",
395
+ ]
396
+
397
+ [[package]]
398
+ name = "serde_core"
399
+ version = "1.0.229"
400
+ source = "registry+https://github.com/rust-lang/crates.io-index"
401
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
402
+ dependencies = [
403
+ "serde_derive",
404
+ ]
405
+
406
+ [[package]]
407
+ name = "serde_derive"
408
+ version = "1.0.229"
409
+ source = "registry+https://github.com/rust-lang/crates.io-index"
410
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
411
+ dependencies = [
412
+ "proc-macro2",
413
+ "quote",
414
+ "syn",
415
+ ]
416
+
417
+ [[package]]
418
+ name = "serde_json"
419
+ version = "1.0.151"
420
+ source = "registry+https://github.com/rust-lang/crates.io-index"
421
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
422
+ dependencies = [
423
+ "itoa",
424
+ "memchr",
425
+ "serde",
426
+ "serde_core",
427
+ "zmij",
428
+ ]
429
+
430
+ [[package]]
431
+ name = "smallvec"
432
+ version = "1.16.1"
433
+ source = "registry+https://github.com/rust-lang/crates.io-index"
434
+ checksum = "ba467056f1b547ed52077911161fc86985becbc60e8e1857c8a144dab0def891"
435
+
436
+ [[package]]
437
+ name = "strsim"
438
+ version = "0.11.1"
439
+ source = "registry+https://github.com/rust-lang/crates.io-index"
440
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
441
+
442
+ [[package]]
443
+ name = "syn"
444
+ version = "3.0.6"
445
+ source = "registry+https://github.com/rust-lang/crates.io-index"
446
+ checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee"
447
+ dependencies = [
448
+ "proc-macro2",
449
+ "quote",
450
+ "unicode-ident",
451
+ ]
452
+
453
+ [[package]]
454
+ name = "tempfile"
455
+ version = "3.27.0"
456
+ source = "registry+https://github.com/rust-lang/crates.io-index"
457
+ checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
458
+ dependencies = [
459
+ "fastrand",
460
+ "getrandom",
461
+ "once_cell",
462
+ "rustix",
463
+ "windows-sys",
464
+ ]
465
+
466
+ [[package]]
467
+ name = "unicode-ident"
468
+ version = "1.0.26"
469
+ source = "registry+https://github.com/rust-lang/crates.io-index"
470
+ checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"
471
+
472
+ [[package]]
473
+ name = "unicode-segmentation"
474
+ version = "1.13.3"
475
+ source = "registry+https://github.com/rust-lang/crates.io-index"
476
+ checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
477
+
478
+ [[package]]
479
+ name = "unicode-width"
480
+ version = "0.2.2"
481
+ source = "registry+https://github.com/rust-lang/crates.io-index"
482
+ checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
483
+
484
+ [[package]]
485
+ name = "utf8parse"
486
+ version = "0.2.2"
487
+ source = "registry+https://github.com/rust-lang/crates.io-index"
488
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
489
+
490
+ [[package]]
491
+ name = "winapi"
492
+ version = "0.3.9"
493
+ source = "registry+https://github.com/rust-lang/crates.io-index"
494
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
495
+ dependencies = [
496
+ "winapi-i686-pc-windows-gnu",
497
+ "winapi-x86_64-pc-windows-gnu",
498
+ ]
499
+
500
+ [[package]]
501
+ name = "winapi-i686-pc-windows-gnu"
502
+ version = "0.4.0"
503
+ source = "registry+https://github.com/rust-lang/crates.io-index"
504
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
505
+
506
+ [[package]]
507
+ name = "winapi-x86_64-pc-windows-gnu"
508
+ version = "0.4.0"
509
+ source = "registry+https://github.com/rust-lang/crates.io-index"
510
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
511
+
512
+ [[package]]
513
+ name = "windows-link"
514
+ version = "0.2.1"
515
+ source = "registry+https://github.com/rust-lang/crates.io-index"
516
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
517
+
518
+ [[package]]
519
+ name = "windows-sys"
520
+ version = "0.61.2"
521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
522
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
523
+ dependencies = [
524
+ "windows-link",
525
+ ]
526
+
527
+ [[package]]
528
+ name = "zmij"
529
+ version = "1.0.23"
530
+ source = "registry+https://github.com/rust-lang/crates.io-index"
531
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,38 @@
1
+ [package]
2
+ name = "fastgen-cli"
3
+ version = "0.7.0"
4
+ edition = "2021"
5
+ rust-version = "1.82"
6
+ description = "FastAPI feature-based module manager (nest-cli style for FastAPI), written in Rust"
7
+ license = "MIT"
8
+ keywords = ["fastapi", "code-generator", "scaffold", "cli", "nest-cli"]
9
+ categories = ["command-line-utilities", "development-tools"]
10
+ repository = "https://github.com/YIbaikaishui/fastgen-cli"
11
+ readme = "README.md"
12
+ include = ["/src", "/LICENSE", "/README.md", "/README.zh-CN.md"]
13
+
14
+ [dependencies]
15
+ anstream = "0.6"
16
+ anyhow = "1"
17
+ clap = { version = "4", features = ["derive"] }
18
+ comfy-table = "7"
19
+ minijinja = { version = "2", features = ["json"] }
20
+ owo-colors = "4"
21
+ serde_json = "1"
22
+
23
+ [dev-dependencies]
24
+ tempfile = "3"
25
+
26
+ [[bin]]
27
+ name = "fastgen"
28
+ path = "src/main.rs"
29
+
30
+ [lints.rust]
31
+ unsafe_code = "forbid"
32
+
33
+ [lints.clippy]
34
+ all = "deny"
35
+ pedantic = "warn"
36
+
37
+ [profile.release]
38
+ strip = true
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 YIbaikaishui
3
+ Copyright (c) 2026 一白开水
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal