Skip to content

Commit 6d0dc04

Browse files
committed
Update output; update filename and crates.io behavior
1 parent d49c5b6 commit 6d0dc04

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[workspace]
22
resolver = "3"
3-
members = [ "add_one","adder"]
3+
members = ["add_one", "adder"]

nostarch/docx/chapter14.docx

1.11 KB
Binary file not shown.

src/ch14-02-publishing-to-crates-io.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ abcdefghijklmnopqrstuvwxyz012345
276276
```
277277

278278
This command will inform Cargo of your API token and store it locally in
279-
_~/.cargo/credentials_. Note that this token is a _secret_: do not share it
280-
with anyone else. If you do share it with anyone for any reason, you should
279+
_~/.cargo/credentials.toml_. Note that this token is a _secret_: do not share
280+
it with anyone else. If you do share it with anyone for any reason, you should
281281
revoke it and generate a new token on [crates.io](https://crates.io/)<!-- ignore
282282
-->.
283283

@@ -381,12 +381,12 @@ Publishing a crate uploads a specific version to
381381
[crates.io](https://crates.io/)<!-- ignore --> for others to use.
382382

383383
Be careful, because a publish is _permanent_. The version can never be
384-
overwritten, and the code cannot be deleted. One major goal of
385-
[crates.io](https://crates.io/)<!-- ignore --> is to act as a permanent archive
386-
of code so that builds of all projects that depend on crates from
387-
[crates.io](https://crates.io/)<!-- ignore --> will continue to work. Allowing
388-
version deletions would make fulfilling that goal impossible. However, there is
389-
no limit to the number of crate versions you can publish.
384+
overwritten, and the code cannot be deleted except in certain circumstances.
385+
One major goal of [crates.io](https://crates.io/)<!-- ignore --> is to act as a
386+
permanent archive of code so that builds of all projects that depend on crates
387+
from [crates.io](https://crates.io/)<!-- ignore --> will continue to work.
388+
Allowing version deletions would make fulfilling that goal impossible. However,
389+
there is no limit to the number of crate versions you can publish.
390390

391391
Run the `cargo publish` command again. It should succeed now:
392392

@@ -400,11 +400,17 @@ copy just the relevant lines below
400400
$ cargo publish
401401
Updating crates.io index
402402
Packaging guessing_game v0.1.0 (file:///projects/guessing_game)
403+
Packaged 6 files, 1.2KiB (895.0B compressed)
403404
Verifying guessing_game v0.1.0 (file:///projects/guessing_game)
404405
Compiling guessing_game v0.1.0
405406
(file:///projects/guessing_game/target/package/guessing_game-0.1.0)
406407
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.19s
407408
Uploading guessing_game v0.1.0 (file:///projects/guessing_game)
409+
Uploaded guessing_game v0.1.0 to registry `crates-io`
410+
note: waiting for `guessing_game v0.1.0` to be available at registry
411+
`crates-io`.
412+
You may press ctrl-c to skip waiting; the crate should be available shortly.
413+
Published guessing_game v0.1.0 at registry `crates-io`
408414
```
409415

410416
Congratulations! You’ve now shared your code with the Rust community, and

0 commit comments

Comments
 (0)