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

相关推荐
顾北1210 小时前
AI对话应用接口开发全解析:同步接口+SSE流式+智能体+前端对接
前端·人工智能
摸鱼的春哥10 小时前
春哥的Agent通关秘籍07:5分钟实现文件归类助手【实战】
前端·javascript·后端
念念不忘 必有回响10 小时前
viepress:vue组件展示和源码功能
前端·javascript·vue.js
C澒10 小时前
多场景多角色前端架构方案:基于页面协议化与模块标准化的通用能力沉淀
前端·架构·系统架构·前端框架
崔庆才丨静觅10 小时前
稳定好用的 ADSL 拨号代理,就这家了!
前端
江湖有缘10 小时前
Docker部署music-tag-web音乐标签编辑器
前端·docker·编辑器
恋猫de小郭12 小时前
Flutter Zero 是什么?它的出现有什么意义?为什么你需要了解下?
android·前端·flutter
崔庆才丨静觅18 小时前
hCaptcha 验证码图像识别 API 对接教程
前端
passerby606119 小时前
完成前端时间处理的另一块版图
前端·github·web components
掘了19 小时前
「2025 年终总结」在所有失去的人中,我最怀念我自己
前端·后端·年终总结