You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/ch14-02-publishing-to-crates-io.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,8 @@ Even if you’ve chosen a unique name, when you run `cargo publish` to publish
306
306
the crate at this point, you’ll get a warning and then an error:
307
307
308
308
<!-- manual-regeneration
309
-
cd listings/ch14-more-about-cargo/listing-14-01/
309
+
Create a new package with an unregistered name, making no further modifications
310
+
to the generated package, so it is missing the description and license fields.
310
311
cargo publish
311
312
copy just the relevant lines below
312
313
-->
@@ -320,7 +321,7 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
320
321
error: failed to publish to registry at https://crates.io
321
322
322
323
Caused by:
323
-
the remote server responded with an error (status 400 Bad Request): missing or empty metadata fields: description, license. Please see https://doc.rust-lang.org/cargo/reference/manifest.html for more information on configuring these field
324
+
the remote server responded with an error (status 400 Bad Request): missing or empty metadata fields: description, license. Please see https://doc.rust-lang.org/cargo/reference/manifest.html for more information on configuring these fields
324
325
```
325
326
326
327
This errors because you’re missing some crucial information: a description and
error[E0277]: `{async block@src/main.rs:10:23: 10:33}` cannot be unpinned
184
183
--> src/main.rs:48:24
185
184
|
186
185
48 | trpl::join_all(futures).await;
187
-
| -------------- ^^^^^^^ the trait `Unpin` is not implemented for `{async block@src/main.rs:10:23: 10:33}`, which is required by `Box<{async block@src/main.rs:10:23: 10:33}>: Future`
186
+
| -------------- ^^^^^^^ the trait `Unpin` is not implemented for `{async block@src/main.rs:10:23: 10:33}`
188
187
| |
189
188
| required by a bound introduced by this call
190
189
|
191
190
= note: consider using the `pin!` macro
192
191
consider using `Box::pin` if you need to access the pinned value outside of the current scope
193
192
= note: required for `Box<{async block@src/main.rs:10:23: 10:33}>` to implement `Future`
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `{async block@src/main.rs:10:23: 10:33}`, which is required by `Box<{async block@src/main.rs:10:23: 10:33}>: Future`
206
+
| ^^^^^^^^^^^^^^^^^^^^^^^ the trait `Unpin` is not implemented for `{async block@src/main.rs:10:23: 10:33}`
208
207
|
209
208
= note: consider using the `pin!` macro
210
209
consider using `Box::pin` if you need to access the pinned value outside of the current scope
211
210
= note: required for `Box<{async block@src/main.rs:10:23: 10:33}>` to implement `Future`
212
211
note: required by a bound in `futures_util::future::join_all::JoinAll`
| ^^^^^ the trait `Unpin` is not implemented for `{async block@src/main.rs:10:23: 10:33}`, which is required by `Box<{async block@src/main.rs:10:23: 10:33}>: Future`
224
+
| ^^^^^ the trait `Unpin` is not implemented for `{async block@src/main.rs:10:23: 10:33}`
226
225
|
227
226
= note: consider using the `pin!` macro
228
227
consider using `Box::pin` if you need to access the pinned value outside of the current scope
229
228
= note: required for `Box<{async block@src/main.rs:10:23: 10:33}>` to implement `Future`
230
229
note: required by a bound in `futures_util::future::join_all::JoinAll`
0 commit comments