@@ -152,19 +152,19 @@ let version = env!("CARGO_PKG_VERSION");
152
152
153
153
` version ` will now contain the value of ` CARGO_PKG_VERSION ` .
154
154
155
- * ` CARGO ` - Path to the ` cargo ` binary performing the build.
156
- * ` CARGO_MANIFEST_DIR ` - The directory containing the manifest of your package.
157
- * ` CARGO_PKG_VERSION ` - The full version of your package.
158
- * ` CARGO_PKG_VERSION_MAJOR ` - The major version of your package.
159
- * ` CARGO_PKG_VERSION_MINOR ` - The minor version of your package.
160
- * ` CARGO_PKG_VERSION_PATCH ` - The patch version of your package.
161
- * ` CARGO_PKG_VERSION_PRE ` - The pre-release version of your package.
162
- * ` CARGO_PKG_AUTHORS ` - Colon separated list of authors from the manifest of your package.
163
- * ` CARGO_PKG_NAME ` - The name of your package.
164
- * ` CARGO_PKG_DESCRIPTION ` - The description from the manifest of your package.
165
- * ` CARGO_PKG_HOMEPAGE ` - The home page from the manifest of your package.
166
- * ` CARGO_PKG_REPOSITORY ` - The repository from the manifest of your package.
167
- * ` OUT_DIR ` - If the package has a build script, this is set to the folder where the build
155
+ * ` CARGO ` — Path to the ` cargo ` binary performing the build.
156
+ * ` CARGO_MANIFEST_DIR ` — The directory containing the manifest of your package.
157
+ * ` CARGO_PKG_VERSION ` — The full version of your package.
158
+ * ` CARGO_PKG_VERSION_MAJOR ` — The major version of your package.
159
+ * ` CARGO_PKG_VERSION_MINOR ` — The minor version of your package.
160
+ * ` CARGO_PKG_VERSION_PATCH ` — The patch version of your package.
161
+ * ` CARGO_PKG_VERSION_PRE ` — The pre-release version of your package.
162
+ * ` CARGO_PKG_AUTHORS ` — Colon separated list of authors from the manifest of your package.
163
+ * ` CARGO_PKG_NAME ` — The name of your package.
164
+ * ` CARGO_PKG_DESCRIPTION ` — The description from the manifest of your package.
165
+ * ` CARGO_PKG_HOMEPAGE ` — The home page from the manifest of your package.
166
+ * ` CARGO_PKG_REPOSITORY ` — The repository from the manifest of your package.
167
+ * ` OUT_DIR ` — If the package has a build script, this is set to the folder where the build
168
168
script should place its output. See below for more information.
169
169
(Only set during compilation.)
170
170
@@ -208,18 +208,18 @@ let out_dir = env::var("OUT_DIR").unwrap();
208
208
209
209
` out_dir ` will now contain the value of ` OUT_DIR ` .
210
210
211
- * ` CARGO ` - Path to the ` cargo ` binary performing the build.
212
- * ` CARGO_MANIFEST_DIR ` - The directory containing the manifest for the package
211
+ * ` CARGO ` — Path to the ` cargo ` binary performing the build.
212
+ * ` CARGO_MANIFEST_DIR ` — The directory containing the manifest for the package
213
213
being built (the package containing the build
214
214
script). Also note that this is the value of the
215
215
current working directory of the build script when it
216
216
starts.
217
- * ` CARGO_MANIFEST_LINKS ` - the manifest ` links ` value.
218
- * ` CARGO_FEATURE_<name> ` - For each activated feature of the package being
217
+ * ` CARGO_MANIFEST_LINKS ` — the manifest ` links ` value.
218
+ * ` CARGO_FEATURE_<name> ` — For each activated feature of the package being
219
219
built, this environment variable will be present
220
220
where ` <name> ` is the name of the feature uppercased
221
221
and having ` - ` translated to ` _ ` .
222
- * ` CARGO_CFG_<cfg> ` - For each [ configuration option] [ configuration ] of the
222
+ * ` CARGO_CFG_<cfg> ` — For each [ configuration option] [ configuration ] of the
223
223
package being built, this environment variable will contain the value of the
224
224
configuration, where ` <cfg> ` is the name of the configuration uppercased and
225
225
having ` - ` translated to ` _ ` . Boolean configurations are present if they are
@@ -238,14 +238,14 @@ let out_dir = env::var("OUT_DIR").unwrap();
238
238
* ` CARGO_CFG_TARGET_POINTER_WIDTH=64 ` — The CPU [ pointer width] .
239
239
* ` CARGO_CFG_TARGET_ENDIAN=little ` — The CPU [ target endianness] .
240
240
* ` CARGO_CFG_TARGET_FEATURE=mmx,sse ` — List of CPU [ target features] enabled.
241
- * ` OUT_DIR ` - the folder in which all output should be placed. This folder is
241
+ * ` OUT_DIR ` — the folder in which all output should be placed. This folder is
242
242
inside the build directory for the package being built, and it is
243
243
unique for the package in question.
244
- * ` TARGET ` - the target triple that is being compiled for. Native code should be
244
+ * ` TARGET ` — the target triple that is being compiled for. Native code should be
245
245
compiled for this triple. See the [ Target Triple] description
246
246
for more information.
247
- * ` HOST ` - the host triple of the rust compiler.
248
- * ` NUM_JOBS ` - the parallelism specified as the top-level parallelism. This can
247
+ * ` HOST ` — the host triple of the rust compiler.
248
+ * ` NUM_JOBS ` — the parallelism specified as the top-level parallelism. This can
249
249
be useful to pass a ` -j ` parameter to a system like ` make ` . Note
250
250
that care should be taken when interpreting this environment
251
251
variable. For historical purposes this is still provided but
@@ -254,15 +254,15 @@ let out_dir = env::var("OUT_DIR").unwrap();
254
254
[ jobserver] and will allow build scripts to inherit this
255
255
information, so programs compatible with GNU make jobservers will
256
256
already have appropriately configured parallelism.
257
- * ` OPT_LEVEL ` , ` DEBUG ` - values of the corresponding variables for the
257
+ * ` OPT_LEVEL ` , ` DEBUG ` — values of the corresponding variables for the
258
258
profile currently being built.
259
- * ` PROFILE ` - ` release ` for release builds, ` debug ` for other builds.
260
- * ` DEP_<name>_<key> ` - For more information about this set of environment
259
+ * ` PROFILE ` — ` release ` for release builds, ` debug ` for other builds.
260
+ * ` DEP_<name>_<key> ` — For more information about this set of environment
261
261
variables, see build script documentation about [ ` links ` ] [ links ] .
262
- * ` RUSTC ` , ` RUSTDOC ` - the compiler and documentation generator that Cargo has
262
+ * ` RUSTC ` , ` RUSTDOC ` — the compiler and documentation generator that Cargo has
263
263
resolved to use, passed to the build script so it might
264
264
use it as well.
265
- * ` RUSTC_LINKER ` - The path to the linker binary that Cargo has resolved to use
265
+ * ` RUSTC_LINKER ` — The path to the linker binary that Cargo has resolved to use
266
266
for the current target, if specified. The linker can be
267
267
changed by editing ` .cargo/config ` ; see the documentation
268
268
about [ cargo configuration] [ cargo-config ] for more
@@ -289,4 +289,4 @@ let out_dir = env::var("OUT_DIR").unwrap();
289
289
Cargo exposes this environment variable to 3rd party subcommands
290
290
(ie. programs named ` cargo-foobar ` placed in ` $PATH ` ):
291
291
292
- * ` CARGO ` - Path to the ` cargo ` binary performing the build.
292
+ * ` CARGO ` — Path to the ` cargo ` binary performing the build.
0 commit comments