Skip to content

Commit 67ef913

Browse files
committed
fixes
1 parent 5c497c5 commit 67ef913

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

text/0000-packages-as-optional-namespaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Only the owners of `foo` may _create_ the `foo::bar` crate (and all owners of `f
6060

6161
# Reference-level explanation
6262

63-
`::` is now considered valid inside crate names on Crates.io. For now, we will restrict crate names to having a single `::` in them, not at the beginning or end of the name, but this can be changed in the future.
63+
`::` is now considered valid inside crate names on Crates.io and Cargo. For now, we will restrict crate names to having a single `::` in them, not at the beginning or end of the name, but this can be changed in the future.
6464

6565
When publishing a crate `foo::bar`, if the crate does not exist, the following must be true:
6666

@@ -71,7 +71,7 @@ For the crate `foo::bar`, all owners of `foo` are always considered owners of `f
7171

7272
Crates.io displays `foo::bar` crates with the name `foo::bar`, though it may stylistically make the `foo` part link to the `foo` crate.
7373

74-
The [registry index trie](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format) may represent subpackages by placing `foo::bar` as just `foo::bar`.
74+
The [registry index trie](https://doc.rust-lang.org/nightly/cargo/reference/registries.html#index-format) may represent subpackages by placing `foo::bar` as just `foo/bar` or using some special character..
7575

7676
`rustc` will need some changes. When `--extern foo::bar=crate.rlib` is passed in, `rustc` will include this crate during resolution as if it were a module `bar` living under crate `foo`. If crate `foo` is _also_ in scope, this will not automatically trigger any errors unless `foo::bar` is referenced, `foo` has a module `bar`, and that module is not just a reexport of crate `foo::bar`.
7777

0 commit comments

Comments
 (0)