carve-lang 0.1.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.
- carve_lang-0.1.0/CHANGELOG.md +39 -0
- carve_lang-0.1.0/Cargo.lock +479 -0
- carve_lang-0.1.0/Cargo.toml +43 -0
- carve_lang-0.1.0/LICENSE +21 -0
- carve_lang-0.1.0/PKG-INFO +233 -0
- carve_lang-0.1.0/README.md +203 -0
- carve_lang-0.1.0/RELEASING.md +41 -0
- carve_lang-0.1.0/carve.pyi +180 -0
- carve_lang-0.1.0/pyproject.toml +51 -0
- carve_lang-0.1.0/src/lib.rs +576 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to the `carve-lang` distribution (import name `carve`).
|
|
4
|
+
|
|
5
|
+
The engine is carve-rs, embedded at the revision recorded in `Cargo.lock`, so an
|
|
6
|
+
engine bump can change rendering without a line of Python changing. Engine bumps
|
|
7
|
+
therefore get an entry of their own.
|
|
8
|
+
|
|
9
|
+
## 0.1.0 - 2026-08-12
|
|
10
|
+
|
|
11
|
+
First release.
|
|
12
|
+
|
|
13
|
+
- Embed carve-rs `4ddc24a0`, 40 commits ahead of the previous pin. Brings the
|
|
14
|
+
exact AST span extents, fence trailing-blank fixes, and locale-aware smart
|
|
15
|
+
quotes, and clears the last 5 corpus divergences. A `+`-continued table cell
|
|
16
|
+
no longer reports a `pos`, which is what PART 12 requires of a reassembled
|
|
17
|
+
node.
|
|
18
|
+
- Convert Carve source to HTML, Markdown, plain text, and ANSI
|
|
19
|
+
(`to_html`, `to_markdown`, `to_plain_text`, `to_ansi`), byte-identical to
|
|
20
|
+
carve-rs for the same input.
|
|
21
|
+
- Enable opt-in extensions by name (`extensions=[...]`, `to_html_with_extensions`,
|
|
22
|
+
and `extensions()` for the supported list).
|
|
23
|
+
- Render statically with `mode="static"` and optional build-time `renderers` for
|
|
24
|
+
diagram fences and math; a missing or failing renderer degrades to the
|
|
25
|
+
construct's source rather than to nothing.
|
|
26
|
+
- Map `:name:` symbols with `symbols={...}`. Values are inserted as trusted raw
|
|
27
|
+
output in the target format, so a symbols map must never be built from
|
|
28
|
+
untrusted input.
|
|
29
|
+
- Restrict input with `profile=` (`full`, `article`, `comment`, `minimal`) and
|
|
30
|
+
escape `=html` raw passthrough with `safe=True`. A profile rejection raises
|
|
31
|
+
rather than returning the engine's empty string, which a caller could not
|
|
32
|
+
distinguish from a document that legitimately rendered to nothing.
|
|
33
|
+
- Export the PART 12 AST (`parse`, `parse_json`), the interchange shape every
|
|
34
|
+
Carve engine publishes.
|
|
35
|
+
- Read provenance markers written by `carve fmt --stamp` (`read_stamp`) and
|
|
36
|
+
answer whether a document predates the targeted spec version (`needs_review`);
|
|
37
|
+
an unstamped document answers "needs review".
|
|
38
|
+
- Ship abi3 wheels (`abi3-py38`), so one wheel per platform covers CPython 3.8+,
|
|
39
|
+
with `carve.pyi` type stubs.
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "2.13.1"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "carve-lang"
|
|
19
|
+
version = "0.1.2"
|
|
20
|
+
source = "git+https://github.com/markup-carve/carve-rs?rev=4ddc24a01f1116a8315421d7dce131b27ec45f61#4ddc24a01f1116a8315421d7dce131b27ec45f61"
|
|
21
|
+
dependencies = [
|
|
22
|
+
"html5ever",
|
|
23
|
+
"markup5ever_rcdom",
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "cfg-if"
|
|
28
|
+
version = "1.0.4"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "futf"
|
|
34
|
+
version = "0.1.5"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"
|
|
37
|
+
dependencies = [
|
|
38
|
+
"mac",
|
|
39
|
+
"new_debug_unreachable",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "heck"
|
|
44
|
+
version = "0.5.0"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "html5ever"
|
|
50
|
+
version = "0.27.0"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "c13771afe0e6e846f1e67d038d4cb29998a6779f93c809212e4e9c32efd244d4"
|
|
53
|
+
dependencies = [
|
|
54
|
+
"log",
|
|
55
|
+
"mac",
|
|
56
|
+
"markup5ever",
|
|
57
|
+
"proc-macro2",
|
|
58
|
+
"quote",
|
|
59
|
+
"syn 2.0.118",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[[package]]
|
|
63
|
+
name = "indoc"
|
|
64
|
+
version = "2.0.7"
|
|
65
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
67
|
+
dependencies = [
|
|
68
|
+
"rustversion",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "libc"
|
|
73
|
+
version = "0.2.186"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "lock_api"
|
|
79
|
+
version = "0.4.14"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"scopeguard",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "log"
|
|
88
|
+
version = "0.4.33"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "mac"
|
|
94
|
+
version = "0.1.1"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "markup5ever"
|
|
100
|
+
version = "0.12.1"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "16ce3abbeba692c8b8441d036ef91aea6df8da2c6b6e21c7e14d3c18e526be45"
|
|
103
|
+
dependencies = [
|
|
104
|
+
"log",
|
|
105
|
+
"phf",
|
|
106
|
+
"phf_codegen",
|
|
107
|
+
"string_cache",
|
|
108
|
+
"string_cache_codegen",
|
|
109
|
+
"tendril",
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "markup5ever_rcdom"
|
|
114
|
+
version = "0.3.0"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "edaa21ab3701bfee5099ade5f7e1f84553fd19228cf332f13cd6e964bf59be18"
|
|
117
|
+
dependencies = [
|
|
118
|
+
"html5ever",
|
|
119
|
+
"markup5ever",
|
|
120
|
+
"tendril",
|
|
121
|
+
"xml5ever",
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
[[package]]
|
|
125
|
+
name = "memoffset"
|
|
126
|
+
version = "0.9.1"
|
|
127
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
129
|
+
dependencies = [
|
|
130
|
+
"autocfg",
|
|
131
|
+
]
|
|
132
|
+
|
|
133
|
+
[[package]]
|
|
134
|
+
name = "new_debug_unreachable"
|
|
135
|
+
version = "1.0.6"
|
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
+
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
|
138
|
+
|
|
139
|
+
[[package]]
|
|
140
|
+
name = "once_cell"
|
|
141
|
+
version = "1.21.4"
|
|
142
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
143
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "parking_lot"
|
|
147
|
+
version = "0.12.5"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
|
150
|
+
dependencies = [
|
|
151
|
+
"lock_api",
|
|
152
|
+
"parking_lot_core",
|
|
153
|
+
]
|
|
154
|
+
|
|
155
|
+
[[package]]
|
|
156
|
+
name = "parking_lot_core"
|
|
157
|
+
version = "0.9.12"
|
|
158
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
159
|
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
|
160
|
+
dependencies = [
|
|
161
|
+
"cfg-if",
|
|
162
|
+
"libc",
|
|
163
|
+
"redox_syscall",
|
|
164
|
+
"smallvec",
|
|
165
|
+
"windows-link",
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
[[package]]
|
|
169
|
+
name = "phf"
|
|
170
|
+
version = "0.11.3"
|
|
171
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
+
checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078"
|
|
173
|
+
dependencies = [
|
|
174
|
+
"phf_shared",
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "phf_codegen"
|
|
179
|
+
version = "0.11.3"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "aef8048c789fa5e851558d709946d6d79a8ff88c0440c587967f8e94bfb1216a"
|
|
182
|
+
dependencies = [
|
|
183
|
+
"phf_generator",
|
|
184
|
+
"phf_shared",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "phf_generator"
|
|
189
|
+
version = "0.11.3"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"phf_shared",
|
|
194
|
+
"rand",
|
|
195
|
+
]
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "phf_shared"
|
|
199
|
+
version = "0.11.3"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5"
|
|
202
|
+
dependencies = [
|
|
203
|
+
"siphasher",
|
|
204
|
+
]
|
|
205
|
+
|
|
206
|
+
[[package]]
|
|
207
|
+
name = "portable-atomic"
|
|
208
|
+
version = "1.13.1"
|
|
209
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
210
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
211
|
+
|
|
212
|
+
[[package]]
|
|
213
|
+
name = "precomputed-hash"
|
|
214
|
+
version = "0.1.1"
|
|
215
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
+
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
|
217
|
+
|
|
218
|
+
[[package]]
|
|
219
|
+
name = "proc-macro2"
|
|
220
|
+
version = "1.0.106"
|
|
221
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
222
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
223
|
+
dependencies = [
|
|
224
|
+
"unicode-ident",
|
|
225
|
+
]
|
|
226
|
+
|
|
227
|
+
[[package]]
|
|
228
|
+
name = "pyo3"
|
|
229
|
+
version = "0.27.2"
|
|
230
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
231
|
+
checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
|
|
232
|
+
dependencies = [
|
|
233
|
+
"indoc",
|
|
234
|
+
"libc",
|
|
235
|
+
"memoffset",
|
|
236
|
+
"once_cell",
|
|
237
|
+
"portable-atomic",
|
|
238
|
+
"pyo3-build-config",
|
|
239
|
+
"pyo3-ffi",
|
|
240
|
+
"pyo3-macros",
|
|
241
|
+
"unindent",
|
|
242
|
+
]
|
|
243
|
+
|
|
244
|
+
[[package]]
|
|
245
|
+
name = "pyo3-build-config"
|
|
246
|
+
version = "0.27.2"
|
|
247
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
+
checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
|
|
249
|
+
dependencies = [
|
|
250
|
+
"target-lexicon",
|
|
251
|
+
]
|
|
252
|
+
|
|
253
|
+
[[package]]
|
|
254
|
+
name = "pyo3-ffi"
|
|
255
|
+
version = "0.27.2"
|
|
256
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
+
checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
|
|
258
|
+
dependencies = [
|
|
259
|
+
"libc",
|
|
260
|
+
"pyo3-build-config",
|
|
261
|
+
]
|
|
262
|
+
|
|
263
|
+
[[package]]
|
|
264
|
+
name = "pyo3-macros"
|
|
265
|
+
version = "0.27.2"
|
|
266
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
+
checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
|
|
268
|
+
dependencies = [
|
|
269
|
+
"proc-macro2",
|
|
270
|
+
"pyo3-macros-backend",
|
|
271
|
+
"quote",
|
|
272
|
+
"syn 2.0.118",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "pyo3-macros-backend"
|
|
277
|
+
version = "0.27.2"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
|
|
280
|
+
dependencies = [
|
|
281
|
+
"heck",
|
|
282
|
+
"proc-macro2",
|
|
283
|
+
"pyo3-build-config",
|
|
284
|
+
"quote",
|
|
285
|
+
"syn 2.0.118",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "python-carve"
|
|
290
|
+
version = "0.1.0"
|
|
291
|
+
dependencies = [
|
|
292
|
+
"carve-lang",
|
|
293
|
+
"pyo3",
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
[[package]]
|
|
297
|
+
name = "quote"
|
|
298
|
+
version = "1.0.46"
|
|
299
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
300
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
301
|
+
dependencies = [
|
|
302
|
+
"proc-macro2",
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
[[package]]
|
|
306
|
+
name = "rand"
|
|
307
|
+
version = "0.8.7"
|
|
308
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
309
|
+
checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a"
|
|
310
|
+
dependencies = [
|
|
311
|
+
"rand_core",
|
|
312
|
+
]
|
|
313
|
+
|
|
314
|
+
[[package]]
|
|
315
|
+
name = "rand_core"
|
|
316
|
+
version = "0.6.4"
|
|
317
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
318
|
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
319
|
+
|
|
320
|
+
[[package]]
|
|
321
|
+
name = "redox_syscall"
|
|
322
|
+
version = "0.5.18"
|
|
323
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
324
|
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
|
325
|
+
dependencies = [
|
|
326
|
+
"bitflags",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "rustversion"
|
|
331
|
+
version = "1.0.22"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
334
|
+
|
|
335
|
+
[[package]]
|
|
336
|
+
name = "scopeguard"
|
|
337
|
+
version = "1.2.0"
|
|
338
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
339
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
340
|
+
|
|
341
|
+
[[package]]
|
|
342
|
+
name = "serde"
|
|
343
|
+
version = "1.0.229"
|
|
344
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
345
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
346
|
+
dependencies = [
|
|
347
|
+
"serde_core",
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
[[package]]
|
|
351
|
+
name = "serde_core"
|
|
352
|
+
version = "1.0.229"
|
|
353
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
354
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
355
|
+
dependencies = [
|
|
356
|
+
"serde_derive",
|
|
357
|
+
]
|
|
358
|
+
|
|
359
|
+
[[package]]
|
|
360
|
+
name = "serde_derive"
|
|
361
|
+
version = "1.0.229"
|
|
362
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
364
|
+
dependencies = [
|
|
365
|
+
"proc-macro2",
|
|
366
|
+
"quote",
|
|
367
|
+
"syn 3.0.3",
|
|
368
|
+
]
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "siphasher"
|
|
372
|
+
version = "1.0.3"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
|
|
375
|
+
|
|
376
|
+
[[package]]
|
|
377
|
+
name = "smallvec"
|
|
378
|
+
version = "1.15.2"
|
|
379
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
380
|
+
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
|
|
381
|
+
|
|
382
|
+
[[package]]
|
|
383
|
+
name = "string_cache"
|
|
384
|
+
version = "0.8.9"
|
|
385
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
386
|
+
checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f"
|
|
387
|
+
dependencies = [
|
|
388
|
+
"new_debug_unreachable",
|
|
389
|
+
"parking_lot",
|
|
390
|
+
"phf_shared",
|
|
391
|
+
"precomputed-hash",
|
|
392
|
+
"serde",
|
|
393
|
+
]
|
|
394
|
+
|
|
395
|
+
[[package]]
|
|
396
|
+
name = "string_cache_codegen"
|
|
397
|
+
version = "0.5.4"
|
|
398
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
399
|
+
checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0"
|
|
400
|
+
dependencies = [
|
|
401
|
+
"phf_generator",
|
|
402
|
+
"phf_shared",
|
|
403
|
+
"proc-macro2",
|
|
404
|
+
"quote",
|
|
405
|
+
]
|
|
406
|
+
|
|
407
|
+
[[package]]
|
|
408
|
+
name = "syn"
|
|
409
|
+
version = "2.0.118"
|
|
410
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
411
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
412
|
+
dependencies = [
|
|
413
|
+
"proc-macro2",
|
|
414
|
+
"quote",
|
|
415
|
+
"unicode-ident",
|
|
416
|
+
]
|
|
417
|
+
|
|
418
|
+
[[package]]
|
|
419
|
+
name = "syn"
|
|
420
|
+
version = "3.0.3"
|
|
421
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
422
|
+
checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
|
|
423
|
+
dependencies = [
|
|
424
|
+
"proc-macro2",
|
|
425
|
+
"quote",
|
|
426
|
+
"unicode-ident",
|
|
427
|
+
]
|
|
428
|
+
|
|
429
|
+
[[package]]
|
|
430
|
+
name = "target-lexicon"
|
|
431
|
+
version = "0.13.5"
|
|
432
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
433
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
434
|
+
|
|
435
|
+
[[package]]
|
|
436
|
+
name = "tendril"
|
|
437
|
+
version = "0.4.3"
|
|
438
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
+
checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"
|
|
440
|
+
dependencies = [
|
|
441
|
+
"futf",
|
|
442
|
+
"mac",
|
|
443
|
+
"utf-8",
|
|
444
|
+
]
|
|
445
|
+
|
|
446
|
+
[[package]]
|
|
447
|
+
name = "unicode-ident"
|
|
448
|
+
version = "1.0.24"
|
|
449
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
450
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
451
|
+
|
|
452
|
+
[[package]]
|
|
453
|
+
name = "unindent"
|
|
454
|
+
version = "0.2.4"
|
|
455
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
456
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
457
|
+
|
|
458
|
+
[[package]]
|
|
459
|
+
name = "utf-8"
|
|
460
|
+
version = "0.7.6"
|
|
461
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
462
|
+
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
|
463
|
+
|
|
464
|
+
[[package]]
|
|
465
|
+
name = "windows-link"
|
|
466
|
+
version = "0.2.1"
|
|
467
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
469
|
+
|
|
470
|
+
[[package]]
|
|
471
|
+
name = "xml5ever"
|
|
472
|
+
version = "0.18.1"
|
|
473
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
474
|
+
checksum = "9bbb26405d8e919bc1547a5aa9abc95cbfa438f04844f5fdd9dc7596b748bf69"
|
|
475
|
+
dependencies = [
|
|
476
|
+
"log",
|
|
477
|
+
"mac",
|
|
478
|
+
"markup5ever",
|
|
479
|
+
]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "python-carve"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
description = "Python bindings (PyO3) for the Carve markup language, over the carve-rs engine."
|
|
6
|
+
license = "MIT"
|
|
7
|
+
repository = "https://github.com/markup-carve/carve-py"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
|
|
10
|
+
[lib]
|
|
11
|
+
# The compiled Python extension module is named `carve`.
|
|
12
|
+
name = "carve"
|
|
13
|
+
crate-type = ["cdylib"]
|
|
14
|
+
|
|
15
|
+
# IMPORTANT: do NOT set `panic = "abort"` anywhere (no `[profile.release]`
|
|
16
|
+
# panic setting here, and none inherited from a workspace). PyO3 wraps every
|
|
17
|
+
# Rust call this module exposes in catch_unwind to convert a Rust panic into a
|
|
18
|
+
# Python exception; that conversion only works under `panic = "unwind"` (the
|
|
19
|
+
# Cargo default). Setting `panic = "abort"` silently removes the safety net and
|
|
20
|
+
# a panic would abort the host Python interpreter. The CI step
|
|
21
|
+
# (scripts/check-panic-unwind.sh) enforces this.
|
|
22
|
+
|
|
23
|
+
[dependencies]
|
|
24
|
+
pyo3 = { version = "0.27", features = ["abi3-py38", "extension-module"] }
|
|
25
|
+
|
|
26
|
+
# --- Carve engine dependency ---------------------------------------------
|
|
27
|
+
# Renamed to `carve_rs` in Rust code (via `package = "carve-lang"`) so it does
|
|
28
|
+
# not collide with our own `carve` #[pymodule]. The crate is published as
|
|
29
|
+
# `carve-lang` (the name `carve` was taken on crates.io).
|
|
30
|
+
#
|
|
31
|
+
# Pinned to an EXACT revision, the way carve-wasm and carve-rb pin it.
|
|
32
|
+
#
|
|
33
|
+
# `branch = "main"` beside a committed Cargo.lock is the worst of both: the
|
|
34
|
+
# declaration reads as tracking, and `cargo build` keeps the locked revision.
|
|
35
|
+
# That is how the lock came to sit 65 commits behind while everything about the
|
|
36
|
+
# manifest said current (#16). #17 bumped the lock; this makes the manifest say
|
|
37
|
+
# what it does, so the next drift is a line in a diff rather than a lockfile
|
|
38
|
+
# nobody reads.
|
|
39
|
+
carve_rs = { package = "carve-lang", git = "https://github.com/markup-carve/carve-rs", rev = "4ddc24a01f1116a8315421d7dce131b27ec45f61" }
|
|
40
|
+
#
|
|
41
|
+
# For local development against a sibling checkout, swap the line above for a
|
|
42
|
+
# path dependency:
|
|
43
|
+
# carve_rs = { package = "carve-lang", path = "../carve-rs" }
|
carve_lang-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 markup-carve
|
|
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.
|