You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.9 KiB
TOML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

[package]
name = "dxf2elmt"
version = "0.5.0"
edition = "2021"
description = "A CLI program to convert .dxf files into .elmt files"
authors = ["Vadoola <github: vadoola>", "Antonio Aguilar <github: antonioaja>"]
readme = "README.md"
repository = "https://github.com/Vadoola/dxf2elmt"
license = "MIT"
rust-version = "1.79.0"
[profile.release]
strip = true
lto = true
[profile.dev.package."*"]
# 开发构建仍优化第三方依赖,减少 DXF 解析和 XML 生成的等待时间。
opt-level = 3
[dependencies]
# DXF 解析、ELMT XML 构造与样条曲线采样。
dxf = "0.6.0"
simple-xml-builder = "1.1.0"
bspline = "1.1.0"
# 命令行、错误上下文、临时文件与 Windows 通配符支持。
uuid = { version = "1.16", features = ["serde", "v4"] }
tempfile = "3.15"
clap = { version = "4.5", features = ["derive"] }
anyhow = "1.0.97"
wild = "2.2"
# 图元转换过程中使用的并行、颜色、迭代器和文本处理工具。
rayon = "1.10.0"
hex_color = "3.0.0"
itertools = "0.14"
parley = "0.2.0"
unicode-segmentation = "1.12.0"
# tracing 默认写日志venator 仅在同名 feature 启用时接收追踪数据。
tracing = "0.1"
venator = { version = "1.1", optional = true }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
#[lints.clippy]
#unwrap_used = "deny"
#undecided on how I want to handle logging in this crate right now.
#I do want to do a bit of tracing debugging on some of these recursive blocks though
#for now I'll add tracing and venator under a trace feature that is disabled by default
#maybe a log feature which uses trace to log to a text file or syslog or something
#and a seperate feature that logs to venator? Also figure out how best to isolate
#it to a module, so I don' thave #[cfg(feature = ...)] all over the place
#https://www.shuttle.dev/blog/2024/01/09/getting-started-tracing-rust#instrumentation-in-tracing
[features]
default = []
venator = ["dep:venator"]