Lines Matching +full:version +full:- +full:script
1 <!-- Generated with Stardoc: http://skydoc.bazel.build -->
14 …-name">name</a>, <a href="#cargo_bootstrap_repository-binary">binary</a>, <a href="#cargo_bootstra…
15 …_repository-iso_date">iso_date</a>, <a href="#cargo_bootstrap_repository-repo_mapping">repo_mappin…
16 …-rust_toolchain_rustc_template">rust_toolchain_rustc_template</a>, <a href="#cargo_bootstrap_repos…
19 A rule for bootstrapping a Rust binary using [Cargo](https://doc.rust-lang.org/cargo/)
25 | :------------- | :------------- | :------------- | :------------- | :------------- |
26 …_bootstrap_repository-name"></a>name | A unique name for this repository. | <a href="https://ba…
27 | <a id="cargo_bootstrap_repository-binary"></a>binary | The binary to build (the <code>--bin</cod…
28 | <a id="cargo_bootstrap_repository-build_mode"></a>build_mode | The build mode the binary should …
29 | <a id="cargo_bootstrap_repository-cargo_lockfile"></a>cargo_lockfile | The lockfile of the crate…
30 | <a id="cargo_bootstrap_repository-cargo_toml"></a>cargo_toml | The path of the crate_universe re…
31 …-env"></a>env | A mapping of platform triple to a set of environment variables. See [cargo_env](#…
32 …-env_label"></a>env_label | A mapping of platform triple to a set of environment variables. This …
33 …rap_repository-iso_date"></a>iso_date | The iso_date of cargo binary the resolver should use. Not…
34 …-repo_mapping"></a>repo_mapping | A dictionary from local repository name to global repository na…
35 …-rust_toolchain_cargo_template"></a>rust_toolchain_cargo_template | The template to use for findi…
36 …-rust_toolchain_rustc_template"></a>rust_toolchain_rustc_template | The template to use for findi…
37 | <a id="cargo_bootstrap_repository-srcs"></a>srcs | Souce files of the crate to build. Passing so…
38 | <a id="cargo_bootstrap_repository-timeout"></a>timeout | Maximum duration of the Cargo build com…
39 | <a id="cargo_bootstrap_repository-version"></a>version | The version of cargo the resolver shoul…
47 …o_dep_env(<a href="#cargo_dep_env-name">name</a>, <a href="#cargo_dep_env-out_dir">out_dir</a>, <a…
50 …nt `cargo_build_script`s without a build script. This is useful for using Bazel rules instead of a…
56 | :------------- | :------------- | :------------- | :------------- | :------------- |
57 | <a id="cargo_dep_env-name"></a>name | A unique name for this target. | <a href="https://bazel.…
58 …-out_dir"></a>out_dir | Folder containing additional inputs when building all direct dependencies…
59 …-src"></a>src | File containing additional environment variables to set for build scripts of dire…
67 …-name">name</a>, <a href="#cargo_build_script-edition">edition</a>, <a href="#cargo_build_script-c…
68 …-link_deps">link_deps</a>, <a href="#cargo_build_script-proc_macro_deps">proc_macro_deps</a>, <a h…
69 …-rundir">rundir</a>, <a href="#cargo_build_script-rustc_env">rustc_env</a>, <a href="#cargo_build_…
72 Compile and execute a rust build script to generate build attributes
78 Suppose you have a crate with a cargo build script `build.rs`:
89 Then you want to use the build script in the following:
98 # This will run the build script from the root of the workspace, and
108 # Note that as the build script's working directory is not execroot,
127 …d with the flags and the environment variables declared by the build script in addition to the…
134 | :------------- | :------------- | :------------- |
135 | <a id="cargo_build_script-name"></a>name | The name for the underlying rule. This should be the …
136 | <a id="cargo_build_script-edition"></a>edition | The rust edition to use for the internal binary…
137 | <a id="cargo_build_script-crate_name"></a>crate_name | Crate name to use for build script. | …
138 | <a id="cargo_build_script-crate_root"></a>crate_root | The file that will be passed to rustc to …
139 | <a id="cargo_build_script-srcs"></a>srcs | Souce files of the crate to build. Passing source fil…
140 | <a id="cargo_build_script-crate_features"></a>crate_features | A list of features to enable for …
141 | <a id="cargo_build_script-version"></a>version | The semantic version (semver) of the crate. |…
142 | <a id="cargo_build_script-deps"></a>deps | The build-dependencies of the crate. | `[]` |
143 …-link_deps"></a>link_deps | The subset of the (normal) dependencies of the crate that have the li…
144 | <a id="cargo_build_script-proc_macro_deps"></a>proc_macro_deps | List of rust_proc_macro targets…
145 | <a id="cargo_build_script-build_script_env"></a>build_script_env | Environment variables for bui…
146 | <a id="cargo_build_script-data"></a>data | Files needed by the build script. | `[]` |
147 | <a id="cargo_build_script-compile_data"></a>compile_data | Files needed for the compilation of t…
148 | <a id="cargo_build_script-tools"></a>tools | Tools (executables) needed by the build script. |…
149 | <a id="cargo_build_script-links"></a>links | Name of the native library this crate links against…
150 …-rundir"></a>rundir | A directory to <code>cd</code> to before the cargo_build_script is run. Thi…
151 | <a id="cargo_build_script-rustc_env"></a>rustc_env | Environment variables to set in rustc when …
152 …_script-rustc_env_files"></a>rustc_env_files | Files containing additional environment variables …
153 | <a id="cargo_build_script-rustc_flags"></a>rustc_flags | List of compiler flags passed to <code>…
154 | <a id="cargo_build_script-visibility"></a>visibility | Visibility to apply to the generated buil…
155 | <a id="cargo_build_script-tags"></a>tags | (list of str, optional): Tags to apply to the generat…
156 | <a id="cargo_build_script-aliases"></a>aliases | Remap crates to a new name or moniker for linka…
157 | <a id="cargo_build_script-kwargs"></a>kwargs | Forwards to the underlying <code>rust_binary</cod…
165 cargo_env(<a href="#cargo_env-env">env</a>)
179 version = rust_common.default_version,
180 binary = "my-crate-binary",
182 "x86_64-unknown-linux-gnu": cargo_env({
187 "aarch64-unknown-linux-musl": cargo_env({
199 | :------------- | :------------- | :------------- |
200 | <a id="cargo_env-env"></a>env | A map of environment variables | none |