Files
ShowenV2/Cargo.toml
XiuchengWu 7cb8cee70d feat: add device-side subtitle overlay using FreeType for rendering Chinese text
- Updated Cargo.toml to include freetype-rs for font rendering.
- Modified message.rs to introduce a new Message variant for subtitles.
- Enhanced HttpPlugin to send subtitle messages to the live2d plugin.
- Implemented text rendering in the live2d plugin using FreeType for Chinese characters.
- Added OpenGL shaders for rendering text overlays.
- Created a new text.rs module for handling text rasterization and texture rendering.
- Updated renderer.rs to integrate subtitle rendering logic.
2026-07-09 09:15:23 +08:00

45 lines
1.1 KiB
TOML

[workspace]
members = [".", "plugin-sdk", "plugins/example-plugin"]
[package]
name = "showen_v2"
version = "0.2.0"
authors = ["showen"]
edition = "2021"
rust-version = "1.70"
description = "ShowenV2 digital life window platform - plugin microkernel architecture"
license = "MIT"
publish = false
[dependencies]
anyhow = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rand = "0.8"
ctrlc = "3"
# 跨平台插件依赖
opencv = { version = "0.66", default-features = false, features = ["highgui", "imgproc", "videoio"] }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "process", "sync"] }
warp = { version = "0.3.7", default-features = false, features = ["multipart", "websocket"] }
bytes = "1"
futures-util = "0.3"
# Linux 特有插件依赖
dbus = "0.9"
dbus-crossroads = "0.5"
# 动态插件加载
libloading = "0.8"
# 远程插件仓库
ureq = "2"
flate2 = "1"
tar = "0.4"
semver = "1"
# Live2D 渲染
image = { version = "0.25", default-features = false, features = ["png"] }
# 设备端字幕(中文光栅化,调用系统 FreeType 高级封装)
freetype-rs = "0.13"