<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>tt (T)</title>
    <link>https://soldev.cn/tt</link>
    <description>Better Call T</description>
    <language>en-us</language>
    <item>
      <title>anchor build 报错 rustc 1.79.0-dev is not supported by the following package. 处理办法</title>
      <description>&lt;p&gt;报错如下：
rustc 1.79.0-dev is not supported by the following package.
Note that this is the rustc version that ships with solana tools and not your system's rustc version. Use "solana-install update or hiover to &lt;a href="https://docs.solanalabs.com/cli/install" rel="nofollow" target="_blank"&gt;https://docs.solanalabs.com/cli/install&lt;/a&gt; to install a newer version.bytemuck_derive@1.9.2 requires rustc 1.84Either upgrade rustc or select compatible dependency versions withcargo update &lt;a href="/kxcurrent-ver" class="user-mention" title="@kxcurrent-ver"&gt;&lt;i&gt;@&lt;/i&gt;kxcurrent-ver&lt;/a&gt;&amp;gt;--precise `wherelatest version supporting rustc 1.79.0-dev&lt;/p&gt;

&lt;p&gt;原因
是因为 bytemuck derive@1.9.2 这个依赖 rust1.84 版本，但目前所有的 solana 版本内置的 rust 最高版本是 1.79， &lt;/p&gt;

&lt;p&gt;处理方式 :
1: 运行 argo update -p bytemuck_derive --precise 1.7.0 这个命令，锁定到兼容 1.70 的版本，这样就可以了，
 2: 或者 在 Cargo.toml 中 加入
                  [dependencies]
                  anchor-lang = "0.30.1"
                  bytemuck_derive = "=1.7.0" # 锁定到兼容 1.70 的版本&lt;/p&gt;</description>
      <author>tt</author>
      <pubDate>Thu, 20 Mar 2025 16:15:14 +0800</pubDate>
      <link>https://soldev.cn/topics/157</link>
      <guid>https://soldev.cn/topics/157</guid>
    </item>
  </channel>
</rss>
