问题标签 [rustup]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
90 浏览

rust - Rust nightly vs beta 版本

我试图了解 rust nightly 和 beta 版本之间的区别。它们似乎都适用于需要使用实验功能的情况,但我真的找不到确切的区别。

0 投票
0 回答
44 浏览

rust - 无法安装 rust-src:“发现参数 'component add rust-src' 不是预期的,或者在此上下文中无效”

我在 MacO Big Sur 上,只需通过以下方式安装最新的稳定版 Rust:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | 嘘

不,我不使用 Homebrew。然后我想编译xv6-rust。它需要夜间版本,带有额外的组件rust-src。我已经切换到夜间:

$ rustc --版本

rustc 1.60.0-nightly (777bb86bc 2022-01-20)

现在的问题是:如何安装 rust-src?

$ rustup 组件添加 rust-src

错误:错误:发现参数“组件”不是预期的,或者在此 > 上下文中无效

用法:rustup-init [标志] [选项]

0 投票
1 回答
53 浏览

rust - 使用系统提供的 rust 包启用其他目标,而不是 rustup

我想使用系统包管理器而不是下载 rustup 安装程序来组合一个 Rust 工具链,并为 Raspberry Pi 3 交叉编译

为此,我在 Ubuntu 20.04 中安装rustcgcc-arm-linux-gnueabihf.

但是,该cargo build --bins --release --target armv7-unknown-linux-gnueabihf命令失败

有没有办法让这个工作,除了curl https://sh.rustup.rs -sSf | sh && rustup target add arm-unknown-linux-gnueabihf