crozier 0.0.2__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.
- crozier-0.0.2/Cargo.lock +575 -0
- crozier-0.0.2/Cargo.toml +59 -0
- crozier-0.0.2/LICENSE +201 -0
- crozier-0.0.2/NOTICE +41 -0
- crozier-0.0.2/PKG-INFO +127 -0
- crozier-0.0.2/README.md +107 -0
- crozier-0.0.2/assets/README.md +23 -0
- crozier-0.0.2/assets/core/__init__.py +105 -0
- crozier-0.0.2/assets/core/api_error.py +23 -0
- crozier-0.0.2/assets/core/client_wrapper.py +86 -0
- crozier-0.0.2/assets/core/datetime_utils.py +28 -0
- crozier-0.0.2/assets/core/file.py +67 -0
- crozier-0.0.2/assets/core/force_multipart.py +18 -0
- crozier-0.0.2/assets/core/http_client.py +543 -0
- crozier-0.0.2/assets/core/http_response.py +55 -0
- crozier-0.0.2/assets/core/http_sse/__init__.py +42 -0
- crozier-0.0.2/assets/core/http_sse/_api.py +112 -0
- crozier-0.0.2/assets/core/http_sse/_decoders.py +61 -0
- crozier-0.0.2/assets/core/http_sse/_exceptions.py +7 -0
- crozier-0.0.2/assets/core/http_sse/_models.py +17 -0
- crozier-0.0.2/assets/core/jsonable_encoder.py +100 -0
- crozier-0.0.2/assets/core/pydantic_utilities.py +260 -0
- crozier-0.0.2/assets/core/query_encoder.py +58 -0
- crozier-0.0.2/assets/core/remove_none_from_dict.py +11 -0
- crozier-0.0.2/assets/core/request_options.py +35 -0
- crozier-0.0.2/assets/core/serialization.py +276 -0
- crozier-0.0.2/licenses/fern-APACHE-2.0.txt +201 -0
- crozier-0.0.2/pyproject.toml +41 -0
- crozier-0.0.2/src/cli.rs +94 -0
- crozier-0.0.2/src/config.rs +50 -0
- crozier-0.0.2/src/emit.rs +985 -0
- crozier-0.0.2/src/error.rs +63 -0
- crozier-0.0.2/src/ir.rs +708 -0
- crozier-0.0.2/src/lib.rs +79 -0
- crozier-0.0.2/src/main.rs +23 -0
- crozier-0.0.2/src/naming.rs +149 -0
- crozier-0.0.2/src/normalize.rs +207 -0
- crozier-0.0.2/src/openapi.rs +317 -0
- crozier-0.0.2/src/wrap.rs +202 -0
- crozier-0.0.2/templates/alias.py.j2 +5 -0
- crozier-0.0.2/templates/object.py.j2 +7 -0
- crozier-0.0.2/templates/raw_client.py.j2 +6 -0
- crozier-0.0.2/templates/version.py.j2 +3 -0
crozier-0.0.2/Cargo.lock
ADDED
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.4"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "anstream"
|
|
16
|
+
version = "1.0.0"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"anstyle",
|
|
21
|
+
"anstyle-parse",
|
|
22
|
+
"anstyle-query",
|
|
23
|
+
"anstyle-wincon",
|
|
24
|
+
"colorchoice",
|
|
25
|
+
"is_terminal_polyfill",
|
|
26
|
+
"utf8parse",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "anstyle"
|
|
31
|
+
version = "1.0.14"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "anstyle-parse"
|
|
37
|
+
version = "1.0.0"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
|
40
|
+
dependencies = [
|
|
41
|
+
"utf8parse",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "anstyle-query"
|
|
46
|
+
version = "1.1.5"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
|
49
|
+
dependencies = [
|
|
50
|
+
"windows-sys",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "anstyle-wincon"
|
|
55
|
+
version = "3.0.11"
|
|
56
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
+
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
|
58
|
+
dependencies = [
|
|
59
|
+
"anstyle",
|
|
60
|
+
"once_cell_polyfill",
|
|
61
|
+
"windows-sys",
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
[[package]]
|
|
65
|
+
name = "assert_cmd"
|
|
66
|
+
version = "2.2.2"
|
|
67
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
68
|
+
checksum = "2aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6"
|
|
69
|
+
dependencies = [
|
|
70
|
+
"anstyle",
|
|
71
|
+
"bstr",
|
|
72
|
+
"libc",
|
|
73
|
+
"predicates",
|
|
74
|
+
"predicates-core",
|
|
75
|
+
"predicates-tree",
|
|
76
|
+
"wait-timeout",
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
[[package]]
|
|
80
|
+
name = "autocfg"
|
|
81
|
+
version = "1.5.1"
|
|
82
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "bitflags"
|
|
87
|
+
version = "2.13.0"
|
|
88
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
89
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
90
|
+
|
|
91
|
+
[[package]]
|
|
92
|
+
name = "bstr"
|
|
93
|
+
version = "1.12.3"
|
|
94
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
95
|
+
checksum = "5cee35f73844aa3014bb606320a6c1f010249dbdf43342fe54b5a4f6a8ed4b79"
|
|
96
|
+
dependencies = [
|
|
97
|
+
"memchr",
|
|
98
|
+
"regex-automata",
|
|
99
|
+
"serde_core",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
[[package]]
|
|
103
|
+
name = "cfg-if"
|
|
104
|
+
version = "1.0.4"
|
|
105
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
106
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
107
|
+
|
|
108
|
+
[[package]]
|
|
109
|
+
name = "clap"
|
|
110
|
+
version = "4.6.1"
|
|
111
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
112
|
+
checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
|
|
113
|
+
dependencies = [
|
|
114
|
+
"clap_builder",
|
|
115
|
+
"clap_derive",
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
[[package]]
|
|
119
|
+
name = "clap_builder"
|
|
120
|
+
version = "4.6.0"
|
|
121
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
+
checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
|
|
123
|
+
dependencies = [
|
|
124
|
+
"anstream",
|
|
125
|
+
"anstyle",
|
|
126
|
+
"clap_lex",
|
|
127
|
+
"strsim",
|
|
128
|
+
]
|
|
129
|
+
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "clap_derive"
|
|
132
|
+
version = "4.6.1"
|
|
133
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
+
checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
|
|
135
|
+
dependencies = [
|
|
136
|
+
"heck",
|
|
137
|
+
"proc-macro2",
|
|
138
|
+
"quote",
|
|
139
|
+
"syn",
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[[package]]
|
|
143
|
+
name = "clap_lex"
|
|
144
|
+
version = "1.1.0"
|
|
145
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
+
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
|
|
147
|
+
|
|
148
|
+
[[package]]
|
|
149
|
+
name = "colorchoice"
|
|
150
|
+
version = "1.0.5"
|
|
151
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
152
|
+
checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
153
|
+
|
|
154
|
+
[[package]]
|
|
155
|
+
name = "crozier"
|
|
156
|
+
version = "0.0.2"
|
|
157
|
+
dependencies = [
|
|
158
|
+
"assert_cmd",
|
|
159
|
+
"clap",
|
|
160
|
+
"indexmap",
|
|
161
|
+
"minijinja",
|
|
162
|
+
"predicates",
|
|
163
|
+
"serde",
|
|
164
|
+
"serde_json",
|
|
165
|
+
"serde_yaml_ng",
|
|
166
|
+
"tempfile",
|
|
167
|
+
"thiserror",
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "difflib"
|
|
172
|
+
version = "0.4.0"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8"
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "equivalent"
|
|
178
|
+
version = "1.0.2"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "errno"
|
|
184
|
+
version = "0.3.14"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"libc",
|
|
189
|
+
"windows-sys",
|
|
190
|
+
]
|
|
191
|
+
|
|
192
|
+
[[package]]
|
|
193
|
+
name = "fastrand"
|
|
194
|
+
version = "2.4.1"
|
|
195
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
196
|
+
checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
|
|
197
|
+
|
|
198
|
+
[[package]]
|
|
199
|
+
name = "float-cmp"
|
|
200
|
+
version = "0.10.0"
|
|
201
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
202
|
+
checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8"
|
|
203
|
+
dependencies = [
|
|
204
|
+
"num-traits",
|
|
205
|
+
]
|
|
206
|
+
|
|
207
|
+
[[package]]
|
|
208
|
+
name = "getrandom"
|
|
209
|
+
version = "0.4.3"
|
|
210
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
211
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
212
|
+
dependencies = [
|
|
213
|
+
"cfg-if",
|
|
214
|
+
"libc",
|
|
215
|
+
"r-efi",
|
|
216
|
+
]
|
|
217
|
+
|
|
218
|
+
[[package]]
|
|
219
|
+
name = "hashbrown"
|
|
220
|
+
version = "0.17.1"
|
|
221
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
222
|
+
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
223
|
+
|
|
224
|
+
[[package]]
|
|
225
|
+
name = "heck"
|
|
226
|
+
version = "0.5.0"
|
|
227
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
228
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
229
|
+
|
|
230
|
+
[[package]]
|
|
231
|
+
name = "indexmap"
|
|
232
|
+
version = "2.14.0"
|
|
233
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
234
|
+
checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
|
|
235
|
+
dependencies = [
|
|
236
|
+
"equivalent",
|
|
237
|
+
"hashbrown",
|
|
238
|
+
"serde",
|
|
239
|
+
"serde_core",
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "is_terminal_polyfill"
|
|
244
|
+
version = "1.70.2"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|
247
|
+
|
|
248
|
+
[[package]]
|
|
249
|
+
name = "itoa"
|
|
250
|
+
version = "1.0.18"
|
|
251
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
252
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
253
|
+
|
|
254
|
+
[[package]]
|
|
255
|
+
name = "libc"
|
|
256
|
+
version = "0.2.186"
|
|
257
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
258
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
259
|
+
|
|
260
|
+
[[package]]
|
|
261
|
+
name = "linux-raw-sys"
|
|
262
|
+
version = "0.12.1"
|
|
263
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
264
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
265
|
+
|
|
266
|
+
[[package]]
|
|
267
|
+
name = "memchr"
|
|
268
|
+
version = "2.8.3"
|
|
269
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
270
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
271
|
+
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "memo-map"
|
|
274
|
+
version = "0.3.3"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "38d1115007560874e373613744c6fba374c17688327a71c1476d1a5954cc857b"
|
|
277
|
+
|
|
278
|
+
[[package]]
|
|
279
|
+
name = "minijinja"
|
|
280
|
+
version = "2.21.0"
|
|
281
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
+
checksum = "cb3d648e68cea56d9858d535ee28f9538404e2dd8cb08ed0bd05dca379477f39"
|
|
283
|
+
dependencies = [
|
|
284
|
+
"memo-map",
|
|
285
|
+
"serde",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "normalize-line-endings"
|
|
290
|
+
version = "0.3.0"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "num-traits"
|
|
296
|
+
version = "0.2.19"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"autocfg",
|
|
301
|
+
]
|
|
302
|
+
|
|
303
|
+
[[package]]
|
|
304
|
+
name = "once_cell"
|
|
305
|
+
version = "1.21.4"
|
|
306
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
307
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "once_cell_polyfill"
|
|
311
|
+
version = "1.70.2"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
314
|
+
|
|
315
|
+
[[package]]
|
|
316
|
+
name = "predicates"
|
|
317
|
+
version = "3.1.4"
|
|
318
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
319
|
+
checksum = "ada8f2932f28a27ee7b70dd6c1c39ea0675c55a36879ab92f3a715eaa1e63cfe"
|
|
320
|
+
dependencies = [
|
|
321
|
+
"anstyle",
|
|
322
|
+
"difflib",
|
|
323
|
+
"float-cmp",
|
|
324
|
+
"normalize-line-endings",
|
|
325
|
+
"predicates-core",
|
|
326
|
+
"regex",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "predicates-core"
|
|
331
|
+
version = "1.0.10"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "cad38746f3166b4031b1a0d39ad9f954dd291e7854fcc0eed52ee41a0b50d144"
|
|
334
|
+
|
|
335
|
+
[[package]]
|
|
336
|
+
name = "predicates-tree"
|
|
337
|
+
version = "1.0.13"
|
|
338
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
339
|
+
checksum = "d0de1b847b39c8131db0467e9df1ff60e6d0562ab8e9a16e568ad0fdb372e2f2"
|
|
340
|
+
dependencies = [
|
|
341
|
+
"predicates-core",
|
|
342
|
+
"termtree",
|
|
343
|
+
]
|
|
344
|
+
|
|
345
|
+
[[package]]
|
|
346
|
+
name = "proc-macro2"
|
|
347
|
+
version = "1.0.106"
|
|
348
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
349
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
350
|
+
dependencies = [
|
|
351
|
+
"unicode-ident",
|
|
352
|
+
]
|
|
353
|
+
|
|
354
|
+
[[package]]
|
|
355
|
+
name = "quote"
|
|
356
|
+
version = "1.0.46"
|
|
357
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
358
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
359
|
+
dependencies = [
|
|
360
|
+
"proc-macro2",
|
|
361
|
+
]
|
|
362
|
+
|
|
363
|
+
[[package]]
|
|
364
|
+
name = "r-efi"
|
|
365
|
+
version = "6.0.0"
|
|
366
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
367
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
368
|
+
|
|
369
|
+
[[package]]
|
|
370
|
+
name = "regex"
|
|
371
|
+
version = "1.13.0"
|
|
372
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
373
|
+
checksum = "2a0e75113e14dc5acb068cd0786884f214f1312650a3d36d269f5c4f3cdee8a2"
|
|
374
|
+
dependencies = [
|
|
375
|
+
"aho-corasick",
|
|
376
|
+
"memchr",
|
|
377
|
+
"regex-automata",
|
|
378
|
+
"regex-syntax",
|
|
379
|
+
]
|
|
380
|
+
|
|
381
|
+
[[package]]
|
|
382
|
+
name = "regex-automata"
|
|
383
|
+
version = "0.4.15"
|
|
384
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
385
|
+
checksum = "1f388202e4b80542a0921078cc23b6333bcf1409c1e3f86404cae4766a6131db"
|
|
386
|
+
dependencies = [
|
|
387
|
+
"aho-corasick",
|
|
388
|
+
"memchr",
|
|
389
|
+
"regex-syntax",
|
|
390
|
+
]
|
|
391
|
+
|
|
392
|
+
[[package]]
|
|
393
|
+
name = "regex-syntax"
|
|
394
|
+
version = "0.8.11"
|
|
395
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
397
|
+
|
|
398
|
+
[[package]]
|
|
399
|
+
name = "rustix"
|
|
400
|
+
version = "1.1.4"
|
|
401
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
402
|
+
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
|
403
|
+
dependencies = [
|
|
404
|
+
"bitflags",
|
|
405
|
+
"errno",
|
|
406
|
+
"libc",
|
|
407
|
+
"linux-raw-sys",
|
|
408
|
+
"windows-sys",
|
|
409
|
+
]
|
|
410
|
+
|
|
411
|
+
[[package]]
|
|
412
|
+
name = "ryu"
|
|
413
|
+
version = "1.0.23"
|
|
414
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
415
|
+
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
|
416
|
+
|
|
417
|
+
[[package]]
|
|
418
|
+
name = "serde"
|
|
419
|
+
version = "1.0.228"
|
|
420
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
421
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
422
|
+
dependencies = [
|
|
423
|
+
"serde_core",
|
|
424
|
+
"serde_derive",
|
|
425
|
+
]
|
|
426
|
+
|
|
427
|
+
[[package]]
|
|
428
|
+
name = "serde_core"
|
|
429
|
+
version = "1.0.228"
|
|
430
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
431
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
432
|
+
dependencies = [
|
|
433
|
+
"serde_derive",
|
|
434
|
+
]
|
|
435
|
+
|
|
436
|
+
[[package]]
|
|
437
|
+
name = "serde_derive"
|
|
438
|
+
version = "1.0.228"
|
|
439
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
440
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
441
|
+
dependencies = [
|
|
442
|
+
"proc-macro2",
|
|
443
|
+
"quote",
|
|
444
|
+
"syn",
|
|
445
|
+
]
|
|
446
|
+
|
|
447
|
+
[[package]]
|
|
448
|
+
name = "serde_json"
|
|
449
|
+
version = "1.0.150"
|
|
450
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
451
|
+
checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
|
|
452
|
+
dependencies = [
|
|
453
|
+
"itoa",
|
|
454
|
+
"memchr",
|
|
455
|
+
"serde",
|
|
456
|
+
"serde_core",
|
|
457
|
+
"zmij",
|
|
458
|
+
]
|
|
459
|
+
|
|
460
|
+
[[package]]
|
|
461
|
+
name = "serde_yaml_ng"
|
|
462
|
+
version = "0.10.0"
|
|
463
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
464
|
+
checksum = "7b4db627b98b36d4203a7b458cf3573730f2bb591b28871d916dfa9efabfd41f"
|
|
465
|
+
dependencies = [
|
|
466
|
+
"indexmap",
|
|
467
|
+
"itoa",
|
|
468
|
+
"ryu",
|
|
469
|
+
"serde",
|
|
470
|
+
"unsafe-libyaml",
|
|
471
|
+
]
|
|
472
|
+
|
|
473
|
+
[[package]]
|
|
474
|
+
name = "strsim"
|
|
475
|
+
version = "0.11.1"
|
|
476
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
477
|
+
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
478
|
+
|
|
479
|
+
[[package]]
|
|
480
|
+
name = "syn"
|
|
481
|
+
version = "2.0.118"
|
|
482
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
483
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
484
|
+
dependencies = [
|
|
485
|
+
"proc-macro2",
|
|
486
|
+
"quote",
|
|
487
|
+
"unicode-ident",
|
|
488
|
+
]
|
|
489
|
+
|
|
490
|
+
[[package]]
|
|
491
|
+
name = "tempfile"
|
|
492
|
+
version = "3.27.0"
|
|
493
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
494
|
+
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
|
495
|
+
dependencies = [
|
|
496
|
+
"fastrand",
|
|
497
|
+
"getrandom",
|
|
498
|
+
"once_cell",
|
|
499
|
+
"rustix",
|
|
500
|
+
"windows-sys",
|
|
501
|
+
]
|
|
502
|
+
|
|
503
|
+
[[package]]
|
|
504
|
+
name = "termtree"
|
|
505
|
+
version = "0.5.1"
|
|
506
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
507
|
+
checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683"
|
|
508
|
+
|
|
509
|
+
[[package]]
|
|
510
|
+
name = "thiserror"
|
|
511
|
+
version = "2.0.18"
|
|
512
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
513
|
+
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
|
|
514
|
+
dependencies = [
|
|
515
|
+
"thiserror-impl",
|
|
516
|
+
]
|
|
517
|
+
|
|
518
|
+
[[package]]
|
|
519
|
+
name = "thiserror-impl"
|
|
520
|
+
version = "2.0.18"
|
|
521
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
522
|
+
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
|
|
523
|
+
dependencies = [
|
|
524
|
+
"proc-macro2",
|
|
525
|
+
"quote",
|
|
526
|
+
"syn",
|
|
527
|
+
]
|
|
528
|
+
|
|
529
|
+
[[package]]
|
|
530
|
+
name = "unicode-ident"
|
|
531
|
+
version = "1.0.24"
|
|
532
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
533
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
534
|
+
|
|
535
|
+
[[package]]
|
|
536
|
+
name = "unsafe-libyaml"
|
|
537
|
+
version = "0.2.11"
|
|
538
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
539
|
+
checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
|
|
540
|
+
|
|
541
|
+
[[package]]
|
|
542
|
+
name = "utf8parse"
|
|
543
|
+
version = "0.2.2"
|
|
544
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
545
|
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
546
|
+
|
|
547
|
+
[[package]]
|
|
548
|
+
name = "wait-timeout"
|
|
549
|
+
version = "0.2.1"
|
|
550
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
551
|
+
checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11"
|
|
552
|
+
dependencies = [
|
|
553
|
+
"libc",
|
|
554
|
+
]
|
|
555
|
+
|
|
556
|
+
[[package]]
|
|
557
|
+
name = "windows-link"
|
|
558
|
+
version = "0.2.1"
|
|
559
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
560
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
561
|
+
|
|
562
|
+
[[package]]
|
|
563
|
+
name = "windows-sys"
|
|
564
|
+
version = "0.61.2"
|
|
565
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
566
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
567
|
+
dependencies = [
|
|
568
|
+
"windows-link",
|
|
569
|
+
]
|
|
570
|
+
|
|
571
|
+
[[package]]
|
|
572
|
+
name = "zmij"
|
|
573
|
+
version = "1.0.21"
|
|
574
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
575
|
+
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
|
crozier-0.0.2/Cargo.toml
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "crozier"
|
|
3
|
+
version = "0.0.2"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
description = "Ultra-fast OpenAPI-to-SDK code generator that matches Fern's output, byte for byte."
|
|
6
|
+
license = "Apache-2.0"
|
|
7
|
+
repository = "https://github.com/nickderobertis/crozier"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
keywords = ["openapi", "codegen", "sdk", "python", "fern"]
|
|
10
|
+
categories = ["command-line-utilities", "development-tools"]
|
|
11
|
+
# Package only what a crates.io consumer needs to build and run: the sources, the
|
|
12
|
+
# manifest, the readme/license/attribution, and the `templates/` embedded at
|
|
13
|
+
# compile time via `include_str!` (src/emit.rs). An explicit allowlist keeps the
|
|
14
|
+
# published crate small and — crucially — excludes the `CLAUDE.md -> AGENTS.md`
|
|
15
|
+
# symlink, which `cargo publish` rejects, along with CI config, scripts, and the
|
|
16
|
+
# Fern fixture corpus. `publish` is intentionally left at its default (true);
|
|
17
|
+
# the registry push runs from release.yml's `publish-crate` job, not release-plz.
|
|
18
|
+
include = [
|
|
19
|
+
"src/**/*.rs",
|
|
20
|
+
"templates/**/*.j2",
|
|
21
|
+
# Fern's vendored `core/` runtime, emitted verbatim via include_str! in
|
|
22
|
+
# src/emit.rs — must ship in the crate or `cargo publish`'s verify build
|
|
23
|
+
# fails. `**/*` covers the nested http_sse/ subdir and the provenance README.
|
|
24
|
+
"assets/**/*",
|
|
25
|
+
"/Cargo.toml",
|
|
26
|
+
"/README.md",
|
|
27
|
+
"/LICENSE",
|
|
28
|
+
"/NOTICE",
|
|
29
|
+
"/licenses/*",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[[bin]]
|
|
33
|
+
name = "crozier"
|
|
34
|
+
path = "src/main.rs"
|
|
35
|
+
|
|
36
|
+
[lib]
|
|
37
|
+
name = "crozier"
|
|
38
|
+
path = "src/lib.rs"
|
|
39
|
+
|
|
40
|
+
[dependencies]
|
|
41
|
+
clap = { version = "4", features = ["derive"] }
|
|
42
|
+
minijinja = { version = "2", features = ["loader"] }
|
|
43
|
+
serde = { version = "1", features = ["derive"] }
|
|
44
|
+
serde_json = "1"
|
|
45
|
+
serde_yaml_ng = "0.10"
|
|
46
|
+
indexmap = { version = "2", features = ["serde"] }
|
|
47
|
+
thiserror = "2"
|
|
48
|
+
|
|
49
|
+
[dev-dependencies]
|
|
50
|
+
assert_cmd = "2"
|
|
51
|
+
predicates = "3"
|
|
52
|
+
tempfile = "3"
|
|
53
|
+
|
|
54
|
+
[profile.release]
|
|
55
|
+
opt-level = 3
|
|
56
|
+
lto = true
|
|
57
|
+
codegen-units = 1
|
|
58
|
+
strip = true
|
|
59
|
+
panic = "abort"
|