tauri项目编译的时候,最后一步的时候内存溢出了?

大家好,我是1024小神,技术群 / 私活群 / 股票群 或 交朋友 都可以私信我。 如果你觉得本文有用,一键三连 (点赞、评论、关注),就是对我最大的支持~

* 正在执行任务: pnpm run tauri:build

> pakeplus@2.1.1 tauri:build /Users/song/project/PakePlus/PakePlus

> tauri build

Info Looking up installed tauri packages to check mismatched versions...

error: failed to download `moxcms v0.7.6`

Caused by:

unable to get packages from source

Caused by:

failed to parse manifest at `/Users/song/.cargo/registry/src/index.crates.io-6f17d22bba15001f/moxcms-0.7.6/Cargo.toml`

Caused by:

feature `edition2024` is required

The package requires the Cargo feature called `edition2024`, but that feature is not stabilized in this version of Cargo (1.82.0 (8f40fc59f 2024-08-21)).

Consider trying a newer version of Cargo (this may require the nightly release).

See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2024 for more information about the status of this feature.

failed to build app: failed to build app

Error failed to build app: failed to build app

 ELIFECYCLE  Command failed with exit code 1.

* 终端进程"/bin/zsh '-l', '-c', 'pnpm run tauri:build'"已终止,退出代码: 1。

* 终端将被任务重用,按任意键关闭。

查看rust版本:

css 复制代码
cargo --version
rustc --version

这个可能是项目中tauri使用的rust版本和本机电脑不一致导致的,解决办法就是升级本地rust:

sql 复制代码
rustup update stable

就会自动升级到最高版本,然后再编译应该就可以了

如果更新 Rust 后仍有问题

bash 复制代码
# 清理 cargo 缓存
cargo clean

# 然后重新构建
pnpm run tauri:build

大家好,我是1024小神,技术群 / 私活群 / 股票群 或 交朋友 都可以私信我。 如果你觉得本文有用,一键三连 (点赞、评论、关注),就是对我最大的支持~

相关推荐
IT_陈寒7 分钟前
Java线程池用错参数,我的服务居然悄悄崩溃了
前端·人工智能·后端
卡布鲁21 分钟前
React useMemo 与 useCallback 完全指南:原理、场景与避坑
前端·react.js
碳基修炼38 分钟前
排查记:本地 devServer 是 http,浏览器却把 302 重定向升级成了 https
前端·http
步行cgn40 分钟前
Spring p 命名空间注入详解
java·前端·spring
何何____1 小时前
Vue 生命周期详解
前端·javascript
江米小枣tonylua1 小时前
TypeScript 全面の拥抱 !Prisma 8 + Electron 升级实战
前端
闪耀之光M781 小时前
npm命令解析
前端
咸鱼老弟1 小时前
AI Agent 的"自主性悖论"——为什么给它的自由度越大,越要配一套更硬的护栏
前端·人工智能
默_笙2 小时前
💫 闭包是个背包:拆解小米前端面试题里的三道"闭包陷阱"
前端·javascript·面试
天若有情6732 小时前
粒子星空背景单页HTML模板|炫酷动态星空特效网页(纯前端)
前端·html·css动画·网页特效·粒子星空·静态网页模版