Open-source codebase convention: all source-code comments in English.
Translates Chinese comments across openpencil-shell-{core,native,web}
.rs and Cargo.toml files. Logic, identifiers, and string literals
unchanged; the literal CJK fixture "Hello 你好" in raster_text_smoke
stays since it exercises the textlayout CJK path.
31 lines
1.1 KiB
TOML
31 lines
1.1 KiB
TOML
[package]
|
|
name = "openpencil-shell-core"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
description = "OpenPencil shell — platform-agnostic widget facade + RenderBackend trait, Jian re-export wrapper (spec v19 §1.2 / §5.2)"
|
|
|
|
[lib]
|
|
name = "openpencil_shell_core"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
serde = { workspace = true, optional = true }
|
|
thiserror = { workspace = true }
|
|
tracing = { workspace = true }
|
|
|
|
# v19 pivot: glam Vec2 used as Point2D; bitflags used for widget facade internal flags.
|
|
glam = { version = "0.29", default-features = false, features = ["std"] }
|
|
bitflags = "2"
|
|
|
|
# v19 pivot: re-export Jian render/geometry/scene types (spec §5.2 widget-facing facade
|
|
# wraps jian-core; native-only deps live in shell-native, jian-core itself is wasm32-clean).
|
|
# Both path + version per spec §12.2 ("path dep with explicit version") — guards against
|
|
# cargo silently picking a wrong version under a different workspace context.
|
|
jian-core = { path = "../../vendor/jian/crates/jian-core", version = "0.0.1" }
|
|
|
|
[features]
|
|
default = []
|
|
serde = ["dep:serde"]
|