zumen 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 (187) hide show
  1. zumen-0.1.0/Cargo.lock +602 -0
  2. zumen-0.1.0/Cargo.toml +41 -0
  3. zumen-0.1.0/LICENSE +21 -0
  4. zumen-0.1.0/PKG-INFO +292 -0
  5. zumen-0.1.0/README.md +270 -0
  6. zumen-0.1.0/bindings/python/.python-version +1 -0
  7. zumen-0.1.0/bindings/python/Cargo.toml +23 -0
  8. zumen-0.1.0/bindings/python/LICENSE +21 -0
  9. zumen-0.1.0/bindings/python/README.md +270 -0
  10. zumen-0.1.0/bindings/python/licenses/BIZUDGothic-OFL.txt +93 -0
  11. zumen-0.1.0/bindings/python/licenses/THIRD_PARTY_LICENSES.txt +3224 -0
  12. zumen-0.1.0/bindings/python/scripts/check_dist.py +110 -0
  13. zumen-0.1.0/bindings/python/src/lib.rs +1156 -0
  14. zumen-0.1.0/bindings/python/tests/test_edit.py +134 -0
  15. zumen-0.1.0/bindings/python/tests/test_mcp.py +100 -0
  16. zumen-0.1.0/bindings/python/tests/test_tools.py +387 -0
  17. zumen-0.1.0/bindings/python/tests/test_zumen.py +501 -0
  18. zumen-0.1.0/bindings/python/tests/wheel_smoke.py +18 -0
  19. zumen-0.1.0/bindings/python/uv.lock +1060 -0
  20. zumen-0.1.0/crates/zumen/Cargo.toml +23 -0
  21. zumen-0.1.0/crates/zumen/src/lib.rs +259 -0
  22. zumen-0.1.0/crates/zumen/tests/common/mod.rs +470 -0
  23. zumen-0.1.0/crates/zumen/tests/convert.rs +325 -0
  24. zumen-0.1.0/crates/zumen/tests/convert_r12.rs +548 -0
  25. zumen-0.1.0/crates/zumen/tests/convert_sxf_jww.rs +501 -0
  26. zumen-0.1.0/crates/zumen/tests/convert_to_sxf.rs +644 -0
  27. zumen-0.1.0/crates/zumen/tests/edit.rs +265 -0
  28. zumen-0.1.0/crates/zumen/tests/golden.rs +90 -0
  29. zumen-0.1.0/crates/zumen/tests/ids.json +657 -0
  30. zumen-0.1.0/crates/zumen/tests/ids.rs +131 -0
  31. zumen-0.1.0/crates/zumen-convert/Cargo.toml +20 -0
  32. zumen-0.1.0/crates/zumen-convert/src/builder.rs +635 -0
  33. zumen-0.1.0/crates/zumen-convert/src/jww.rs +734 -0
  34. zumen-0.1.0/crates/zumen-convert/src/lib.rs +37 -0
  35. zumen-0.1.0/crates/zumen-convert/src/shapes.rs +239 -0
  36. zumen-0.1.0/crates/zumen-convert/src/sheet.rs +178 -0
  37. zumen-0.1.0/crates/zumen-convert/src/sxf.rs +1507 -0
  38. zumen-0.1.0/crates/zumen-convert/src/text.rs +96 -0
  39. zumen-0.1.0/crates/zumen-convert/src/to_jww.rs +2422 -0
  40. zumen-0.1.0/crates/zumen-convert/src/to_sxf.rs +1987 -0
  41. zumen-0.1.0/crates/zumen-convert/tests/common/mod.rs +618 -0
  42. zumen-0.1.0/crates/zumen-convert/tests/to_jww.rs +706 -0
  43. zumen-0.1.0/crates/zumen-core/Cargo.toml +17 -0
  44. zumen-0.1.0/crates/zumen-core/src/compare.rs +959 -0
  45. zumen-0.1.0/crates/zumen-core/src/edit.rs +508 -0
  46. zumen-0.1.0/crates/zumen-core/src/extract.rs +471 -0
  47. zumen-0.1.0/crates/zumen-core/src/geometry.rs +287 -0
  48. zumen-0.1.0/crates/zumen-core/src/js.rs +601 -0
  49. zumen-0.1.0/crates/zumen-core/src/lib.rs +26 -0
  50. zumen-0.1.0/crates/zumen-core/src/limits.rs +189 -0
  51. zumen-0.1.0/crates/zumen-core/src/measure.rs +45 -0
  52. zumen-0.1.0/crates/zumen-core/src/notices.rs +39 -0
  53. zumen-0.1.0/crates/zumen-core/src/read.rs +84 -0
  54. zumen-0.1.0/crates/zumen-core/src/sort.rs +594 -0
  55. zumen-0.1.0/crates/zumen-core/src/text.rs +125 -0
  56. zumen-0.1.0/crates/zumen-core/src/title.rs +587 -0
  57. zumen-0.1.0/crates/zumen-core/src/types.rs +480 -0
  58. zumen-0.1.0/crates/zumen-dwg/Cargo.toml +19 -0
  59. zumen-0.1.0/crates/zumen-dwg/examples/compare.rs +262 -0
  60. zumen-0.1.0/crates/zumen-dwg/examples/edit.rs +56 -0
  61. zumen-0.1.0/crates/zumen-dwg/examples/fuzz.rs +128 -0
  62. zumen-0.1.0/crates/zumen-dwg/examples/rewrite.rs +24 -0
  63. zumen-0.1.0/crates/zumen-dwg/examples/summary.rs +18 -0
  64. zumen-0.1.0/crates/zumen-dwg/examples/to_dwg.rs +20 -0
  65. zumen-0.1.0/crates/zumen-dwg/src/bits.rs +403 -0
  66. zumen-0.1.0/crates/zumen-dwg/src/codec/entities.rs +3136 -0
  67. zumen-0.1.0/crates/zumen-dwg/src/codec/header.rs +599 -0
  68. zumen-0.1.0/crates/zumen-dwg/src/codec/mod.rs +182 -0
  69. zumen-0.1.0/crates/zumen-dwg/src/codec/object.rs +351 -0
  70. zumen-0.1.0/crates/zumen-dwg/src/codec/objects.rs +897 -0
  71. zumen-0.1.0/crates/zumen-dwg/src/codec/tables.rs +850 -0
  72. zumen-0.1.0/crates/zumen-dwg/src/compress.rs +386 -0
  73. zumen-0.1.0/crates/zumen-dwg/src/crc.rs +223 -0
  74. zumen-0.1.0/crates/zumen-dwg/src/document.rs +1370 -0
  75. zumen-0.1.0/crates/zumen-dwg/src/edit/build.rs +283 -0
  76. zumen-0.1.0/crates/zumen-dwg/src/edit/mod.rs +1612 -0
  77. zumen-0.1.0/crates/zumen-dwg/src/edit/tests.rs +465 -0
  78. zumen-0.1.0/crates/zumen-dwg/src/entities.rs +1510 -0
  79. zumen-0.1.0/crates/zumen-dwg/src/file.rs +683 -0
  80. zumen-0.1.0/crates/zumen-dwg/src/header.rs +407 -0
  81. zumen-0.1.0/crates/zumen-dwg/src/lib.rs +64 -0
  82. zumen-0.1.0/crates/zumen-dwg/src/mleader.rs +270 -0
  83. zumen-0.1.0/crates/zumen-dwg/src/objects.rs +659 -0
  84. zumen-0.1.0/crates/zumen-dwg/src/r12/mod.rs +1225 -0
  85. zumen-0.1.0/crates/zumen-dwg/src/r12/records.rs +1129 -0
  86. zumen-0.1.0/crates/zumen-dwg/src/r12/tests.rs +1048 -0
  87. zumen-0.1.0/crates/zumen-dwg/src/samples.rs +798 -0
  88. zumen-0.1.0/crates/zumen-dwg/src/write/bits.rs +442 -0
  89. zumen-0.1.0/crates/zumen-dwg/src/write/classes.rs +177 -0
  90. zumen-0.1.0/crates/zumen-dwg/src/write/compress.rs +341 -0
  91. zumen-0.1.0/crates/zumen-dwg/src/write/compress21.rs +266 -0
  92. zumen-0.1.0/crates/zumen-dwg/src/write/container.rs +502 -0
  93. zumen-0.1.0/crates/zumen-dwg/src/write/container21.rs +642 -0
  94. zumen-0.1.0/crates/zumen-dwg/src/write/database.rs +99 -0
  95. zumen-0.1.0/crates/zumen-dwg/src/write/drawing/entities.rs +1336 -0
  96. zumen-0.1.0/crates/zumen-dwg/src/write/drawing/header.rs +553 -0
  97. zumen-0.1.0/crates/zumen-dwg/src/write/drawing/mod.rs +958 -0
  98. zumen-0.1.0/crates/zumen-dwg/src/write/drawing/objects.rs +418 -0
  99. zumen-0.1.0/crates/zumen-dwg/src/write/drawing/tables.rs +434 -0
  100. zumen-0.1.0/crates/zumen-dwg/src/write/mod.rs +28 -0
  101. zumen-0.1.0/crates/zumen-dwg/src/write/object.rs +258 -0
  102. zumen-0.1.0/crates/zumen-dwg/src/write/rewrite.rs +653 -0
  103. zumen-0.1.0/crates/zumen-dwg/src/write/sections.rs +162 -0
  104. zumen-0.1.0/crates/zumen-dwg/tests/dwg.rs +698 -0
  105. zumen-0.1.0/crates/zumen-dwg/tests/write.rs +103 -0
  106. zumen-0.1.0/crates/zumen-dwg/tests/write_model.rs +359 -0
  107. zumen-0.1.0/crates/zumen-dwg/tests/writer/mod.rs +1252 -0
  108. zumen-0.1.0/crates/zumen-dxf/Cargo.toml +15 -0
  109. zumen-0.1.0/crates/zumen-dxf/src/colors.rs +90 -0
  110. zumen-0.1.0/crates/zumen-dxf/src/curves.rs +475 -0
  111. zumen-0.1.0/crates/zumen-dxf/src/edit/mod.rs +1764 -0
  112. zumen-0.1.0/crates/zumen-dxf/src/edit/raw.rs +305 -0
  113. zumen-0.1.0/crates/zumen-dxf/src/edit/tests.rs +445 -0
  114. zumen-0.1.0/crates/zumen-dxf/src/lib.rs +60 -0
  115. zumen-0.1.0/crates/zumen-dxf/src/model.rs +867 -0
  116. zumen-0.1.0/crates/zumen-dxf/src/mtext.rs +501 -0
  117. zumen-0.1.0/crates/zumen-dxf/src/parse.rs +2258 -0
  118. zumen-0.1.0/crates/zumen-dxf/src/r12.rs +936 -0
  119. zumen-0.1.0/crates/zumen-dxf/src/scene.rs +3848 -0
  120. zumen-0.1.0/crates/zumen-dxf/src/tags.rs +595 -0
  121. zumen-0.1.0/crates/zumen-dxf/src/write.rs +3435 -0
  122. zumen-0.1.0/crates/zumen-jww/Cargo.toml +18 -0
  123. zumen-0.1.0/crates/zumen-jww/src/archive.rs +455 -0
  124. zumen-0.1.0/crates/zumen-jww/src/create.rs +803 -0
  125. zumen-0.1.0/crates/zumen-jww/src/edit/tests.rs +422 -0
  126. zumen-0.1.0/crates/zumen-jww/src/edit.rs +1268 -0
  127. zumen-0.1.0/crates/zumen-jww/src/file.rs +653 -0
  128. zumen-0.1.0/crates/zumen-jww/src/header.rs +531 -0
  129. zumen-0.1.0/crates/zumen-jww/src/jwc/tests.rs +437 -0
  130. zumen-0.1.0/crates/zumen-jww/src/jwc.rs +1387 -0
  131. zumen-0.1.0/crates/zumen-jww/src/jws/tests.rs +236 -0
  132. zumen-0.1.0/crates/zumen-jww/src/jws.rs +400 -0
  133. zumen-0.1.0/crates/zumen-jww/src/lib.rs +121 -0
  134. zumen-0.1.0/crates/zumen-jww/src/reader.rs +622 -0
  135. zumen-0.1.0/crates/zumen-jww/src/scene.rs +515 -0
  136. zumen-0.1.0/crates/zumen-jww/src/style.rs +197 -0
  137. zumen-0.1.0/crates/zumen-jww/src/sxf_tables.rs +41 -0
  138. zumen-0.1.0/crates/zumen-jww/tests/roundtrip.rs +79 -0
  139. zumen-0.1.0/crates/zumen-jww/tests/write.rs +414 -0
  140. zumen-0.1.0/crates/zumen-render/Cargo.toml +21 -0
  141. zumen-0.1.0/crates/zumen-render/fonts/BIZUDGothic-Regular.ttf +0 -0
  142. zumen-0.1.0/crates/zumen-render/fonts/OFL.txt +93 -0
  143. zumen-0.1.0/crates/zumen-render/src/lib.rs +927 -0
  144. zumen-0.1.0/crates/zumen-render/src/pdf.rs +401 -0
  145. zumen-0.1.0/crates/zumen-render/src/svg.rs +330 -0
  146. zumen-0.1.0/crates/zumen-render/src/vector.rs +76 -0
  147. zumen-0.1.0/crates/zumen-sxf/Cargo.toml +20 -0
  148. zumen-0.1.0/crates/zumen-sxf/src/document.rs +196 -0
  149. zumen-0.1.0/crates/zumen-sxf/src/edit.rs +850 -0
  150. zumen-0.1.0/crates/zumen-sxf/src/features.rs +1003 -0
  151. zumen-0.1.0/crates/zumen-sxf/src/header.rs +98 -0
  152. zumen-0.1.0/crates/zumen-sxf/src/lib.rs +242 -0
  153. zumen-0.1.0/crates/zumen-sxf/src/p21.rs +1187 -0
  154. zumen-0.1.0/crates/zumen-sxf/src/p21_edit.rs +1098 -0
  155. zumen-0.1.0/crates/zumen-sxf/src/p21_reader.rs +445 -0
  156. zumen-0.1.0/crates/zumen-sxf/src/p21_writer.rs +1411 -0
  157. zumen-0.1.0/crates/zumen-sxf/src/scene.rs +1314 -0
  158. zumen-0.1.0/crates/zumen-sxf/src/sfc.rs +87 -0
  159. zumen-0.1.0/crates/zumen-sxf/src/sfc_edit.rs +704 -0
  160. zumen-0.1.0/crates/zumen-sxf/src/sfc_reader.rs +289 -0
  161. zumen-0.1.0/crates/zumen-sxf/src/source.rs +28 -0
  162. zumen-0.1.0/crates/zumen-sxf/src/splice.rs +102 -0
  163. zumen-0.1.0/crates/zumen-sxf/src/step.rs +338 -0
  164. zumen-0.1.0/crates/zumen-sxf/src/style.rs +95 -0
  165. zumen-0.1.0/crates/zumen-sxf/src/symbols.rs +143 -0
  166. zumen-0.1.0/crates/zumen-sxf/src/tables.rs +168 -0
  167. zumen-0.1.0/crates/zumen-sxf/src/version.rs +197 -0
  168. zumen-0.1.0/crates/zumen-sxf/src/write.rs +775 -0
  169. zumen-0.1.0/crates/zumen-sxf/src/zip.rs +477 -0
  170. zumen-0.1.0/crates/zumen-sxf/tests/common/mod.rs +110 -0
  171. zumen-0.1.0/crates/zumen-sxf/tests/edit_operations.rs +377 -0
  172. zumen-0.1.0/crates/zumen-sxf/tests/edit_p21.rs +236 -0
  173. zumen-0.1.0/crates/zumen-sxf/tests/edit_random.rs +266 -0
  174. zumen-0.1.0/crates/zumen-sxf/tests/edit_samples.rs +84 -0
  175. zumen-0.1.0/crates/zumen-sxf/tests/edit_sfc.rs +268 -0
  176. zumen-0.1.0/crates/zumen-sxf/tests/versions.rs +229 -0
  177. zumen-0.1.0/crates/zumen-sxf/tests/write.rs +111 -0
  178. zumen-0.1.0/crates/zumen-sxf/tests/write_compressed.rs +111 -0
  179. zumen-0.1.0/crates/zumen-sxf/tests/write_p21.rs +63 -0
  180. zumen-0.1.0/licenses/BIZUDGothic-OFL.txt +93 -0
  181. zumen-0.1.0/licenses/THIRD_PARTY_LICENSES.txt +3224 -0
  182. zumen-0.1.0/pyproject.toml +49 -0
  183. zumen-0.1.0/python/zumen/__init__.py +147 -0
  184. zumen-0.1.0/python/zumen/_zumen.pyi +342 -0
  185. zumen-0.1.0/python/zumen/mcp.py +381 -0
  186. zumen-0.1.0/python/zumen/py.typed +0 -0
  187. zumen-0.1.0/python/zumen/tools.py +1269 -0
zumen-0.1.0/Cargo.lock ADDED
@@ -0,0 +1,602 @@
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 = "arrayref"
13
+ version = "0.3.9"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
16
+
17
+ [[package]]
18
+ name = "arrayvec"
19
+ version = "0.7.8"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
22
+
23
+ [[package]]
24
+ name = "bitflags"
25
+ version = "2.13.2"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
28
+
29
+ [[package]]
30
+ name = "bumpalo"
31
+ version = "3.20.3"
32
+ source = "registry+https://github.com/rust-lang/crates.io-index"
33
+ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
34
+
35
+ [[package]]
36
+ name = "bytemuck"
37
+ version = "1.25.2"
38
+ source = "registry+https://github.com/rust-lang/crates.io-index"
39
+ checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
40
+
41
+ [[package]]
42
+ name = "cfg-if"
43
+ version = "1.0.5"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
46
+
47
+ [[package]]
48
+ name = "core_detect"
49
+ version = "1.0.0"
50
+ source = "registry+https://github.com/rust-lang/crates.io-index"
51
+ checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48"
52
+
53
+ [[package]]
54
+ name = "crc32fast"
55
+ version = "1.5.2"
56
+ source = "registry+https://github.com/rust-lang/crates.io-index"
57
+ checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78"
58
+ dependencies = [
59
+ "cfg-if",
60
+ ]
61
+
62
+ [[package]]
63
+ name = "encoding_rs"
64
+ version = "0.8.42"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "8e985e0451871ad22fb8d2b6b076e2028a502a0d3950998c2c5c0a4f9b5d9679"
67
+ dependencies = [
68
+ "cfg-if",
69
+ "core_detect",
70
+ "multiversion_no_op",
71
+ "rustversion",
72
+ "scopeguard",
73
+ "simdutf8",
74
+ ]
75
+
76
+ [[package]]
77
+ name = "fdeflate"
78
+ version = "0.3.7"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
81
+ dependencies = [
82
+ "simd-adler32",
83
+ ]
84
+
85
+ [[package]]
86
+ name = "flate2"
87
+ version = "1.1.10"
88
+ source = "registry+https://github.com/rust-lang/crates.io-index"
89
+ checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
90
+ dependencies = [
91
+ "crc32fast",
92
+ "miniz_oxide 0.9.1",
93
+ "zlib-rs",
94
+ ]
95
+
96
+ [[package]]
97
+ name = "heck"
98
+ version = "0.5.0"
99
+ source = "registry+https://github.com/rust-lang/crates.io-index"
100
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
101
+
102
+ [[package]]
103
+ name = "itoa"
104
+ version = "1.0.18"
105
+ source = "registry+https://github.com/rust-lang/crates.io-index"
106
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
107
+
108
+ [[package]]
109
+ name = "libc"
110
+ version = "0.2.191"
111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
112
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
113
+
114
+ [[package]]
115
+ name = "libm"
116
+ version = "0.2.16"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
119
+
120
+ [[package]]
121
+ name = "log"
122
+ version = "0.4.34"
123
+ source = "registry+https://github.com/rust-lang/crates.io-index"
124
+ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
125
+
126
+ [[package]]
127
+ name = "memchr"
128
+ version = "2.8.3"
129
+ source = "registry+https://github.com/rust-lang/crates.io-index"
130
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
131
+
132
+ [[package]]
133
+ name = "miniz_oxide"
134
+ version = "0.8.9"
135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
136
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
137
+ dependencies = [
138
+ "adler2",
139
+ "simd-adler32",
140
+ ]
141
+
142
+ [[package]]
143
+ name = "miniz_oxide"
144
+ version = "0.9.1"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
147
+ dependencies = [
148
+ "adler2",
149
+ "simd-adler32",
150
+ ]
151
+
152
+ [[package]]
153
+ name = "multiversion_no_op"
154
+ version = "1.0.0"
155
+ source = "registry+https://github.com/rust-lang/crates.io-index"
156
+ checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d"
157
+
158
+ [[package]]
159
+ name = "once_cell"
160
+ version = "1.21.4"
161
+ source = "registry+https://github.com/rust-lang/crates.io-index"
162
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
163
+
164
+ [[package]]
165
+ name = "pdf-writer"
166
+ version = "0.15.0"
167
+ source = "registry+https://github.com/rust-lang/crates.io-index"
168
+ checksum = "f5e456864a7a304047bff84977dc6fb162bd956475d40ba50b2dcecaada7f753"
169
+ dependencies = [
170
+ "bitflags",
171
+ "itoa",
172
+ "memchr",
173
+ "ryu",
174
+ ]
175
+
176
+ [[package]]
177
+ name = "png"
178
+ version = "0.18.1"
179
+ source = "registry+https://github.com/rust-lang/crates.io-index"
180
+ checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
181
+ dependencies = [
182
+ "bitflags",
183
+ "crc32fast",
184
+ "fdeflate",
185
+ "flate2",
186
+ "miniz_oxide 0.8.9",
187
+ ]
188
+
189
+ [[package]]
190
+ name = "portable-atomic"
191
+ version = "1.15.0"
192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
193
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
194
+
195
+ [[package]]
196
+ name = "proc-macro2"
197
+ version = "1.0.107"
198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
199
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
200
+ dependencies = [
201
+ "unicode-ident",
202
+ ]
203
+
204
+ [[package]]
205
+ name = "pyo3"
206
+ version = "0.30.1"
207
+ source = "registry+https://github.com/rust-lang/crates.io-index"
208
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
209
+ dependencies = [
210
+ "libc",
211
+ "once_cell",
212
+ "portable-atomic",
213
+ "pyo3-build-config",
214
+ "pyo3-ffi",
215
+ "pyo3-macros",
216
+ ]
217
+
218
+ [[package]]
219
+ name = "pyo3-build-config"
220
+ version = "0.30.1"
221
+ source = "registry+https://github.com/rust-lang/crates.io-index"
222
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
223
+ dependencies = [
224
+ "target-lexicon",
225
+ ]
226
+
227
+ [[package]]
228
+ name = "pyo3-ffi"
229
+ version = "0.30.1"
230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
231
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
232
+ dependencies = [
233
+ "libc",
234
+ "pyo3-build-config",
235
+ ]
236
+
237
+ [[package]]
238
+ name = "pyo3-macros"
239
+ version = "0.30.1"
240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
241
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
242
+ dependencies = [
243
+ "proc-macro2",
244
+ "pyo3-macros-backend",
245
+ "quote",
246
+ "syn",
247
+ ]
248
+
249
+ [[package]]
250
+ name = "pyo3-macros-backend"
251
+ version = "0.30.1"
252
+ source = "registry+https://github.com/rust-lang/crates.io-index"
253
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
254
+ dependencies = [
255
+ "heck",
256
+ "proc-macro2",
257
+ "quote",
258
+ "syn",
259
+ ]
260
+
261
+ [[package]]
262
+ name = "quote"
263
+ version = "1.0.47"
264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
265
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
266
+ dependencies = [
267
+ "proc-macro2",
268
+ ]
269
+
270
+ [[package]]
271
+ name = "rustc-hash"
272
+ version = "2.1.3"
273
+ source = "registry+https://github.com/rust-lang/crates.io-index"
274
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
275
+
276
+ [[package]]
277
+ name = "rustversion"
278
+ version = "1.0.23"
279
+ source = "registry+https://github.com/rust-lang/crates.io-index"
280
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
281
+
282
+ [[package]]
283
+ name = "ryu"
284
+ version = "1.0.23"
285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
286
+ checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
287
+
288
+ [[package]]
289
+ name = "scopeguard"
290
+ version = "1.2.0"
291
+ source = "registry+https://github.com/rust-lang/crates.io-index"
292
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
293
+
294
+ [[package]]
295
+ name = "serde"
296
+ version = "1.0.229"
297
+ source = "registry+https://github.com/rust-lang/crates.io-index"
298
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
299
+ dependencies = [
300
+ "serde_core",
301
+ "serde_derive",
302
+ ]
303
+
304
+ [[package]]
305
+ name = "serde_core"
306
+ version = "1.0.229"
307
+ source = "registry+https://github.com/rust-lang/crates.io-index"
308
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
309
+ dependencies = [
310
+ "serde_derive",
311
+ ]
312
+
313
+ [[package]]
314
+ name = "serde_derive"
315
+ version = "1.0.229"
316
+ source = "registry+https://github.com/rust-lang/crates.io-index"
317
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
318
+ dependencies = [
319
+ "proc-macro2",
320
+ "quote",
321
+ "syn",
322
+ ]
323
+
324
+ [[package]]
325
+ name = "serde_json"
326
+ version = "1.0.154"
327
+ source = "registry+https://github.com/rust-lang/crates.io-index"
328
+ checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
329
+ dependencies = [
330
+ "itoa",
331
+ "memchr",
332
+ "serde",
333
+ "serde_core",
334
+ "zmij",
335
+ ]
336
+
337
+ [[package]]
338
+ name = "simd-adler32"
339
+ version = "0.3.10"
340
+ source = "registry+https://github.com/rust-lang/crates.io-index"
341
+ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
342
+
343
+ [[package]]
344
+ name = "simdutf8"
345
+ version = "0.1.5"
346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
347
+ checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e"
348
+
349
+ [[package]]
350
+ name = "strict-num"
351
+ version = "0.1.1"
352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
353
+ checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
354
+
355
+ [[package]]
356
+ name = "subsetter"
357
+ version = "0.2.6"
358
+ source = "registry+https://github.com/rust-lang/crates.io-index"
359
+ checksum = "38803281d1c23166c5ebcb455439a5d2afe711cc909cf88af72448c297756ad6"
360
+ dependencies = [
361
+ "rustc-hash",
362
+ ]
363
+
364
+ [[package]]
365
+ name = "syn"
366
+ version = "3.0.9"
367
+ source = "registry+https://github.com/rust-lang/crates.io-index"
368
+ checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
369
+ dependencies = [
370
+ "proc-macro2",
371
+ "quote",
372
+ "unicode-ident",
373
+ ]
374
+
375
+ [[package]]
376
+ name = "target-lexicon"
377
+ version = "0.13.5"
378
+ source = "registry+https://github.com/rust-lang/crates.io-index"
379
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
380
+
381
+ [[package]]
382
+ name = "tiny-skia"
383
+ version = "0.12.0"
384
+ source = "registry+https://github.com/rust-lang/crates.io-index"
385
+ checksum = "47ffee5eaaf5527f630fb0e356b90ebdec84d5d18d937c5e440350f88c5a91ea"
386
+ dependencies = [
387
+ "arrayref",
388
+ "arrayvec",
389
+ "bytemuck",
390
+ "cfg-if",
391
+ "log",
392
+ "png",
393
+ "tiny-skia-path",
394
+ ]
395
+
396
+ [[package]]
397
+ name = "tiny-skia-path"
398
+ version = "0.12.0"
399
+ source = "registry+https://github.com/rust-lang/crates.io-index"
400
+ checksum = "edca365c3faccca67d06593c5980fa6c57687de727a03131735bb85f01fdeeb9"
401
+ dependencies = [
402
+ "arrayref",
403
+ "bytemuck",
404
+ "strict-num",
405
+ ]
406
+
407
+ [[package]]
408
+ name = "tinyvec"
409
+ version = "1.13.3"
410
+ source = "registry+https://github.com/rust-lang/crates.io-index"
411
+ checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
412
+
413
+ [[package]]
414
+ name = "ttf-parser"
415
+ version = "0.25.1"
416
+ source = "registry+https://github.com/rust-lang/crates.io-index"
417
+ checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
418
+
419
+ [[package]]
420
+ name = "unicode-ident"
421
+ version = "1.0.27"
422
+ source = "registry+https://github.com/rust-lang/crates.io-index"
423
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
424
+
425
+ [[package]]
426
+ name = "unicode-normalization"
427
+ version = "0.1.26"
428
+ source = "registry+https://github.com/rust-lang/crates.io-index"
429
+ checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d"
430
+ dependencies = [
431
+ "tinyvec",
432
+ ]
433
+
434
+ [[package]]
435
+ name = "wasm-bindgen"
436
+ version = "0.2.129"
437
+ source = "registry+https://github.com/rust-lang/crates.io-index"
438
+ checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409"
439
+ dependencies = [
440
+ "cfg-if",
441
+ "once_cell",
442
+ "rustversion",
443
+ "wasm-bindgen-macro",
444
+ "wasm-bindgen-shared",
445
+ ]
446
+
447
+ [[package]]
448
+ name = "wasm-bindgen-macro"
449
+ version = "0.2.129"
450
+ source = "registry+https://github.com/rust-lang/crates.io-index"
451
+ checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535"
452
+ dependencies = [
453
+ "quote",
454
+ "wasm-bindgen-macro-support",
455
+ ]
456
+
457
+ [[package]]
458
+ name = "wasm-bindgen-macro-support"
459
+ version = "0.2.129"
460
+ source = "registry+https://github.com/rust-lang/crates.io-index"
461
+ checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7"
462
+ dependencies = [
463
+ "bumpalo",
464
+ "proc-macro2",
465
+ "quote",
466
+ "syn",
467
+ "wasm-bindgen-shared",
468
+ ]
469
+
470
+ [[package]]
471
+ name = "wasm-bindgen-shared"
472
+ version = "0.2.129"
473
+ source = "registry+https://github.com/rust-lang/crates.io-index"
474
+ checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6"
475
+ dependencies = [
476
+ "unicode-ident",
477
+ ]
478
+
479
+ [[package]]
480
+ name = "zlib-rs"
481
+ version = "0.6.8"
482
+ source = "registry+https://github.com/rust-lang/crates.io-index"
483
+ checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
484
+
485
+ [[package]]
486
+ name = "zmij"
487
+ version = "1.0.23"
488
+ source = "registry+https://github.com/rust-lang/crates.io-index"
489
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
490
+
491
+ [[package]]
492
+ name = "zumen"
493
+ version = "0.1.0"
494
+ dependencies = [
495
+ "encoding_rs",
496
+ "serde_json",
497
+ "zumen-convert",
498
+ "zumen-core",
499
+ "zumen-dwg",
500
+ "zumen-dxf",
501
+ "zumen-jww",
502
+ "zumen-sxf",
503
+ ]
504
+
505
+ [[package]]
506
+ name = "zumen-cli"
507
+ version = "0.1.0"
508
+ dependencies = [
509
+ "serde_json",
510
+ "zumen",
511
+ "zumen-render",
512
+ ]
513
+
514
+ [[package]]
515
+ name = "zumen-convert"
516
+ version = "0.1.0"
517
+ dependencies = [
518
+ "zumen-core",
519
+ "zumen-dwg",
520
+ "zumen-dxf",
521
+ "zumen-jww",
522
+ "zumen-sxf",
523
+ ]
524
+
525
+ [[package]]
526
+ name = "zumen-core"
527
+ version = "0.1.0"
528
+ dependencies = [
529
+ "libm",
530
+ "serde",
531
+ "serde_json",
532
+ "unicode-normalization",
533
+ ]
534
+
535
+ [[package]]
536
+ name = "zumen-dwg"
537
+ version = "0.1.0"
538
+ dependencies = [
539
+ "encoding_rs",
540
+ "serde_json",
541
+ "zumen-core",
542
+ "zumen-dxf",
543
+ ]
544
+
545
+ [[package]]
546
+ name = "zumen-dxf"
547
+ version = "0.1.0"
548
+ dependencies = [
549
+ "encoding_rs",
550
+ "zumen-core",
551
+ ]
552
+
553
+ [[package]]
554
+ name = "zumen-jww"
555
+ version = "0.1.0"
556
+ dependencies = [
557
+ "encoding_rs",
558
+ "serde_json",
559
+ "zumen-core",
560
+ ]
561
+
562
+ [[package]]
563
+ name = "zumen-python"
564
+ version = "0.1.0"
565
+ dependencies = [
566
+ "pyo3",
567
+ "serde",
568
+ "serde_json",
569
+ "zumen",
570
+ "zumen-render",
571
+ ]
572
+
573
+ [[package]]
574
+ name = "zumen-render"
575
+ version = "0.1.0"
576
+ dependencies = [
577
+ "miniz_oxide 0.8.9",
578
+ "pdf-writer",
579
+ "subsetter",
580
+ "tiny-skia",
581
+ "ttf-parser",
582
+ "zumen-core",
583
+ ]
584
+
585
+ [[package]]
586
+ name = "zumen-sxf"
587
+ version = "0.1.0"
588
+ dependencies = [
589
+ "encoding_rs",
590
+ "miniz_oxide 0.8.9",
591
+ "serde_json",
592
+ "zumen-core",
593
+ ]
594
+
595
+ [[package]]
596
+ name = "zumen-wasm"
597
+ version = "0.1.0"
598
+ dependencies = [
599
+ "serde_json",
600
+ "wasm-bindgen",
601
+ "zumen",
602
+ ]
zumen-0.1.0/Cargo.toml ADDED
@@ -0,0 +1,41 @@
1
+ [workspace]
2
+ resolver = "3"
3
+ members = ["crates/zumen-core", "crates/zumen-jww", "crates/zumen-sxf", "crates/zumen-dxf", "crates/zumen-dwg", "crates/zumen-convert", "crates/zumen", "crates/zumen-render", "bindings/python"]
4
+
5
+ [workspace.package]
6
+ version = "0.1.0"
7
+ edition = "2024"
8
+ license = "MIT"
9
+ repository = "https://github.com/zumenjs/zumen"
10
+ # crates.io へはまだ公開しない(公開先は npm と PyPI。docs/releasing.md)
11
+ publish = false
12
+
13
+ [workspace.dependencies]
14
+ zumen = { path = "crates/zumen" }
15
+ zumen-core = { path = "crates/zumen-core" }
16
+ zumen-jww = { path = "crates/zumen-jww" }
17
+ zumen-sxf = { path = "crates/zumen-sxf" }
18
+ zumen-dxf = { path = "crates/zumen-dxf" }
19
+ zumen-dwg = { path = "crates/zumen-dwg" }
20
+ zumen-convert = { path = "crates/zumen-convert" }
21
+ zumen-render = { path = "crates/zumen-render" }
22
+ encoding_rs = "0.8.42"
23
+ libm = "0.2.16"
24
+ miniz_oxide = "0.8.9"
25
+ pdf-writer = "0.15.0"
26
+ pyo3 = "0.30.1"
27
+ serde = { version = "1.0.229", features = ["derive", "rc"] }
28
+ serde_json = "1.0.154"
29
+ subsetter = { version = "0.2.6", default-features = false }
30
+ tiny-skia = "0.12.0"
31
+ ttf-parser = "0.25.1"
32
+ unicode-normalization = "0.1.26"
33
+ wasm-bindgen = "0.2.129"
34
+
35
+ [workspace.lints.clippy]
36
+ dbg_macro = "warn"
37
+ todo = "warn"
38
+
39
+ [profile.release]
40
+ lto = true
41
+ codegen-units = 1
zumen-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Yusuke Hayashi
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.