layouttk 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.
Files changed (78) hide show
  1. layouttk-0.1.0/Cargo.lock +597 -0
  2. layouttk-0.1.0/Cargo.toml +39 -0
  3. layouttk-0.1.0/LICENSE +7 -0
  4. layouttk-0.1.0/NOTICE +32 -0
  5. layouttk-0.1.0/PKG-INFO +142 -0
  6. layouttk-0.1.0/README.md +117 -0
  7. layouttk-0.1.0/THIRD-PARTY-LICENSES.txt +3583 -0
  8. layouttk-0.1.0/docs/benchmarks.md +89 -0
  9. layouttk-0.1.0/docs/ci.md +43 -0
  10. layouttk-0.1.0/docs/community-needs.md +51 -0
  11. layouttk-0.1.0/docs/gdspy-coverage.md +121 -0
  12. layouttk-0.1.0/docs/polygon-drafts.md +30 -0
  13. layouttk-0.1.0/docs/python-workflows.md +179 -0
  14. layouttk-0.1.0/docs/releasing.md +58 -0
  15. layouttk-0.1.0/docs/upstream-research-and-roadmap.md +158 -0
  16. layouttk-0.1.0/licenses/RUST-STDLIB-1.100.1.html +29630 -0
  17. layouttk-0.1.0/pyproject.toml +39 -0
  18. layouttk-0.1.0/python/layouttk/__init__.py +92 -0
  19. layouttk-0.1.0/python/layouttk/_font.py +128 -0
  20. layouttk-0.1.0/python/layouttk/_native.pyi +121 -0
  21. layouttk-0.1.0/python/layouttk/analysis.py +478 -0
  22. layouttk-0.1.0/python/layouttk/arrays.py +265 -0
  23. layouttk-0.1.0/python/layouttk/cell.py +94 -0
  24. layouttk-0.1.0/python/layouttk/gds_tools.py +222 -0
  25. layouttk-0.1.0/python/layouttk/hierarchy.py +347 -0
  26. layouttk-0.1.0/python/layouttk/metadata.py +117 -0
  27. layouttk-0.1.0/python/layouttk/paths.py +1505 -0
  28. layouttk-0.1.0/python/layouttk/polygons.py +385 -0
  29. layouttk-0.1.0/python/layouttk/py.typed +0 -0
  30. layouttk-0.1.0/python/layouttk/region.py +129 -0
  31. layouttk-0.1.0/python/layouttk/text.py +84 -0
  32. layouttk-0.1.0/python/layouttk/viewer.py +978 -0
  33. layouttk-0.1.0/scripts/benchmark_layouts.py +403 -0
  34. layouttk-0.1.0/src/bin/layouttk.rs +159 -0
  35. layouttk-0.1.0/src/conversion.rs +863 -0
  36. layouttk-0.1.0/src/gds.rs +1234 -0
  37. layouttk-0.1.0/src/gds_tools.rs +683 -0
  38. layouttk-0.1.0/src/geometry/construction.rs +443 -0
  39. layouttk-0.1.0/src/geometry.rs +368 -0
  40. layouttk-0.1.0/src/hierarchy/tables.rs +314 -0
  41. layouttk-0.1.0/src/hierarchy.rs +1458 -0
  42. layouttk-0.1.0/src/lib.rs +214 -0
  43. layouttk-0.1.0/src/model.rs +749 -0
  44. layouttk-0.1.0/src/oasis/binary.rs +204 -0
  45. layouttk-0.1.0/src/oasis/reader/metadata.rs +565 -0
  46. layouttk-0.1.0/src/oasis/reader/offsets.rs +121 -0
  47. layouttk-0.1.0/src/oasis/reader.rs +1009 -0
  48. layouttk-0.1.0/src/oasis/trapezoid.rs +110 -0
  49. layouttk-0.1.0/src/oasis/writer.rs +697 -0
  50. layouttk-0.1.0/src/oasis.rs +563 -0
  51. layouttk-0.1.0/src/paths/builder.rs +379 -0
  52. layouttk-0.1.0/src/paths/hobby.rs +200 -0
  53. layouttk-0.1.0/src/paths/stroke.rs +644 -0
  54. layouttk-0.1.0/src/paths.rs +217 -0
  55. layouttk-0.1.0/src/python.rs +805 -0
  56. layouttk-0.1.0/src/python_arrays.rs +219 -0
  57. layouttk-0.1.0/src/python_gds_tools.rs +147 -0
  58. layouttk-0.1.0/src/python_geometry.rs +223 -0
  59. layouttk-0.1.0/src/python_hierarchy.rs +357 -0
  60. layouttk-0.1.0/src/python_metadata.rs +235 -0
  61. layouttk-0.1.0/src/python_paths.rs +215 -0
  62. layouttk-0.1.0/src/resample.rs +142 -0
  63. layouttk-0.1.0/tests/cli.rs +224 -0
  64. layouttk-0.1.0/tests/format_corpus.rs +89 -0
  65. layouttk-0.1.0/tests/test_analysis.py +230 -0
  66. layouttk-0.1.0/tests/test_arrays.py +249 -0
  67. layouttk-0.1.0/tests/test_conversion.py +41 -0
  68. layouttk-0.1.0/tests/test_gds_tools.py +288 -0
  69. layouttk-0.1.0/tests/test_geometry.py +165 -0
  70. layouttk-0.1.0/tests/test_hierarchy.py +468 -0
  71. layouttk-0.1.0/tests/test_interop.py +377 -0
  72. layouttk-0.1.0/tests/test_oasis_aliases.py +207 -0
  73. layouttk-0.1.0/tests/test_paths.py +396 -0
  74. layouttk-0.1.0/tests/test_polygons.py +139 -0
  75. layouttk-0.1.0/tests/test_properties_repetitions.py +410 -0
  76. layouttk-0.1.0/tests/test_public_api.py +198 -0
  77. layouttk-0.1.0/tests/test_viewer_text.py +265 -0
  78. layouttk-0.1.0/tests/test_workflows.py +33 -0
@@ -0,0 +1,597 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "adler2"
7
+ version = "2.0.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
10
+
11
+ [[package]]
12
+ name = "anstream"
13
+ version = "1.0.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
16
+ dependencies = [
17
+ "anstyle",
18
+ "anstyle-parse",
19
+ "anstyle-query",
20
+ "anstyle-wincon",
21
+ "colorchoice",
22
+ "is_terminal_polyfill",
23
+ "utf8parse",
24
+ ]
25
+
26
+ [[package]]
27
+ name = "anstyle"
28
+ version = "1.0.14"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
31
+
32
+ [[package]]
33
+ name = "anstyle-parse"
34
+ version = "1.0.0"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
37
+ dependencies = [
38
+ "utf8parse",
39
+ ]
40
+
41
+ [[package]]
42
+ name = "anstyle-query"
43
+ version = "1.1.5"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
46
+ dependencies = [
47
+ "windows-sys",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "anstyle-wincon"
52
+ version = "3.0.11"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
55
+ dependencies = [
56
+ "anstyle",
57
+ "once_cell_polyfill",
58
+ "windows-sys",
59
+ ]
60
+
61
+ [[package]]
62
+ name = "autocfg"
63
+ version = "1.5.1"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
66
+
67
+ [[package]]
68
+ name = "bitflags"
69
+ version = "2.13.2"
70
+ source = "registry+https://github.com/rust-lang/crates.io-index"
71
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
72
+
73
+ [[package]]
74
+ name = "block-buffer"
75
+ version = "0.12.1"
76
+ source = "registry+https://github.com/rust-lang/crates.io-index"
77
+ checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
78
+ dependencies = [
79
+ "hybrid-array",
80
+ ]
81
+
82
+ [[package]]
83
+ name = "cfg-if"
84
+ version = "1.0.5"
85
+ source = "registry+https://github.com/rust-lang/crates.io-index"
86
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
87
+
88
+ [[package]]
89
+ name = "clap"
90
+ version = "4.6.10"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "50066ca966813ca8957ee15361752f19424a8ff620dbe9c8993d9f99d99b04b3"
93
+ dependencies = [
94
+ "clap_builder",
95
+ "clap_derive",
96
+ ]
97
+
98
+ [[package]]
99
+ name = "clap_builder"
100
+ version = "4.6.10"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "a0ed97c96ef4efb3cc84e09fa388df4463e7cc3224ec38d7b1d9e45749333590"
103
+ dependencies = [
104
+ "anstream",
105
+ "anstyle",
106
+ "clap_lex",
107
+ "strsim",
108
+ ]
109
+
110
+ [[package]]
111
+ name = "clap_derive"
112
+ version = "4.6.9"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "b4c174f11f949b9ca8c60580925e282b9cbd5454750e506f08648b2038080cd7"
115
+ dependencies = [
116
+ "heck",
117
+ "proc-macro2",
118
+ "quote",
119
+ "syn",
120
+ ]
121
+
122
+ [[package]]
123
+ name = "clap_lex"
124
+ version = "1.1.2"
125
+ source = "registry+https://github.com/rust-lang/crates.io-index"
126
+ checksum = "e0921b3876b3a1df8a1c9f912e7f94342458022c2e84288015893d83c4d62a79"
127
+
128
+ [[package]]
129
+ name = "clipper2-rust"
130
+ version = "1.3.0"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "c7c3c3fe8e9bfa8c206b418cfd99bb0e47ae6125b7370a0efeb6958514dd82e2"
133
+ dependencies = [
134
+ "num-traits",
135
+ ]
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 = "const-oid"
145
+ version = "0.10.3"
146
+ source = "registry+https://github.com/rust-lang/crates.io-index"
147
+ checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a"
148
+
149
+ [[package]]
150
+ name = "cpufeatures"
151
+ version = "0.3.1"
152
+ source = "registry+https://github.com/rust-lang/crates.io-index"
153
+ checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
154
+ dependencies = [
155
+ "libc",
156
+ ]
157
+
158
+ [[package]]
159
+ name = "crc32fast"
160
+ version = "1.5.6"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "fd9ae8fcb3ea71b0b26338b4ffb13006bb175de8fd07921089a906ce7e5e6945"
163
+ dependencies = [
164
+ "cfg-if",
165
+ ]
166
+
167
+ [[package]]
168
+ name = "crypto-common"
169
+ version = "0.2.2"
170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
171
+ checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
172
+ dependencies = [
173
+ "hybrid-array",
174
+ ]
175
+
176
+ [[package]]
177
+ name = "digest"
178
+ version = "0.11.3"
179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
180
+ checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
181
+ dependencies = [
182
+ "block-buffer",
183
+ "const-oid",
184
+ "crypto-common",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "errno"
189
+ version = "0.3.15"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776"
192
+ dependencies = [
193
+ "libc",
194
+ "windows-sys",
195
+ ]
196
+
197
+ [[package]]
198
+ name = "fastrand"
199
+ version = "2.5.0"
200
+ source = "registry+https://github.com/rust-lang/crates.io-index"
201
+ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
202
+
203
+ [[package]]
204
+ name = "flate2"
205
+ version = "1.1.11"
206
+ source = "registry+https://github.com/rust-lang/crates.io-index"
207
+ checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4"
208
+ dependencies = [
209
+ "crc32fast",
210
+ "miniz_oxide",
211
+ "zlib-rs",
212
+ ]
213
+
214
+ [[package]]
215
+ name = "getrandom"
216
+ version = "0.4.3"
217
+ source = "registry+https://github.com/rust-lang/crates.io-index"
218
+ checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
219
+ dependencies = [
220
+ "cfg-if",
221
+ "libc",
222
+ "r-efi",
223
+ ]
224
+
225
+ [[package]]
226
+ name = "heck"
227
+ version = "0.5.0"
228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
229
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
230
+
231
+ [[package]]
232
+ name = "hybrid-array"
233
+ version = "0.4.15"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
236
+ dependencies = [
237
+ "typenum",
238
+ ]
239
+
240
+ [[package]]
241
+ name = "is_terminal_polyfill"
242
+ version = "1.70.2"
243
+ source = "registry+https://github.com/rust-lang/crates.io-index"
244
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
245
+
246
+ [[package]]
247
+ name = "itoa"
248
+ version = "1.0.19"
249
+ source = "registry+https://github.com/rust-lang/crates.io-index"
250
+ checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
251
+
252
+ [[package]]
253
+ name = "layouttk"
254
+ version = "0.1.0"
255
+ dependencies = [
256
+ "clap",
257
+ "clipper2-rust",
258
+ "flate2",
259
+ "num-bigint",
260
+ "num-integer",
261
+ "num-traits",
262
+ "pyo3",
263
+ "serde",
264
+ "serde_json",
265
+ "sha1",
266
+ "tempfile",
267
+ "thiserror",
268
+ ]
269
+
270
+ [[package]]
271
+ name = "libc"
272
+ version = "0.2.191"
273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
274
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
275
+
276
+ [[package]]
277
+ name = "linux-raw-sys"
278
+ version = "0.12.1"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
281
+
282
+ [[package]]
283
+ name = "memchr"
284
+ version = "2.8.3"
285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
287
+
288
+ [[package]]
289
+ name = "miniz_oxide"
290
+ version = "0.9.1"
291
+ source = "registry+https://github.com/rust-lang/crates.io-index"
292
+ checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
293
+ dependencies = [
294
+ "adler2",
295
+ "simd-adler32",
296
+ ]
297
+
298
+ [[package]]
299
+ name = "num-bigint"
300
+ version = "0.4.8"
301
+ source = "registry+https://github.com/rust-lang/crates.io-index"
302
+ checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
303
+ dependencies = [
304
+ "num-integer",
305
+ "num-traits",
306
+ ]
307
+
308
+ [[package]]
309
+ name = "num-integer"
310
+ version = "0.1.47"
311
+ source = "registry+https://github.com/rust-lang/crates.io-index"
312
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
313
+ dependencies = [
314
+ "num-traits",
315
+ ]
316
+
317
+ [[package]]
318
+ name = "num-traits"
319
+ version = "0.2.19"
320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
321
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
322
+ dependencies = [
323
+ "autocfg",
324
+ ]
325
+
326
+ [[package]]
327
+ name = "once_cell"
328
+ version = "1.21.4"
329
+ source = "registry+https://github.com/rust-lang/crates.io-index"
330
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
331
+
332
+ [[package]]
333
+ name = "once_cell_polyfill"
334
+ version = "1.70.2"
335
+ source = "registry+https://github.com/rust-lang/crates.io-index"
336
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
337
+
338
+ [[package]]
339
+ name = "portable-atomic"
340
+ version = "1.15.0"
341
+ source = "registry+https://github.com/rust-lang/crates.io-index"
342
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
343
+
344
+ [[package]]
345
+ name = "proc-macro2"
346
+ version = "1.0.107"
347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
348
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
349
+ dependencies = [
350
+ "unicode-ident",
351
+ ]
352
+
353
+ [[package]]
354
+ name = "pyo3"
355
+ version = "0.30.1"
356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
357
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
358
+ dependencies = [
359
+ "libc",
360
+ "once_cell",
361
+ "portable-atomic",
362
+ "pyo3-build-config",
363
+ "pyo3-ffi",
364
+ "pyo3-macros",
365
+ ]
366
+
367
+ [[package]]
368
+ name = "pyo3-build-config"
369
+ version = "0.30.1"
370
+ source = "registry+https://github.com/rust-lang/crates.io-index"
371
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
372
+ dependencies = [
373
+ "target-lexicon",
374
+ ]
375
+
376
+ [[package]]
377
+ name = "pyo3-ffi"
378
+ version = "0.30.1"
379
+ source = "registry+https://github.com/rust-lang/crates.io-index"
380
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
381
+ dependencies = [
382
+ "libc",
383
+ "pyo3-build-config",
384
+ ]
385
+
386
+ [[package]]
387
+ name = "pyo3-macros"
388
+ version = "0.30.1"
389
+ source = "registry+https://github.com/rust-lang/crates.io-index"
390
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
391
+ dependencies = [
392
+ "proc-macro2",
393
+ "pyo3-macros-backend",
394
+ "quote",
395
+ "syn",
396
+ ]
397
+
398
+ [[package]]
399
+ name = "pyo3-macros-backend"
400
+ version = "0.30.1"
401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
402
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
403
+ dependencies = [
404
+ "heck",
405
+ "proc-macro2",
406
+ "quote",
407
+ "syn",
408
+ ]
409
+
410
+ [[package]]
411
+ name = "quote"
412
+ version = "1.0.47"
413
+ source = "registry+https://github.com/rust-lang/crates.io-index"
414
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
415
+ dependencies = [
416
+ "proc-macro2",
417
+ ]
418
+
419
+ [[package]]
420
+ name = "r-efi"
421
+ version = "6.0.0"
422
+ source = "registry+https://github.com/rust-lang/crates.io-index"
423
+ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
424
+
425
+ [[package]]
426
+ name = "rustix"
427
+ version = "1.1.6"
428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
429
+ checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
430
+ dependencies = [
431
+ "bitflags",
432
+ "errno",
433
+ "libc",
434
+ "linux-raw-sys",
435
+ "windows-sys",
436
+ ]
437
+
438
+ [[package]]
439
+ name = "serde"
440
+ version = "1.0.229"
441
+ source = "registry+https://github.com/rust-lang/crates.io-index"
442
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
443
+ dependencies = [
444
+ "serde_core",
445
+ "serde_derive",
446
+ ]
447
+
448
+ [[package]]
449
+ name = "serde_core"
450
+ version = "1.0.229"
451
+ source = "registry+https://github.com/rust-lang/crates.io-index"
452
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
453
+ dependencies = [
454
+ "serde_derive",
455
+ ]
456
+
457
+ [[package]]
458
+ name = "serde_derive"
459
+ version = "1.0.229"
460
+ source = "registry+https://github.com/rust-lang/crates.io-index"
461
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
462
+ dependencies = [
463
+ "proc-macro2",
464
+ "quote",
465
+ "syn",
466
+ ]
467
+
468
+ [[package]]
469
+ name = "serde_json"
470
+ version = "1.0.154"
471
+ source = "registry+https://github.com/rust-lang/crates.io-index"
472
+ checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
473
+ dependencies = [
474
+ "itoa",
475
+ "memchr",
476
+ "serde",
477
+ "serde_core",
478
+ "zmij",
479
+ ]
480
+
481
+ [[package]]
482
+ name = "sha1"
483
+ version = "0.11.0"
484
+ source = "registry+https://github.com/rust-lang/crates.io-index"
485
+ checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"
486
+ dependencies = [
487
+ "cfg-if",
488
+ "cpufeatures",
489
+ "digest",
490
+ ]
491
+
492
+ [[package]]
493
+ name = "simd-adler32"
494
+ version = "0.3.10"
495
+ source = "registry+https://github.com/rust-lang/crates.io-index"
496
+ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
497
+
498
+ [[package]]
499
+ name = "strsim"
500
+ version = "0.11.1"
501
+ source = "registry+https://github.com/rust-lang/crates.io-index"
502
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
503
+
504
+ [[package]]
505
+ name = "syn"
506
+ version = "3.0.10"
507
+ source = "registry+https://github.com/rust-lang/crates.io-index"
508
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
509
+ dependencies = [
510
+ "proc-macro2",
511
+ "quote",
512
+ "unicode-ident",
513
+ ]
514
+
515
+ [[package]]
516
+ name = "target-lexicon"
517
+ version = "0.13.6"
518
+ source = "registry+https://github.com/rust-lang/crates.io-index"
519
+ checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
520
+
521
+ [[package]]
522
+ name = "tempfile"
523
+ version = "3.27.0"
524
+ source = "registry+https://github.com/rust-lang/crates.io-index"
525
+ checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
526
+ dependencies = [
527
+ "fastrand",
528
+ "getrandom",
529
+ "once_cell",
530
+ "rustix",
531
+ "windows-sys",
532
+ ]
533
+
534
+ [[package]]
535
+ name = "thiserror"
536
+ version = "2.0.21"
537
+ source = "registry+https://github.com/rust-lang/crates.io-index"
538
+ checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
539
+ dependencies = [
540
+ "thiserror-impl",
541
+ ]
542
+
543
+ [[package]]
544
+ name = "thiserror-impl"
545
+ version = "2.0.21"
546
+ source = "registry+https://github.com/rust-lang/crates.io-index"
547
+ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
548
+ dependencies = [
549
+ "proc-macro2",
550
+ "quote",
551
+ "syn",
552
+ ]
553
+
554
+ [[package]]
555
+ name = "typenum"
556
+ version = "1.20.1"
557
+ source = "registry+https://github.com/rust-lang/crates.io-index"
558
+ checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
559
+
560
+ [[package]]
561
+ name = "unicode-ident"
562
+ version = "1.0.27"
563
+ source = "registry+https://github.com/rust-lang/crates.io-index"
564
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
565
+
566
+ [[package]]
567
+ name = "utf8parse"
568
+ version = "0.2.2"
569
+ source = "registry+https://github.com/rust-lang/crates.io-index"
570
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
571
+
572
+ [[package]]
573
+ name = "windows-link"
574
+ version = "0.2.1"
575
+ source = "registry+https://github.com/rust-lang/crates.io-index"
576
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
577
+
578
+ [[package]]
579
+ name = "windows-sys"
580
+ version = "0.61.2"
581
+ source = "registry+https://github.com/rust-lang/crates.io-index"
582
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
583
+ dependencies = [
584
+ "windows-link",
585
+ ]
586
+
587
+ [[package]]
588
+ name = "zlib-rs"
589
+ version = "0.6.9"
590
+ source = "registry+https://github.com/rust-lang/crates.io-index"
591
+ checksum = "aa76918995d776d9dd34d371030be228d021137449771493d56e29f77e4148ac"
592
+
593
+ [[package]]
594
+ name = "zmij"
595
+ version = "1.0.23"
596
+ source = "registry+https://github.com/rust-lang/crates.io-index"
597
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,39 @@
1
+ [package]
2
+ name = "layouttk"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ rust-version = "1.95"
6
+ description = "Integer-grid GDSII and OASIS layout processing with hierarchy-aware extraction"
7
+ license = "BSL-1.0"
8
+ repository = "https://github.com/zwh42/layouttk"
9
+ readme = "README.md"
10
+ keywords = ["gdsii", "oasis", "eda", "layout", "semiconductor"]
11
+ categories = ["science", "command-line-utilities", "parser-implementations"]
12
+ include = ["/src/**", "/tests/*.rs", "/Cargo.toml", "/Cargo.lock", "/docs/*.md", "/LICENSE", "/licenses/**", "/NOTICE", "/THIRD-PARTY-LICENSES.txt", "/README.md"]
13
+
14
+ [lib]
15
+ crate-type = ["lib", "cdylib"]
16
+
17
+ [[bin]]
18
+ name = "layouttk"
19
+ path = "src/bin/layouttk.rs"
20
+ required-features = ["cli"]
21
+
22
+ [features]
23
+ default = ["cli"]
24
+ cli = ["dep:clap", "dep:serde_json"]
25
+ python = ["dep:pyo3"]
26
+
27
+ [dependencies]
28
+ num-bigint = "0.4"
29
+ num-integer = "0.1"
30
+ num-traits = "0.2"
31
+ sha1 = "0.11"
32
+ clipper2-rust = "1.3"
33
+ clap = { version = "4.6", features = ["derive"], optional = true }
34
+ flate2 = "1.1"
35
+ pyo3 = { version = "0.30", features = ["abi3-py311"], optional = true }
36
+ serde = { version = "1", features = ["derive"] }
37
+ serde_json = { version = "1", optional = true }
38
+ tempfile = "3"
39
+ thiserror = "2"
layouttk-0.1.0/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Boost Software License - Version 1.0 - August 17th, 2003
2
+
3
+ Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:
4
+
5
+ The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
layouttk-0.1.0/NOTICE ADDED
@@ -0,0 +1,32 @@
1
+ layouttk
2
+ Copyright (c) 2026 layouttk contributors
3
+
4
+ layouttk is distributed under the Boost Software License 1.0 (SPDX: BSL-1.0).
5
+
6
+ Acknowledgments
7
+ Lucas H. Gabrielli and the contributors to gdspy and gdstk pioneered the
8
+ open-source workflows for constructing, reading and manipulating mask layouts
9
+ that inspired layouttk. We thank them and the users who documented real-world
10
+ interoperability cases.
11
+
12
+ gdspy: https://github.com/heitzmann/gdspy
13
+ gdstk: https://github.com/heitzmann/gdstk
14
+ Both upstream projects are distributed under the Boost Software License 1.0.
15
+ Their project names and credits identify their work and its influence.
16
+ The vector glyphs in python/layouttk/_font.py derive from gdspy.Text, and
17
+ src/paths/hobby.rs adapts the spline equations used in gdspy/hobby.py.
18
+ Copyright (c) 2009 Lucas Heitzmann Gabrielli. Distributed under the Boost
19
+ Software License 1.0, reproduced in LICENSE. Their files identify the sources.
20
+ Licenses for Rust dependencies are in THIRD-PARTY-LICENSES.txt.
21
+
22
+ We thank Matthias Koefferlein and the KLayout contributors for the public
23
+ klayout.db database model, hierarchy queries, Region conventions and independent
24
+ layout reader used to validate our implementation. KLayout is used as a test
25
+ reference. The implementation of the Region interface here uses our Rust kernel.
26
+ KLayout: https://www.klayout.de/
27
+ Database API: https://www.klayout.de/doc/programming/database_api.html
28
+
29
+ Binary distributions also link the Rust standard library. The release
30
+ toolchain's copyright and license notices are reproduced in
31
+ licenses/RUST-STDLIB-1.100.1.html. Copyrights belong to the Rust Project
32
+ Developers and the named contributors. Source: https://github.com/rust-lang/rust