修复 no_std 测试并升级 MSRV 至 1.83.0

- 修复 cargo test --no-default-features --lib 编译错误
  - SM3 测试:移除 alloc 依赖,改用手动十六进制解析
  - SM4 modes 测试:添加 #[cfg(feature = "alloc")]
- MSRV 升级至 1.83.0(crypto-bigint 0.6.x 的 ConstMontyForm 所需)
- 更新 CI 工作流中的 MSRV 版本
- 修正 Cargo.toml 仓库链接
This commit is contained in:
huangxt
2026-03-07 20:38:34 +08:00
parent a7eaf413d9
commit f369ae61de
8 changed files with 34 additions and 14 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ jobs:
# Job 3: MSRV 验证(最低支持版本)
# =============================================================================
msrv:
name: MSRV (1.72.0)
name: MSRV (1.83.0)
needs: lint
runs-on: ubuntu-latest
steps:
@@ -121,7 +121,7 @@ jobs:
- name: 安装 MSRV 工具链
uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.72.0"
toolchain: "1.83.0"
- name: 缓存 Cargo 编译产物
uses: Swatinem/rust-cache@v2