<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cargo on Shellj的博客</title>
    <link>https://im.shellj.com/tags/cargo/</link>
    <description>Recent content in Cargo on Shellj的博客</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 12 Dec 2023 09:34:35 +0800</lastBuildDate>
    <atom:link href="https://im.shellj.com/tags/cargo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Rust 开发环境配置</title>
      <link>https://im.shellj.com/posts/2019/09/rust-development-environment-setting/</link>
      <pubDate>Thu, 12 Sep 2019 13:59:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2019/09/rust-development-environment-setting/</guid>
      <description>&lt;h2 id=&#34;指定安装位置&#34;&gt;指定安装位置&lt;/h2&gt;&#xA;&#xA;&lt;div class=&#34;code-block&#34;&gt;&#xA;  &#xA;  &lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;#这个也可以不指定，选择默认安装位置。&#xA;export RUST_HOME=/some/path&#xA;export CARGO_HOME=/some/path&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;rustup-安装&#34;&gt;rustup 安装&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;第一次安装 rustup 的时候，如果按照官网教程 &lt;a href=&#34;https://sh.rustup.rs/&#34;&gt;https://sh.rustup.rs&lt;/a&gt; 链接无法下载，可以通过 &lt;a href=&#34;https://cdn.jsdelivr.net/gh/rust-lang-nursery/rustup.rs/rustup-init.sh&#34;&gt;jsdelivr&lt;/a&gt; 下载 rustup-init.sh， 然后把脚本中的 RUSTUP_UPDATE_ROOT 变量改为 &lt;a href=&#34;https://mirrors.ustc.edu.cn/rust-static/rustup%E3%80%82&#34;&gt;https://mirrors.ustc.edu.cn/rust-static/rustup。&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&#xA;&#xA;&lt;div class=&#34;code-block&#34;&gt;&#xA;  &#xA;  &lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static&#xA;export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;cargo&#34;&gt;cargo&lt;/h2&gt;&#xA;&lt;p&gt;默认位置: &lt;code&gt;$HOME/.cargo/config&lt;/code&gt;&lt;br&gt;&#xA;如果配置了&lt;strong&gt;CARGO_HOME&lt;/strong&gt; 就是 &lt;strong&gt;$CARGO_HOME/config&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
