https://github.com/mateusfg7/rust-lang-study
rust-lang studies
https://github.com/mateusfg7/rust-lang-study
cargo hello-world rust rust-lang rust-library study
Last synced: 3 months ago
JSON representation
rust-lang studies
- Host: GitHub
- URL: https://github.com/mateusfg7/rust-lang-study
- Owner: mateusfg7
- Created: 2020-08-25T19:06:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-18T16:38:23.000Z (over 5 years ago)
- Last Synced: 2025-02-01T18:43:24.822Z (12 months ago)
- Topics: cargo, hello-world, rust, rust-lang, rust-library, study
- Language: Rust
- Homepage:
- Size: 1.42 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust-lang-study
## Unique file
_compile:_
```bash
$ rustc hello.rs
```
_generate docs:_
```bash
$ rustdoc hello.rc
```
## Project
_create new project:_
```bash
$ cargo new [project name]
```
_create a library project:_
```bash
$ cargo new [library project name] --lib
```
_compile and run the project:_
```bash
$ cargo run
```
_install package:_
```bash
$ cargo install [package]
```
_create a final build of project:_
```bash
$ cargo build
```
_create a optimazed build of release_
```bash
$ cargo build --release
```
> _build stored on **target/release/**_
_auto run cargo command_
```bash
$ cargo install cargo-watch
$ cargo watch -x [command, e.g: run]
```