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

https://github.com/smeghead/docker-rust-env-template


https://github.com/smeghead/docker-rust-env-template

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Dockerで作るRustの開発環境のテンプレート #

https://qiita.com/toully/items/1b652bec2048eefd3130

## ビルド ##

Dockerfile を配置してビルドする。

```bash
docker build -t rust-env .
```

## カレントディレクトリをマウントしてログインする ##

```bash
docker run --rm -e USER=$USER -it -v $(pwd):/project -w /project rust-env
```

## プロジェクト作成 ##

```bash
cargo new --bin
```

## コンパイルと実行 ##

```bash
cd
cargo run
```