<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Cargo on Rafiul Alam</title>
    <link>https://alamrafiul.com/tags/cargo/</link>
    <description>Recent content in Cargo on Rafiul Alam</description>
    <image>
      <title>Rafiul Alam</title>
      <url>https://alamrafiul.com/papermod-cover.png</url>
      <link>https://alamrafiul.com/papermod-cover.png</link>
    </image>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 16 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://alamrafiul.com/tags/cargo/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cargo vs Go Modules: Package Management Face-Off</title>
      <link>https://alamrafiul.com/posts/cargo-vs-go-modules/</link>
      <pubDate>Wed, 16 Apr 2025 00:00:00 +0000</pubDate>
      
      <guid>https://alamrafiul.com/posts/cargo-vs-go-modules/</guid>
      <description>&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Go to Rust Series:&lt;/strong&gt;
&lt;a href=&#34;https://alamrafiul.com/posts/rust-day-1-gopher-impressions/&#34;&gt;← Day 1 Impressions&lt;/a&gt; | &lt;a href=&#34;https://alamrafiul.com/go-to-rust-journey/&#34;&gt;Series Overview&lt;/a&gt; | &lt;a href=&#34;https://alamrafiul.com/posts/rust-hello-world-complexity/&#34;&gt;Hello World Comparison →&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;first-impression-cargo-is-actually-great&#34;&gt;First Impression: Cargo is Actually Great&lt;/h2&gt;
&lt;p&gt;After struggling with Rust&amp;rsquo;s ownership system on Day 1, I expected the tooling to be equally complex. I was wrong. &lt;strong&gt;Cargo is fantastic&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Coming from Go modules (which are already pretty good), Cargo feels like a spiritual successor with better UX.&lt;/p&gt;
&lt;h2 id=&#34;project-initialization&#34;&gt;Project Initialization&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Go:&lt;/strong&gt;&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir myproject
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd myproject
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;go mod init github.com/username/myproject
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Creates &lt;code&gt;go.mod&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
