> For the complete documentation index, see [llms.txt](https://chapin666.gitbook.io/too-many-list-zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chapin666.gitbook.io/too-many-list-zh/yi-ge-zao-gao-de-dan-lian-zhan.md).

# 一个糟糕的单链栈

这将是*到此为止*最长的教程，因为我们需要基本上介绍Rust的所有内容，并且需要通过“强硬”的构建一些东西来更好的了解这门语言。

我们会把第一个列表放在 `src/first.rs` 中。我们需要告诉 Rust  `first.rs`是我们的库使用的文件。只需要把下述代码放在 `src/lib.rs` 即可（Cargo已经为我们创建了）：

```rust
// in lib.rs
pub mod first;
```
