Lines Matching +full:version +full:- +full:script
1 <!-- Generated with Stardoc: http://skydoc.bazel.build -->
14 cargo_dep_env(<a href="#cargo_dep_env-name">name</a>, <a href="#cargo_dep_env-src">src</a>, <a href…
17 …nt `cargo_build_script`s without a build script. This is useful for using Bazel rules instead of a…
23 | :------------- | :------------- | :------------- | :------------- | :------------- |
24 | <a id="cargo_dep_env-name"></a>name | A unique name for this target. | <a href="https://bazel.…
25 …-src"></a>src | File containing additional environment variables to set for build scripts of dire…
26 …-out_dir"></a>out_dir | Folder containing additional inputs when building all direct dependencies…
34 …-name">name</a>, <a href="#cargo_build_script-edition">edition</a>, <a href="#cargo_build_script-c…
35 …-link_deps">link_deps</a>, <a href="#cargo_build_script-proc_macro_deps">proc_macro_deps</a>, <a h…
36 …-rundir">rundir</a>, <a href="#cargo_build_script-rustc_env">rustc_env</a>, <a href="#cargo_build_…
37 …<a href="#cargo_build_script-pkg_name">pkg_name</a>, <a href="#cargo_build_script-kwargs">kwargs</…
40 Compile and execute a rust build script to generate build attributes
46 Suppose you have a crate with a cargo build script `build.rs`:
57 Then you want to use the build script in the following:
66 # This will run the build script from the root of the workspace, and
76 # Note that as the build script's working directory is not execroot,
95 …d with the flags and the environment variables declared by the build script in addition to the…
102 | :------------- | :------------- | :------------- |
103 | <a id="cargo_build_script-name"></a>name | The name for the underlying rule. This should be the …
104 | <a id="cargo_build_script-edition"></a>edition | The rust edition to use for the internal binary…
105 | <a id="cargo_build_script-crate_name"></a>crate_name | Crate name to use for build script. | …
106 | <a id="cargo_build_script-crate_root"></a>crate_root | The file that will be passed to rustc to …
107 | <a id="cargo_build_script-srcs"></a>srcs | Souce files of the crate to build. Passing source fil…
108 | <a id="cargo_build_script-crate_features"></a>crate_features | A list of features to enable for …
109 | <a id="cargo_build_script-version"></a>version | The semantic version (semver) of the crate. |…
110 | <a id="cargo_build_script-deps"></a>deps | The build-dependencies of the crate. | `[]` |
111 …-link_deps"></a>link_deps | The subset of the (normal) dependencies of the crate that have the li…
112 | <a id="cargo_build_script-proc_macro_deps"></a>proc_macro_deps | List of rust_proc_macro targets…
113 | <a id="cargo_build_script-build_script_env"></a>build_script_env | Environment variables for bui…
114 | <a id="cargo_build_script-data"></a>data | Files needed by the build script. | `[]` |
115 | <a id="cargo_build_script-compile_data"></a>compile_data | Files needed for the compilation of t…
116 | <a id="cargo_build_script-tools"></a>tools | Tools (executables) needed by the build script. |…
117 | <a id="cargo_build_script-links"></a>links | Name of the native library this crate links against…
118 …-rundir"></a>rundir | A directory to `cd` to before the cargo_build_script is run. This should be…
119 | <a id="cargo_build_script-rustc_env"></a>rustc_env | Environment variables to set in rustc when …
120 …_script-rustc_env_files"></a>rustc_env_files | Files containing additional environment variables …
121 | <a id="cargo_build_script-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc…
122 | <a id="cargo_build_script-visibility"></a>visibility | Visibility to apply to the generated buil…
123 | <a id="cargo_build_script-tags"></a>tags | (list of str, optional): Tags to apply to the generat…
124 | <a id="cargo_build_script-aliases"></a>aliases | Remap crates to a new name or moniker for linka…
125 | <a id="cargo_build_script-pkg_name"></a>pkg_name | Override the package name used for the build …
126 | <a id="cargo_build_script-kwargs"></a>kwargs | Forwards to the underlying `rust_binary` rule. An…
134 cargo_env(<a href="#cargo_env-env">env</a>)
148 version = rust_common.default_version,
149 binary = "my-crate-binary",
151 "x86_64-unknown-linux-gnu": cargo_env({
156 "aarch64-unknown-linux-musl": cargo_env({
168 | :------------- | :------------- | :------------- |
169 | <a id="cargo_env-env"></a>env | A map of environment variables | none |
181 …-name">name</a>, <a href="#cargo_bootstrap_repository-srcs">srcs</a>, <a href="#cargo_bootstrap_re…
182 …repository-env_label">env_label</a>, <a href="#cargo_bootstrap_repository-repo_mapping">repo_mappi…
183 …-rust_toolchain_rustc_template">rust_toolchain_rustc_template</a>, <a href="#cargo_bootstrap_repos…
186 A rule for bootstrapping a Rust binary using [Cargo](https://doc.rust-lang.org/cargo/)
192 | :------------- | :------------- | :------------- | :------------- | :------------- |
193 …_bootstrap_repository-name"></a>name | A unique name for this repository. | <a href="https://ba…
194 | <a id="cargo_bootstrap_repository-srcs"></a>srcs | Souce files of the crate to build. Passing so…
195 | <a id="cargo_bootstrap_repository-binary"></a>binary | The binary to build (the `--bin` paramete…
196 | <a id="cargo_bootstrap_repository-build_mode"></a>build_mode | The build mode the binary should …
197 | <a id="cargo_bootstrap_repository-cargo_lockfile"></a>cargo_lockfile | The lockfile of the crate…
198 | <a id="cargo_bootstrap_repository-cargo_toml"></a>cargo_toml | The path of the crate_universe re…
199 …-env"></a>env | A mapping of platform triple to a set of environment variables. See [cargo_env](#…
200 …-env_label"></a>env_label | A mapping of platform triple to a set of environment variables. This …
201 …-repo_mapping"></a>repo_mapping | In `WORKSPACE` context only: a dictionary from local repository…
202 …-rust_toolchain_cargo_template"></a>rust_toolchain_cargo_template | The template to use for findi…
203 …-rust_toolchain_rustc_template"></a>rust_toolchain_rustc_template | The template to use for findi…
204 | <a id="cargo_bootstrap_repository-timeout"></a>timeout | Maximum duration of the Cargo build com…
205 …rap_repository-version"></a>version | The version of Rust the currently registered toolchain is u…