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 러스트 학습
- Host: GitHub
- URL: https://github.com/donghquinn/rust_practice
- Owner: donghquinn
- Created: 2023-07-12T07:55:16.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T07:45:32.000Z (about 2 years ago)
- Last Synced: 2025-01-11T03:18:27.457Z (about 1 year ago)
- Topics: functions, language, programming, reference, rust, struct, study, tuple, variable
- Language: Makefile
- Homepage:
- Size: 1.05 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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} ```