https://github.com/devlights/try-rust
This is my TUTORIAL project for rust.
https://github.com/devlights/try-rust
rust rust-lang tutorial
Last synced: 2 months ago
JSON representation
This is my TUTORIAL project for rust.
- Host: GitHub
- URL: https://github.com/devlights/try-rust
- Owner: devlights
- License: mit
- Created: 2021-01-22T05:27:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-26T09:19:40.000Z (10 months ago)
- Last Synced: 2025-02-12T08:58:23.495Z (4 months ago)
- Topics: rust, rust-lang, tutorial
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# try-rust
This is my TUTORIAL project for rust.
[](https://gitpod.io/#https://github.com/devlights/try-rust)
## Run
```sh
$ task -d /path/to/example
``````sh
$ task -d helloworld/
task: [default] cargo run
Compiling helloworld v0.1.0 (/home/dev/dev/github/try-rust/helloworld)
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.24s
Running `/home/dev/dev/github/try-rust/target/debug/helloworld`
[00] Hello, world!
[01] Hello, world!
[02] Hello, world!
```## サンプルの追加方法
1. Cargo.toml に プロジェクト名 を追加
```toml
[workspace]
resolver = "2"
members = [
"helloworld",
]
```2. cargo new でプロジェクトを追加
```sh
$ cargo new name-of-project
```## REFERENCES
- Tour of Rust
- https://tourofrust.com/00_ja.html
- The Rust Programming Language 日本語版
- https://doc.rust-jp.rs/book-ja/
- 1つのgitリポジトリにcargoのワークスペースを複数作成する
- https://zenn.dev/shotaro_tsuji/articles/583bd9dc8dc12f
- RustでCargoの仮想ワークスペース(virtual workspaces)使用時にのみ依存パッケージのコンパイルに失敗する
- https://blog.publictheta.com/memos/aGNz9GK17bQnR04Ee4ySd