@@ -50,6 +50,16 @@ Combinators are higher-order functions that apply only functions and
50
50
earlier defined combinators to provide a result from its arguments.
51
51
They can be used to manage control flow in a modular fashion.
52
52
53
+ ### Crate
54
+
55
+ A crate is the unit of compilation and linking. There are different [ types of
56
+ crates] , such as libraries or executables. Crates may link and refer to other
57
+ library crates, called external crates. A crate has a self-contained tree of
58
+ [ modules] , starting from an unnamed root module called the crate root. [ Items]
59
+ may be made visible to other crates by marking them as public in the crate
60
+ root, including through [ paths] of public modules.
61
+ [ More] [ crate ] .
62
+
53
63
### Dispatch
54
64
55
65
Dispatch is the mechanism to determine which specific version of code is actually
@@ -274,6 +284,7 @@ example of an uninhabited type is the [never type] `!`, or an enum with no varia
274
284
[ associated item ] : #associated-item
275
285
[ attributes ] : attributes.md
276
286
[ *entity* ] : names.md
287
+ [ crate ] : crates-and-source-files.md
277
288
[ enums ] : items/enumerations.md
278
289
[ fields ] : expressions/field-expr.md
279
290
[ free item ] : #free-item
@@ -291,6 +302,7 @@ example of an uninhabited type is the [never type] `!`, or an enum with no varia
291
302
[ lints ] : attributes/diagnostics.md#lint-check-attributes
292
303
[ loop labels ] : tokens.md#lifetimes-and-loop-labels
293
304
[ method ] : items/associated-items.md#methods
305
+ [ modules ] : items/modules.md
294
306
[ *Name resolution* ] : names/name-resolution.md
295
307
[ *name* ] : names.md
296
308
[ *namespace* ] : names/namespaces.md
@@ -303,6 +315,7 @@ example of an uninhabited type is the [never type] `!`, or an enum with no varia
303
315
[ trait objects ] : types/trait-object.md
304
316
[ traits ] : items/traits.md
305
317
[ turbofish test ] : https://github.com/rust-lang/rust/blob/master/src/test/ui/bastion-of-the-turbofish.rs
318
+ [ types of crates ] : linkage.md
306
319
[ types ] : types.md
307
320
[ undefined-behavior ] : behavior-considered-undefined.md
308
321
[ unions ] : items/unions.md
0 commit comments