An open API service indexing awesome lists of open source software.

https://github.com/donghquinn/rust_practice

Rust Study 러스트 학습
https://github.com/donghquinn/rust_practice

functions language programming reference rust struct study tuple variable

Last synced: 11 months ago
JSON representation

Rust Study 러스트 학습

Awesome Lists containing this project

README

          

# Rust And Cargo

- Cargo is Package Manager of Rust like yarn or npm from javascript
- All the Dependencies and information will be exist on Cargo.toml like package.json of javascript
- Rust file is end with .rs

## installation(macOS)

``` zsh
brew install restup-init
```

## Installation(macOS)

- rustup: https://www.rust-lang.org
- MSVC+: Builder rust

## initiate

```zsh
cargo init hello
```

## Run

- Can Run rust code by commanding below

``` zsh
cargo run {filePath/fileName}
```

## Build
- Build Rust code by commanding below. It will compile at target/debug.

``` cargo build {filePath/fileName} ```

- Build Rust code with Optimize. It will puts resulting binary in target/release.
- It would take longer for optimizing than just debugging. But it will run faster.

``` cargo build {filePath/fileName} --release ```

## Dependencies
- [crates.io](httsp://crates.io) is the Rust Community registry. You can find dependencies you looking for.
- Add into Cargo.toml by commanding below.

``` cargo add {package name} ```