<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="https://shaozk.xyz/feed_style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
    <tabi:metadata xmlns:tabi="https://github.com/welpo/tabi">
        <tabi:base_url>https:&#x2F;&#x2F;shaozk.xyz</tabi:base_url>
        <tabi:separator>
            •
        </tabi:separator>
        <tabi:about_feeds>This is a web feed, also known as an Atom feed. Subscribe by copying the URL from the address bar into your newsreader. Visit About Feeds to learn more and get started. It&#x27;s free.</tabi:about_feeds>
        <tabi:visit_the_site>Visit website</tabi:visit_the_site>
        <tabi:recent_posts>Recent posts</tabi:recent_posts>
        <tabi:last_updated_on>Updated on $DATE</tabi:last_updated_on>
        <tabi:default_theme></tabi:default_theme>
        <tabi:post_listing_date>date</tabi:post_listing_date>
        <tabi:current_section>rust</tabi:current_section>
    </tabi:metadata><title>shaozk - rust</title>
    <link href="https://shaozk.xyz/tags/rust/atom.xml" rel="self" type="application/atom+xml"/>
    <link href="https://shaozk.xyz/tags/rust/" rel="alternate" type="text/html"/>
    <generator uri="https://www.getzola.org/">Zola</generator><updated>2026-07-31T00:00:00+00:00</updated><id>https://shaozk.xyz/tags/rust/atom.xml</id><entry xml:lang="en">
        <title>通过 Rustlings 学习 Rust</title>
        <published>2026-07-31T00:00:00+00:00</published>
        <updated>2026-07-31T00:00:00+00:00</updated>
        <author>
            <name>shaozk</name>
        </author>
        <link rel="alternate" href="https://shaozk.xyz/blog/014-learn-rust-through-rustlings/" type="text/html"/>
        <id>https://shaozk.xyz/blog/014-learn-rust-through-rustlings/</id>
        
            <content type="html">&lt;h1 id=&quot;bei-jing&quot;&gt;背景&lt;&#x2F;h1&gt;
&lt;p&gt;在 Zig 创始人 Andrew Kelley 的一次采访中，主持人问到什么是学习 Zig 语言的最好方式时，Andrew 毫不犹豫地提到了 Ziglings。&lt;&#x2F;p&gt;
&lt;p&gt;Ziglings 其想法又来自 Rustlings。那么什么是 Rustlings 呢？简单来说：像闯关游戏一样，通过解决一个个代码 bug 来学习编程，每一关都对应一个语言特性，从易到难逐级递进。这样的方式，给学习编程增添了不少趣味。&lt;&#x2F;p&gt;
&lt;h1 id=&quot;xin-de&quot;&gt;心得&lt;&#x2F;h1&gt;
&lt;p&gt;我现在已经刷完了 Rustlings 的全部习题，但我直接去阅读 Rust 开源项目仍然够呛，即使有 AI 的辅助。Rustlings 提供的样例相比实际项目使用的太少了，不过 Rustlings 的初衷只是带你入门而已，不应该期望完成了后就精通 Rust。&lt;&#x2F;p&gt;
&lt;p&gt;更重要的是我了解到了一种新的学习编程的思路，不一定一开始就要阅读书籍或文档，也可以是通过更有趣的实践方式。&lt;&#x2F;p&gt;
&lt;h1 id=&quot;lian-jie&quot;&gt;链接&lt;&#x2F;h1&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a rel=&quot;external&quot; href=&quot;https:&#x2F;&#x2F;rustlings.rust-lang.org&quot;&gt;Rustlings&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
</content>
        </entry>
</feed>
