Initial commit: rust-scribe transcription tool

This commit is contained in:
2026-03-11 11:08:16 +08:00
commit f9653eef58
11 changed files with 1869 additions and 0 deletions

14
.cargo/config.toml Normal file
View File

@@ -0,0 +1,14 @@
[target.aarch64-apple-darwin]
rustflags = [
"-L", "/opt/homebrew/lib",
"-l", "c++",
# 正確写法:使用 -C link-arg= 將參數傳遞給連結器
"-C", "link-arg=-framework",
"-C", "link-arg=Metal",
"-C", "link-arg=-framework",
"-C", "link-arg=Foundation",
"-C", "link-arg=-framework",
"-C", "link-arg=QuartzCore",
"-C", "link-arg=-framework",
"-C", "link-arg=CoreGraphics"
]

21
.cargo/config.toml.bak Normal file
View File

@@ -0,0 +1,21 @@
[target.aarch64-apple-darwin]
rustflags = [
"-L", "/opt/homebrew/lib",
"-l", "c++",
# 新增:連結 Metal 相關框架 (解決 Undefined symbols 錯誤)
"-framework", "Metal",
"-framework", "Foundation",
"-framework", "QuartzCore",
"-framework", "CoreGraphics"
]
# 如果是 Intel Mac取消下面註解並使用
# [target.x86_64-apple-darwin]
# rustflags = [
# "-L", "/usr/local/lib",
# "-l", "c++",
# "-framework", "Metal",
# "-framework", "Foundation",
# "-framework", "QuartzCore",
# "-framework", "CoreGraphics"
# ]