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

https://github.com/chinanf-boy/rust-playground-explain

explain: <rust-playground> rust 的游乐场 ❤️ explain 中
https://github.com/chinanf-boy/rust-playground-explain

docker docs explain rust zh

Last synced: 30 days ago
JSON representation

explain: <rust-playground> rust 的游乐场 ❤️ explain 中

Awesome Lists containing this project

README

          

# integer32llc/rust-playground [![explain]][source] [![translate-svg]][translate-list]

[explain]: http://llever.com/explain.svg
[source]: https://github.com/chinanf-boy/Source-Explain
[translate-svg]: http://llever.com/translate.svg
[translate-list]: https://github.com/chinanf-boy/rust-playground-zh
[size-img]: https://packagephobia.now.sh/badge?p=Name
[size]: https://packagephobia.now.sh/result?p=Name

「 rust 游乐场 」

---

## explain 🀄️

版本 | 与日期 | 最新更新 | 更多
---|---|---|---
[commit] | ⏰ 2018-09-23 | ![version] | [源码解释][source]

[commit]: https://github.com/integer32llc/rust-playground/tree/c54773e3b2112bd9d92297fa5af73ee80f58618b
[version]: https://img.shields.io/github/last-commit/integer32llc/rust-playground.svg

### 中文

https://github.com/chinanf-boy/rust-playground-zh

## 生活

[help me live , live need money 💰](https://github.com/chinanf-boy/live-need-money)

---

> 先看看 [rust-playground > readme.md][translate-list]

## 根据源库

有三种类别文件:

1. 前端-React: `rust-playground/ui/frontend/
2. 后端-rust: `rust-playground/ui/Cargo.toml`
3. Docker: `rust-playground/compiler/`

## 后端为主要讲解

> root:`rust-playground/ui/`

### Cargo.toml

一个 rust-Cargo 库的根本, 如同 package.json

> rust - javascript
> Cargo - npm
> Cargo.toml - package.json

``` toml
[package]
authors = ["Jake Goulding "]
name = "ui"
version = "0.1.0"

[features]
default = ['fork-bomb-prevention'] # 这个features, 被使用过滤定制功能
fork-bomb-prevention = []

[dependencies]
bodyparser = "0.8.0"
corsware = "0.2.0"
env_logger = "0.5.0"
iron = "0.6.0"
lazy_static = "1.0.0"
log = "0.4.0"
mktemp = "0.3.1"
mount = "0.4.0"
petgraph = "0.4.13"
quick-error = "1.1.0"
regex = "1.0.0"
rustc-demangle = "0.1.5"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
url = "1.4.0"
hubcaps = "0.4.8"
tokio-core = "0.1.12"
hyper = "0.11.21"
hyper-tls = "0.1.2"
router = "0.6.0"
openssl-probe = "0.1.2"
dotenv = "0.13.0"

[dependencies.playground-middleware]
git = "https://github.com/integer32llc/playground-middleware"

```

### src/main.rs

- [x] [src/main.rs](./src/main.md)

> 因为较多, 但思路很明显, 选择其中比较重要的一环, 不知道为什么类型代码真的多过逻辑代码

## compiler/*

docker 所在

### compiler/build.sh

> 如果你想测试 容器的变化

docker pull 项目

- [x] [build.sh](./src/compiler/build.md) 这里和下面差不多, 只是混合一些环境变量, 看看有没有容器变化

### compiler/fetch.sh

> 如果你只想获得 当前的docker游乐场

``` bash
#!/bin/bash

set -euv -o pipefail

repository=shepmaster

for image in rust-stable rust-beta rust-nightly rustfmt clippy miri; do
docker pull "${repository}/${image}"
# The backend expects images without a repository prefix
docker tag "${repository}/${image}" "${image}"
done
```