ASH84

Software Engineer/Developer, co-founder of Payhere. Ex-Banksalad. Intereseted in iteroperability, bootstrap company, writting.

Rust Cargo

created:2018-10-02
updated:2018-10-02
edit

cargo 명령어 정리

프로젝트 생성

cargo new —bin <app>

├── Cargo.lock
├── Cargo.toml
└── src
    └── main.rs

1 directory, 3 files

빌드 및 실행


$ cargo search web      

Updating registry `https://github.com/rust-lang/crates.io-index`

web = "0.0.2"                    # ...

cargo-web = "0.6.16"             # A Cargo subcommand for the client-side Web

actix-web-requestid = "0.1.2"    # Request ID middleware for actix-web

stdweb = "0.4.9"                 # A standard library for the client-side Web

... and 665 crates more (use --limit N to see more)

ps) 컴파일러면서 python pip 를 섞어놓은 느낌.


#dev  #rust  #cargo