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

相关推荐
wefly201714 小时前
零基础上手m3u8live.cn,免费无广告的M3U8在线播放器,电脑手机通用
前端·javascript·学习·电脑·m3u8·m3u8在线播放
晓131314 小时前
React篇——第四章 React Router基础
前端·javascript·react
Moment14 小时前
如果想转 AI 全栈?推荐你学一下 Langchain!
前端·后端·面试
cch891814 小时前
常见布局实现详解(Flex 实战版)
前端·javascript·css
啥都想学点14 小时前
从 Flutter 前端到 Spring Boot 后端:2026 年技术栈落地路线图(实战版)
前端·spring boot·flutter
telllong14 小时前
Chrome DevTools Protocol:浏览器自动化入门
前端·自动化·chrome devtools
吴声子夜歌14 小时前
Node.js——npm包管理器
前端·npm·node.js
小码哥_常14 小时前
告别启动页“翻车”!Android最新SplashScreen方案全解析
前端
We་ct14 小时前
LeetCode 373. 查找和最小的 K 对数字:题解+代码详解
前端·算法·leetcode·typescript·二分·
薛一半14 小时前
React组件通信初识
前端·react.js·前端框架