Adjacent \X2\...\X0\ runs, as step_out writes one per character, now decode: the backslash opening the next run was pushed as a literal, so a name exported as 圆角 came back as 圆\X2\89D2\X0\ (also every linked component insert, which round-trips through STEP). STEP and IGES bytes that are not UTF-8 are decoded in their detected legacy encoding (chardetng + encoding_rs) instead of from_utf8_lossy, so GBK or Shift_JIS names from vendor files no longer turn into U+FFFD. Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
36 lines
1.2 KiB
TOML
36 lines
1.2 KiB
TOML
[package]
|
|
name = "solidcraft-io"
|
|
description = "SolidCraft file formats: designs (JSON), STL, OBJ, STEP, IGES, 3MF and glTF, and FreeCAD/Rhino import"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
solidcraft-geom = { workspace = true }
|
|
solidcraft-kernel = { workspace = true }
|
|
solidcraft-doc = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
zip = { workspace = true }
|
|
quick-xml = { workspace = true }
|
|
gltf = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
chardetng = { workspace = true }
|
|
encoding_rs = { workspace = true }
|
|
|
|
# A plain fsync where a network share refuses Apple's full flush (src/safe_write.rs); already in
|
|
# the tree through tempfile.
|
|
[target.'cfg(target_vendor = "apple")'.dependencies]
|
|
rustix = { version = "1", default-features = false, features = ["std", "fs"] }
|
|
|
|
# FreeCAD and Rhino import. Not in the browser build: it compiles the zstd C library.
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
cadmpeg-core = { workspace = true }
|
|
cadmpeg-ir = { workspace = true }
|
|
cadmpeg-registry = { workspace = true }
|