Skip to content

Commit 0698b41

Browse files
authored
Add package name to example Cargo.toml (#290)
This commit adds a `[package] name = "..."` entry to the example `Cargo.toml` file in the `Swift Packages` chapter of the book. This prevents the example crate from being interpreted as a virtual manifest. This is important because a Cargo virtual manifest cannot have a `[lib]` section.
1 parent 9cfb0aa commit 0698b41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

book/src/building/swift-packages/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ mkdir my-rust-lib && cd my-rust-lib
1818
```toml
1919
# Cargo.toml
2020

21+
[package]
22+
name = "my-rust-lib"
23+
2124
[lib]
2225
crate-type = ["staticlib"]
2326

0 commit comments

Comments
 (0)