⛓️
Blockchain
  • Start!
  • Go_lang
    • Tutorial
    • 1. Banking
    • 2. Dictionary
    • 3. URL Checker
    • Useful Methods - Slice
    • Useful data structure
  • RUST
    • Start
    • Basic
    • Basic Programming Concepts
      • Variables and Mutability
  • Bitcoin
    • Start
    • Introduction
    • Transactions
  • GO-BITCOIN
    • Start
    • 1. Blocks & Blockchain
    • 2. Proof of work
    • 3. BadgerDB
    • 4. Transactions
    • 5. Wallet
    • 6. Adding Digital Signatures
  • COSMOS
    • 코스모스 SDK
    • 코스모스 SDK 실습 - nameservice
    • 코스모스 허브는 어떻게 사용하는가?
    • 코스모스 허브, 금융의 역사를 다시 쓰다
    • Tendermint
      • ABCI
      • Messages
  • Cosmos Tutorial
    • Tutorials
    • 1. Blog
    • Nameservice
    • [Starport] Escrow Account: Scavenge
    • [Starport] Inter-Blockchain Communication: Basics
    • Create an IBC Interchain Exchange module
      • Introduction
      • App Design
      • Initialize the Blockchain
      • Create the Order Book
  • Ethereum
    • Start
    • Gas
    • Oracle Problem
  • consensus
    • DPoS
    • PBFT
    • Network model
  • cryptosystem
    • 대칭키 암호
    • IPFS
  • Social token
    • Rally
    • DeSo
      • Bitclout
      • Deso: The Decentralized Social Network
      • Setting Up Your Dev Environment
      • Deso Code Walkthrough
      • Web3 Will Not Be Built on Smart Contracts
  • 재윤TV
    • Start
    • 유니스왑에 대해서 아라보자
      • Concept
      • V2 백서 분석
      • V2 코드 분석
Powered by GitBook
On this page

Was this helpful?

  1. RUST

Basic

PreviousStartNextBasic Programming Concepts

Last updated 3 years ago

Was this helpful?

Getting started

  1. installation

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

So simple!

2. build

  • > rustc [filename]

  • rustc로 임의로 빌드할 수 있지만 보통 cargo를 이용한다.

3. cargo

  • Rust의 빌드 시스템 및 패키지 매니저이다.

  • cargo init Cargo.toml 파일은 package.js 와 비슷한 역할을 한다. (패키지, 디펜던시 관리)

  • cargo new --bin [project name] 새 프로젝트를 생성한다.

  • cargo run 빌드와 실행을 모두 한다.

  • cargo build 실행은 하지 않고 빌드만 한다. cargo build --release 명령어를 실행하면 release 폴더가 생성되고 optimize된 파일이 생긴다.

Getting startedrustlang
Logo