From 18a5ca103c8bc17c1cec2a899ccce20d780a3b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=AE=8F=E5=BB=BA?= Date: Wed, 1 Jul 2026 16:23:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(crates):=20=E5=8D=87=E7=BA=A7=20minicpm=20?= =?UTF-8?q?crates=20=E7=89=88=E6=9C=AC=E5=88=B0=200.1.1=20=E5=B9=B6?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .workbuddy/memory/2026-07-01.md | 7 +++++++ Cargo.lock | 6 +++--- crates/minicpm-convert/Cargo.toml | 6 +++--- crates/minicpm-core/Cargo.toml | 4 ++-- crates/minicpm-inference/Cargo.toml | 6 +++--- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.workbuddy/memory/2026-07-01.md b/.workbuddy/memory/2026-07-01.md index 068baae..b55842a 100644 --- a/.workbuddy/memory/2026-07-01.md +++ b/.workbuddy/memory/2026-07-01.md @@ -7,3 +7,10 @@ - `minicpm-core@0.1.0` 已存在于 registry,跳过发布 - `minicpm-convert@0.1.0` 发布成功 - `minicpm-inference@0.1.0` 发布成功 + +## burn 最小依赖 + 重发布 (0.1.1) + +- burn 改为 `default-features = false, features = ["std"]`,移除 `wgpu`(wgpu 交给下游 binary 选择) +- 三个 crate 版本升级到 0.1.1,convert/inference 的 minicpm-core 依赖也更新到 0.1.1 +- 发布顺序:`cargo publish --allow-dirty --registry gitea -p minicpm-core` → `minicpm-convert` → `minicpm-inference` +- 全部发布成功 diff --git a/Cargo.lock b/Cargo.lock index c20611d..2488f06 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3960,7 +3960,7 @@ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" [[package]] name = "minicpm-convert" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "burn", @@ -3971,7 +3971,7 @@ dependencies = [ [[package]] name = "minicpm-core" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "burn", @@ -3981,7 +3981,7 @@ dependencies = [ [[package]] name = "minicpm-inference" -version = "0.1.0" +version = "0.1.1" dependencies = [ "anyhow", "burn", diff --git a/crates/minicpm-convert/Cargo.toml b/crates/minicpm-convert/Cargo.toml index 97e6309..48bac6a 100644 --- a/crates/minicpm-convert/Cargo.toml +++ b/crates/minicpm-convert/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "minicpm-convert" -version = "0.1.0" +version = "0.1.1" edition = "2021" publish = ["gitea"] [dependencies] -minicpm-core = { path = "../minicpm-core", version = "0.1.0", registry = "gitea" } -burn = { version = "0.21", features = ["std", "wgpu"] } +minicpm-core = { path = "../minicpm-core", version = "0.1.1", registry = "gitea" } +burn = { version = "0.21", default-features = false, features = ["std"] } memmap2 = "0.9" anyhow = "1.0" serde_json = "1.0" \ No newline at end of file diff --git a/crates/minicpm-core/Cargo.toml b/crates/minicpm-core/Cargo.toml index eb1f2b2..b843f63 100644 --- a/crates/minicpm-core/Cargo.toml +++ b/crates/minicpm-core/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "minicpm-core" -version = "0.1.0" +version = "0.1.1" edition = "2021" publish = ["gitea"] [dependencies] -burn = { version = "0.21", features = ["std", "wgpu"] } +burn = { version = "0.21", default-features = false, features = ["std"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" anyhow = "1.0" diff --git a/crates/minicpm-inference/Cargo.toml b/crates/minicpm-inference/Cargo.toml index 4850fb2..d5658e4 100644 --- a/crates/minicpm-inference/Cargo.toml +++ b/crates/minicpm-inference/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "minicpm-inference" -version = "0.1.0" +version = "0.1.1" edition = "2021" publish = ["gitea"] [dependencies] -minicpm-core = { path = "../minicpm-core", version = "0.1.0", registry = "gitea" } -burn = { version = "0.21", features = ["std", "wgpu"] } +minicpm-core = { path = "../minicpm-core", version = "0.1.1", registry = "gitea" } +burn = { version = "0.21", default-features = false, features = ["std"] } tokenizers = "0.20" rand = "0.8" anyhow = "1.0" \ No newline at end of file