From bcbf8017ad88c0b30c03081bea8c229b010d5c50 Mon Sep 17 00:00:00 2001 From: "yunxiao.zhu" Date: Sat, 27 Jun 2026 15:10:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs(planning):=20=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=20Rust=20=E8=A7=84=E5=88=92=E5=BA=93=E5=91=BD?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 Rust 原生规划库设计口径统一为 flyshot_planning。 同步更新 Windows 和 Linux 产物名以及复制命令示例。 --- .../2026-06-22-rust-icsp-native-implementation.md | 8 ++++---- .../specs/2026-06-22-rust-icsp-native-design.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/superpowers/plans/2026-06-22-rust-icsp-native-implementation.md b/docs/superpowers/plans/2026-06-22-rust-icsp-native-implementation.md index 36e335b..e030808 100644 --- a/docs/superpowers/plans/2026-06-22-rust-icsp-native-implementation.md +++ b/docs/superpowers/plans/2026-06-22-rust-icsp-native-implementation.md @@ -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` ``` diff --git a/docs/superpowers/specs/2026-06-22-rust-icsp-native-design.md b/docs/superpowers/specs/2026-06-22-rust-icsp-native-design.md index 8bc0ef2..b2a38ad 100644 --- a/docs/superpowers/specs/2026-06-22-rust-icsp-native-design.md +++ b/docs/superpowers/specs/2026-06-22-rust-icsp-native-design.md @@ -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` 完成规划。 当前上线边界保持不变: