Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -56,12 +56,19 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
with:
targets: x86_64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Test the native Windows backend
run: cargo test --workspace --locked --target x86_64-pc-windows-msvc
- name: Build the native backend for run integration
run: cargo build --locked -p lithe-java-backend --target x86_64-pc-windows-msvc
- name: Execute current main and an individual JUnit method
run: node scripts/run/actions.mjs target/x86_64-pc-windows-msvc/debug/lithe-java-backend.exe

package:
name: Build and verify the macOS packages
Expand All @@ -77,9 +84,15 @@ jobs:
node-version: 22
# scripts/assemble-package.sh compiles the plugin backend for each
# architecture it packages.
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
with:
targets: aarch64-apple-darwin, x86_64-apple-darwin
- name: Test the native macOS backend
run: cargo test --workspace --locked
- name: Build the native backend for run integration
run: cargo build --locked -p lithe-java-backend
- name: Execute current main and an individual JUnit method
run: node scripts/run/actions.mjs target/debug/lithe-java-backend
# Downloads are named by their SHA-256 and verified again before use.
- name: Restore verified third-party downloads
uses: actions/cache@v4
Expand Down Expand Up @@ -137,7 +150,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -231,9 +244,7 @@ jobs:
with:
go-version-file: .artifacts/host/desktop/go.mod
cache: false
- uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.100.0
- uses: dtolnay/rust-toolchain@1.100.0
- uses: actions/setup-node@v4
with:
node-version: 22
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
with:
components: rustfmt, clippy
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
with:
targets: x86_64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
persist-credentials: false
# scripts/assemble-package.sh compiles the plugin backend for each
# architecture it packages.
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
with:
targets: aarch64-apple-darwin, x86_64-apple-darwin
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@1.100.0
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-node@v4
with:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.100"
license = "Apache-2.0"
publish = false

Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ Spring/MyBatis 等既有能力不属于本轮 Maven 验收范围。
该 commit 的 SDK README/日志指南写有 `sdk-rust-v0.4.0` 发布标签,但远端当时没有这个标签或资产,
因此依赖固定到同一 Core commit,不把未发布标签当作可下载输入。

## 当前文件与单个函数/测试运行

JDT 语义识别当前文件中的 `main`、JUnit 类和方法,提供 Run/Debug 入口;混合 main/test 类的类级入口优先显示测试动作。

点击前重新读取文档、校验路径和版本,保存成功后才启动;rerun 会重新验证当前声明。工作区相对路径统一使用 `/`,拒绝绝对路径、盘符、反斜杠、`.`、`..` 与控制字符。Linux 包的 ELF 可执行权限检查须在 Linux CI 验证。

2026-11-30,Windows 11 x64 的真实运行、精确单测试、陈旧版本、保存失败、rerun 和不安全路径回归通过。截图由固定 Viva 无头宿主生成,覆盖明暗主题、中英文及 before/after/hover,见 [截图目录](docs/assets/current-file-runs/)。macOS 原生窗口仍待 CI/实机复验。后端构建工具链固定 Rust 1.100.0。

## 功能

| 功能 | 说明 |
Expand Down Expand Up @@ -292,7 +300,7 @@ scripts/ # 组装、校验、归档插件包,检查 SD
MIGRATION.md # 主仓库路径到本仓库的映射、待宿主接口清单、主仓库删除清单
```

Rust 部分需要 Rust 工具链和 Cargo;macOS 打包脚本需要 macOS、Node.js 22、`zsh`、`curl`、`ditto`,不需要 Xcode 或 Swift 工具链。
Rust 部分需要 Rust 1.100.0 工具链和 Cargo;macOS 打包脚本需要 macOS、Node.js 22、`zsh`、`curl`、`ditto`,不需要 Xcode 或 Swift 工具链。
打包脚本会用 `cargo build --release --locked -p lithe-java-backend --target <triple>` 编译后端,所以还要安装两个 Apple target:
`rustup target add aarch64-apple-darwin x86_64-apple-darwin`(`--arch arm64` 用前者,`x86_64` 用后者,`universal` 两个都编译再用 `lipo -create` 合并)。

Expand Down
1 change: 1 addition & 0 deletions backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "lithe-java-backend"
description = "Plugin backend process of the Lithe Java Support plugin."
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
publish.workspace = true

Expand Down
Loading
Loading