Skip to content

Commit ce46730

Browse files
committed
fix(build): asr_eval 辅助模块移出 src/bin(tauri 打包幻影 bin)
1 parent 3c0b9df commit ce46730

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎app/src-tauri/Cargo.toml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ edition = "2021"
88
# bin 后 cargo run 无法确定默认目标——声明主程序为默认,诊断工具用
99
# `cargo run --bin asr_forensic -- <wav...>` 显式调用。
1010
default-run = "entropydecrease"
11-
# v0.20.0(REQ-263):bin 辅助模块 asr_eval_session.rs 会被 autodiscovery 误认
12-
# 为独立 bin(无 main 报 E0601)——全部 bin 显式声明于下方 [[bin]],关 autobins
11+
# v0.20.0(REQ-263):asr_eval 的会话/流信道辅助模块(asr_eval_session.rs /
12+
# asr_eval_stream.rs,均无 main)——若留在 src/bin/ 会被 cargo autodiscovery
13+
# 与 tauri-bundler stage-2 src/bin 磁盘扫描(tauri issue #15325)误认为独立
14+
# bin(cargo 报 E0601 / MSI 打包 LGHT0103 幻影组件);v0.20.5 起模块移 src/
15+
# 经 #[path] 引入,autobins=false 双保险(asr_eval.rs 见 #[path] 注)
1316
autobins = false
1417

1518
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

‎app/src-tauri/src/bin/asr_eval.rs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ use std::fs;
2121
use std::path::{Path, PathBuf};
2222
use std::process::ExitCode;
2323

24+
// v0.20.5(2026-09-06 打包修复):会话/流信道辅助模块移出 src/bin/——tauri
25+
// bundler stage-2 磁盘扫描 src/bin 会把无 main 模块误认为独立 bin(MSI 打包
26+
// LGHT0103 幻影 exe;cargo autodiscovery 同理,见 Cargo.toml 注释)
27+
#[path = "../asr_eval_session.rs"]
2428
mod asr_eval_session;
29+
#[path = "../asr_eval_stream.rs"]
2530
mod asr_eval_stream;
2631

2732
use app_lib::audio_preprocess::{AudioPreprocessConfig, AudioPreprocessor};

0 commit comments

Comments
 (0)