From 0698b41d0434c6036f4d13a921677dcdfdde34dc Mon Sep 17 00:00:00 2001 From: Seto Elkahfi Date: Mon, 26 Aug 2024 17:17:42 +0200 Subject: [PATCH] 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. --- book/src/building/swift-packages/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/book/src/building/swift-packages/README.md b/book/src/building/swift-packages/README.md index cf42a28f..4f410cd0 100644 --- a/book/src/building/swift-packages/README.md +++ b/book/src/building/swift-packages/README.md @@ -18,6 +18,9 @@ mkdir my-rust-lib && cd my-rust-lib ```toml # Cargo.toml +[package] +name = "my-rust-lib" + [lib] crate-type = ["staticlib"]