Remove workspace from post as well (#267)

This commit is contained in:
Philipp Oppermann
2016-12-21 14:55:09 +01:00
committed by GitHub
parent fcd453ac29
commit a7a9aabce7

View File

@@ -45,19 +45,6 @@ For our own allocator, we start simple. We create an allocator crate in a new `l
> cd bump_allocator
```
Normally, this subcrate would have its own `Cargo.lock` and its own `target` output folder. To avoid this, we can create a so-called _[workspace]_. For that we only need to add a single line to our `Cargo.toml`:
[workspace]: http://doc.crates.io/manifest.html#the-workspace-section
```toml
# in Cargo.toml
[workspace]
```
We don't need to add any keys to the `workspace` section, since they have [sensible defaults]. Now our `bump_allocator` subcrate shares the `Cargo.toml` and `target` folder of the root project.
[sensible defaults]: https://github.com/rust-lang/rfcs/blob/master/text/1525-cargo-workspace.md#implicit-relations
### Implementation
Our allocator is very basic. It only keeps track of the next free address: