<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Coder Legion - Recent posts tagged cargo</title>
<link>https://coderlegion.com/tag/cargo</link>
<description>Powered by Question2Answer</description>
<item>
<title>Sbor - Project Manager for C</title>
<link>https://coderlegion.com/6984/sbor-project-manager-for-c</link>
<description>&lt;p&gt;Hi devs, &lt;/p&gt;
&lt;p&gt;Ever thought that writing CMake at 3am was tedious, you might have read about a project creating script in my &lt;a rel=&quot;nofollow&quot; href=&quot;https://coderlegion.com/6867/project-creation-script-for-multiple-languages&quot;&gt;previous blog&lt;/a&gt;. That script was for not just C, it was for multiple languages. &lt;/p&gt;
&lt;p&gt;&lt;code&gt;sbor&lt;/code&gt; is a project manager for C which is inspired by &lt;code&gt;cargo&lt;/code&gt;. It provides familiar commands like &lt;/p&gt;
&lt;p&gt;&lt;code&gt;sbor init&lt;/code&gt; to create a new C project which uses CMake to create the Makefile. &lt;/p&gt;
&lt;p&gt;&lt;code&gt;sbor build&lt;/code&gt;, builds th ebinary using CMake and &lt;code&gt;make&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sbor run&lt;/code&gt; builds and runs the binary.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sbor add &amp;lt;header&amp;gt;&lt;/code&gt; adds a system header like &lt;code&gt;string.h&lt;/code&gt; or &lt;code&gt;math.h&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sbor remove &amp;lt;header&lt;/code&gt; removes the header.&lt;/p&gt;
&lt;p&gt;I hope this helps create a better experience for eith Rust devs using C (Not gonna happen I know) and/or beginners to C.&lt;/p&gt;
&lt;p&gt;Here is the link&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/Vaishnav-Sabari-Girish/sbor&quot;&gt;Link&lt;/a&gt;&lt;/p&gt;
</description>
<category>Articles</category>
<guid isPermaLink="true">https://coderlegion.com/6984/sbor-project-manager-for-c</guid>
<pubDate>Fri, 31 Oct 2025 17:03:44 +0000</pubDate>
</item>
<item>
<title>Create your first SPL token on Solana with this step-by-step guide.</title>
<link>https://coderlegion.com/932/create-your-first-spl-token-on-solana-with-this-step-by-step-guide</link>
<description>&lt;p&gt;&lt;strong&gt;Token Creation on Solana: Launching Your First SPL Token&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The Solana blockchain has gained widespread popularity for its high throughput, low transaction costs, and developer-friendly ecosystem. One of the many features Solana offers is the ability to create and manage tokens using the SPL (Solana Program Library) token standard. If you’re looking to launch your own cryptocurrency or token on Solana, this guide will walk you through the entire process step by step.&lt;/p&gt;
&lt;h4 id=&quot;what-is-the-spl-token-standard-&quot;&gt;&lt;strong&gt;What is the SPL Token Standard?&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;The SPL token standard is Solana’s equivalent of Ethereum’s ERC-20 standard. It defines the rules and functionalities for creating fungible tokens that can be transferred, stored, and interacted with across the Solana network. SPL tokens are used in various applications, such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;DeFi platforms&lt;/li&gt;
&lt;li&gt;Gaming projects&lt;/li&gt;
&lt;li&gt;Utility tokens for specific ecosystems&lt;/li&gt;
&lt;li&gt;Stablecoins&lt;/li&gt;
&lt;/ul&gt;
&lt;h4 id=&quot;prerequisites&quot;&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Before you start creating your SPL token, ensure you have the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;A Solana Wallet&lt;/strong&gt;: Use wallets like Sollet, Phantom, or Solflare.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Solana CLI Installed&lt;/strong&gt;: Install the Solana Command Line Interface by following the &lt;a rel=&quot;nofollow&quot; href=&quot;https://docs.solana.com/cli/install-solana-cli-tools&quot;&gt;official guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Devnet SOL&lt;/strong&gt;: Obtain some SOL tokens from a Solana Devnet faucet for testing purposes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Rust Installed&lt;/strong&gt;: If you plan to develop custom programs, having Rust installed is essential.&lt;/li&gt;
&lt;/ol&gt;
&lt;h4 id=&quot;step-1-install-the-spl-token-cli&quot;&gt;&lt;strong&gt;Step 1: Install the SPL Token CLI&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;To create and manage SPL tokens, you’ll need the SPL Token CLI. Install it using the following commands:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;cargo install spl-token-cli
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Verify the installation:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;spl-token --version
&lt;/code&gt;&lt;/pre&gt;
&lt;h4 id=&quot;step-2-set-up-your-wallet&quot;&gt;&lt;strong&gt;Step 2: Set Up Your Wallet&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Create or use an existing Solana wallet to store your SPL tokens.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Generate a new keypair:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;solana-keygen new --outfile ~/my-wallet.json
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;Set your wallet as the default:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;solana config set --keypair ~/my-wallet.json
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;Check your wallet address:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;solana address
&lt;/code&gt;&lt;/pre&gt;
&lt;ol&gt;
&lt;li&gt;Fund your wallet using the Devnet faucet:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;solana airdrop 2
&lt;/code&gt;&lt;/pre&gt;
&lt;h4 id=&quot;step-3-create-the-token&quot;&gt;&lt;strong&gt;Step 3: Create the Token&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Run the following command to create a new SPL token:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;spl-token create-token
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This will generate a unique token address for your SPL token.&lt;/p&gt;
&lt;h4 id=&quot;step-4-create-a-token-account&quot;&gt;&lt;strong&gt;Step 4: Create a Token Account&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;A token account is required to hold your tokens. Use the following command:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;spl-token create-account &amp;lt;TOKEN_ADDRESS&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Replace &lt;code&gt;&amp;lt;TOKEN_ADDRESS&amp;gt;&lt;/code&gt; with the token address generated in the previous step.&lt;/p&gt;
&lt;h4 id=&quot;step-5-mint-tokens&quot;&gt;&lt;strong&gt;Step 5: Mint Tokens&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Mint a specific number of tokens to your token account:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;spl-token mint &amp;lt;TOKEN_ADDRESS&amp;gt; &amp;lt;AMOUNT&amp;gt; &amp;lt;ACCOUNT_ADDRESS&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;enter ```bash
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;spl-token mint So11111111111111111111111111111111111111112 1000  code here&lt;/p&gt;
&lt;p&gt;This command mints 1,000 tokens to your token account.&lt;/p&gt;
&lt;h4 id=&quot;step-6-verify-token-balance&quot;&gt;&lt;strong&gt;Step 6: Verify Token Balance&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;Check the balance of your token account:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;spl-token balance &amp;lt;TOKEN_ADDRESS&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You should see the number of tokens you minted.&lt;/p&gt;
&lt;h4 id=&quot;step-7-transfer-tokens&quot;&gt;&lt;strong&gt;Step 7: Transfer Tokens&lt;/strong&gt;&lt;/h4&gt;
&lt;p&gt;To transfer tokens to another wallet or account, use:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;spl-token transfer &amp;lt;TOKEN_ADDRESS&amp;gt; &amp;lt;AMOUNT&amp;gt; &amp;lt;RECIPIENT_ADDRESS&amp;gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;   &lt;code&gt;
enter code here&lt;/code&gt; &lt;code&gt;`&lt;/code&gt;bash&lt;br&gt;
spl-token transfer So11111111111111111111111111111111111111112 100 &lt;br&gt;
`&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;### **Step 8: Adding Token to Wallets**

To view your token in wallets like Phantom, you need to add the token’s address manually. Open your wallet, navigate to the “Manage Tokens” or equivalent section, and input your SPL token’s address.

### **Optional: Customizing Your Token**

If you’d like to add metadata, such as the token’s name, symbol, or logo, you can use the [Metaplex Token Metadata Program](https://docs.metaplex.com/).

### **Conclusion**

Congratulations! You’ve successfully created your first SPL token on Solana. The token is now ready to be used in applications or traded on Solana-compatible platforms. With Solana’s efficient architecture, your token can benefit from high-speed transactions and low fees. As you grow your project, consider integrating advanced features like staking or governance using Solana’s robust developer tools.

Start exploring the limitless possibilities of your SPL token on Solana!

---

What are your thoughts on this guide? Do you have any suggestions or additional questions about creating SPL tokens on Solana? Let us know in the comments below—we’d love to hear from you!


&lt;/code&gt;&lt;/pre&gt;
</description>
<category>JavaScript</category>
<guid isPermaLink="true">https://coderlegion.com/932/create-your-first-spl-token-on-solana-with-this-step-by-step-guide</guid>
<pubDate>Sat, 25 Jan 2025 09:44:08 +0000</pubDate>
</item>
</channel>
</rss>