I am using a Mac for development. I installed Rust 1.13.0 using brew install rustthe Rust 0.1.0.1385 plugin for IntelliJ IDEA. I created my first test project with cargo, and, opening it with IDEA, I received a message
brew install rust
cargo
No standard library sources were found, some code information will not work
I did not find a single source installed, nor a Rust source package in Homebrew.
How to provide sources for the project and what are the practical consequences if I ignore this step?
, rustup:
rustup
rust-src
rustup component add rust-src
, , Fedora 28 :
dnf install cargo rust-src sudo ln -s /usr/lib/rustlib/src /usr/lib/rustlib/x86_64-unknown-linux-gnu/
/usr/lib/rustlib/x86_64-unknown-linux-gnu/src/rust/src " "
/usr/lib/rustlib/x86_64-unknown-linux-gnu/src/rust/src
:
Issue
, .
, , $ which rustup .
$ which rustup
, IDEA, Rust:
/usr/local/lib/rustlib/uninstall.sh root, Rust
/usr/local/lib/rustlib/uninstall.sh
https://www.rust-lang.org/en-US/install.html $ curl r/[https://sh.rustup.rs](https://sh.rustup.rs) \-sSf | sh $ curl r/[https://sh.rustup.rs](https://sh.rustup.rs) \-sSf | sh
$ curl r/[https://sh.rustup.rs](https://sh.rustup.rs) \-sSf | sh
$ which rustup $ which rustup, IDEA.
, : /home/username/.cargo/bin
/home/username/.cargo/bin
, IDEA ,
.
Rust rustup, , , .
, , , Gentoo, , . , , , find:
find /usr/lib* -type d -name "rust" | grep src
,
find -type d -name "rust" | grep src
, , , , .
Source: https://habr.com/ru/post/1665734/More articles:Solved: Android resources $ NotFoundException Crash Report - javaHow to specify an additional class path on the command line when starting Spring Application boot through Maven? - classpathNetty ServerBootStrap or childOption option and effect of buffer size on speed - javaAdding a class pool to the SpringBoot command line starts when using maven-spring-boot-plugin - javaSynchronize navigation box elements with fragments - androidTesseract 4.0 для английского рукописного текста - imageExpand / collapse animation in CardView - androidГенерировать случайные числа из логнормального распределения в python - pythonHow to imitate Android with Xamarin in Azure VM? - androidAndroid 7.1.1 emulator multi-user support - androidAll Articles