📝 docs(planning): 统一 Rust 规划库命名

将 Rust 原生规划库设计口径统一为 flyshot_planning。

同步更新 Windows 和 Linux 产物名以及复制命令示例。
This commit is contained in:
2026-06-27 15:10:06 +08:00
parent 537c6b5320
commit bcbf8017ad
2 changed files with 9 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ Expected: FAIL,提示 `RustIcspPlanner` 或互操作类型不存在
```toml
[package]
name = "flyshot-native-planning"
name = "flyshot_planning"
version = "0.1.0"
edition = "2021"
@@ -289,7 +289,7 @@ param(
)
cargo build --manifest-path native/flyshot-native-planning/Cargo.toml --release
Copy-Item native/flyshot-native-planning/target/release/flyshot_native_planning.dll tests/Flyshot.Core.Tests/bin/$Configuration/net8.0/ -Force
Copy-Item native/flyshot-native-planning/target/release/flyshot_planning.dll tests/Flyshot.Core.Tests/bin/$Configuration/net8.0/ -Force
```
- [x] **Step 4: 重新运行对拍测试**
@@ -325,6 +325,6 @@ Expected: PASS
```markdown
- Rust 规划器当前仅显式使用,不替换默认 `ICspPlanner`
- Windows 需要 `flyshot_native_planning.dll`
- Linux 需要 `libflyshot_native_planning.so`
- Windows 需要 `flyshot_planning.dll`
- Linux 需要 `libflyshot_planning.so`
```

View File

@@ -36,7 +36,7 @@ C# ICspPlanner RustIcspPlanner
|
C ABI
|
flyshot_native_planning
flyshot_planning
Rust cdylib
```
@@ -132,10 +132,10 @@ src/Flyshot.Native.Planning/
- `NativePlanningLibraryResolver`:按当前操作系统和体系结构解析原生库。
- `NativePlanningException`:携带原生错误码和错误文本。
原生库逻辑名称固定为 `flyshot_native_planning`:
原生库逻辑名称固定为 `flyshot_planning`:
- Windows:`flyshot_native_planning.dll`
- Linux:`libflyshot_native_planning.so`
- Windows:`flyshot_planning.dll`
- Linux:`libflyshot_planning.so`
C# 适配层负责:
@@ -261,7 +261,7 @@ Planning:Backend = Managed | Rust
- Rust 样条、ICSP、FFI 测试,以及 C#/Rust `1e-9` 自动对拍测试。
- `build/Copy-NativePlanningArtifacts.ps1`,用于初始化 Windows MSVC 环境、
构建原生库并复制到测试或发布目录。
- Windows x64 已实际生成并加载 `flyshot_native_planning.dll` 完成规划。
- Windows x64 已实际生成并加载 `flyshot_planning.dll` 完成规划。
当前上线边界保持不变: