Commit Graph
7 Commits
Author SHA1 Message Date
vangel76 42b3655b82 Merge upstream/main into fix/dwg-field-format-2007 2026-11-16 01:10:44 +01:00
Dylan M. Taylor f12249ba7d Merge pull request #1346 from AxylumRust/refactor/dwg-clippy-pedantic
refactor(dwg): apply behavior-preserving cleanups
2026-11-15 16:35:58 -05:00
vangel76andClaude Opus 5.5 0dba1ed64e DWG: keep a field's format when the DXF is read as a newer kept version
dxf_to_dwg_kept_as declares the kept version before reading, and acadrust
0.6.6 reads a FIELD's group 4 format only below AC1021, so an older drawing's
own field lost its format. Collect the group 4 formats by handle before reading
and put them back into an empty Field::format; field_formats then copies them
into value.format for 2007+. Carried-over fields keep their own value.format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 15:05:49 +01:00
vangel76andClaude Sonnet 5.5 3bd1794251 DWG: keep field formats when saving an older drawing as DWG 2007 or later
acadrust reads a pre-2007 DXF FIELD's format only into Field::format, but its
DWG writer writes that for versions before 2007 only and value.format from 2007
on. Copy it over before writing.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 13:24:04 +01:00
Dylan M. Taylor 81e1dcec5a craft-dwg: refuse to convert without a worker instead of running acadrust here
The bridge fell back to decoding in the calling process whenever no worker
was configured, or the worker failed to start, which is exactly the case the
audit called out: acadrust allocates from sizes a hostile file declares, and
an allocation failure or stack overflow ends the process. Conversions are
now refused without a worker, a worker that cannot start is an error, and
allow_in_process() is the explicit opt-in for input known to be trusted.
2026-11-14 13:16:57 -05:00
Cédric Legrand 1a4e11926c refactor(dwg): apply behavior-preserving cleanups 2026-11-14 18:26:23 +01:00
Dylan M. Taylor 888bffcbb3 Add shared DWG-DXF byte bridge 2026-11-13 22:45:07 +00:00