Lines Matching +full:- +full:a

1 <!-- Generated with Stardoc: http://skydoc.bazel.build -->
17 <a id="capture_clippy_output"></a>
22 capture_clippy_output(<a href="#capture_clippy_output-name">name</a>)
25 Control whether to print clippy output or store it to a file, using the configured error_format.
31 | :------------- | :------------- | :------------- | :------------- | :------------- |
32 | <a id="capture_clippy_output-name"></a>name | A unique name for this target. | <a href="https:…
35 <a id="error_format"></a>
40 error_format(<a href="#error_format-name">name</a>)
43 …ange the [--error-format](https://doc.rust-lang.org/rustc/command-line-arguments.html#option-error
49 | :------------- | :------------- | :------------- | :------------- | :------------- |
50 | <a id="error_format-name"></a>name | A unique name for this target. | <a href="https://bazel.b…
53 <a id="extra_rustc_flag"></a>
58 extra_rustc_flag(<a href="#extra_rustc_flag-name">name</a>)
61 Add additional rustc_flag from the command line with `--@rules_rust//:extra_rustc_flag`. Multiple u…
67 | :------------- | :------------- | :------------- | :------------- | :------------- |
68 | <a id="extra_rustc_flag-name"></a>name | A unique name for this target. | <a href="https://baz…
71 <a id="extra_rustc_flags"></a>
76 extra_rustc_flags(<a href="#extra_rustc_flags-name">name</a>)
79--@rules_rust//:extra_rustc_flags`. This flag should only be used for flags that need to be applie…
85 | :------------- | :------------- | :------------- | :------------- | :------------- |
86 | <a id="extra_rustc_flags-name"></a>name | A unique name for this target. | <a href="https://ba…
89 <a id="rust_binary"></a>
94a href="#rust_binary-name">name</a>, <a href="#rust_binary-deps">deps</a>, <a href="#rust_binary-s…
95a href="#rust_binary-crate_root">crate_root</a>, <a href="#rust_binary-crate_type">crate_type</a>,…
96a href="#rust_binary-malloc">malloc</a>, <a href="#rust_binary-out_binary">out_binary</a>, <a href…
97 <a href="#rust_binary-stamp">stamp</a>, <a href="#rust_binary-version">version</a>)
100 Builds a Rust binary crate.
104 Suppose you have the following directory structure for a Rust project with a
105 library crate, `hello_lib`, and a binary crate, `hello_world` that uses the
128 pub fn new(greeting: &str) -> Greeter {
175 Target //examples/rust/hello_world:hello_world up-to-date:
176 bazel-bin/examples/rust/hello_world/hello_world
179 INFO: Running command line: bazel-bin/examples/rust/hello_world/hello_world
183 On Windows, a PDB file containing debugging information is available under
184 the key `pdb_file` in `OutputGroupInfo`. Similarly on macOS, a dSYM folder
191 | :------------- | :------------- | :------------- | :------------- | :------------- |
192 | <a id="rust_binary-name"></a>name | A unique name for this target. | <a href="https://bazel.bu…
193a id="rust_binary-deps"></a>deps | List of other libraries to be linked to this library target.<b…
194a id="rust_binary-srcs"></a>srcs | List of Rust `.rs` source files used to build the library.<br>…
195a id="rust_binary-data"></a>data | List of files used by this rule at compile time and runtime.<b…
196a id="rust_binary-aliases"></a>aliases | Remap crates to a new name or moniker for linkage to thi…
197 | <a id="rust_binary-alwayslink"></a>alwayslink | If 1, any binary that depends (directly or indir…
198a id="rust_binary-compile_data"></a>compile_data | List of files used by this rule at compile tim…
199a id="rust_binary-crate_features"></a>crate_features | List of features to enable for this crate.…
200 | <a id="rust_binary-crate_name"></a>crate_name | Crate name to use for this target.<br><br>This m…
201a id="rust_binary-crate_root"></a>crate_root | The file that will be passed to `rustc` to be used…
202 … <a id="rust_binary-crate_type"></a>crate_type | Crate type that will be passed to `rustc` to be …
203 | <a id="rust_binary-edition"></a>edition | The rust edition to use for this crate. Defaults to th…
204a id="rust_binary-env"></a>env | Specifies additional environment variables to set when the targe…
205a id="rust_binary-experimental_use_cc_common_link"></a>experimental_use_cc_common_link | Whether …
206a id="rust_binary-linker_script"></a>linker_script | Link script to forward into linker via rustc…
207a id="rust_binary-malloc"></a>malloc | Override the default dependency on `malloc`.<br><br>By def…
208a id="rust_binary-out_binary"></a>out_binary | Force a target, regardless of it's `crate_type`, t…
209 … <a id="rust_binary-platform"></a>platform | Optional platform to transition the binary to. | <
210a id="rust_binary-proc_macro_deps"></a>proc_macro_deps | List of `rust_proc_macro` targets used t…
211a id="rust_binary-rustc_env"></a>rustc_env | Dictionary of additional `"key": "value"` environmen…
212a id="rust_binary-rustc_env_files"></a>rustc_env_files | Files containing additional environment …
213a id="rust_binary-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc`.<br><br…
214a id="rust_binary-stamp"></a>stamp | Whether to encode build information into the `Rustc` action.…
215 | <a id="rust_binary-version"></a>version | A version to inject in the cargo environment variable.…
218 <a id="rust_library"></a>
223a href="#rust_library-name">name</a>, <a href="#rust_library-deps">deps</a>, <a href="#rust_librar…
224a href="#rust_library-crate_root">crate_root</a>, <a href="#rust_library-disable_pipelining">disab…
225 …<a href="#rust_library-rustc_flags">rustc_flags</a>, <a href="#rust_library-stamp">stamp</a>, <a h…
228 Builds a Rust library crate.
232 Suppose you have the following directory structure for a simple Rust library crate:
251 pub fn new(greeting: &str) -> Greeter {
286 Target //examples/rust/hello_lib:hello_lib up-to-date:
287 bazel-bin/examples/rust/hello_lib/libhello_lib.rlib
295 | :------------- | :------------- | :------------- | :------------- | :------------- |
296 | <a id="rust_library-name"></a>name | A unique name for this target. | <a href="https://bazel.b…
297a id="rust_library-deps"></a>deps | List of other libraries to be linked to this library target.<…
298a id="rust_library-srcs"></a>srcs | List of Rust `.rs` source files used to build the library.<br…
299a id="rust_library-data"></a>data | List of files used by this rule at compile time and runtime.<…
300a id="rust_library-aliases"></a>aliases | Remap crates to a new name or moniker for linkage to th…
301 | <a id="rust_library-alwayslink"></a>alwayslink | If 1, any binary that depends (directly or indi…
302a id="rust_library-compile_data"></a>compile_data | List of files used by this rule at compile ti…
303a id="rust_library-crate_features"></a>crate_features | List of features to enable for this crate…
304 | <a id="rust_library-crate_name"></a>crate_name | Crate name to use for this target.<br><br>This …
305a id="rust_library-crate_root"></a>crate_root | The file that will be passed to `rustc` to be use…
306a id="rust_library-disable_pipelining"></a>disable_pipelining | Disables pipelining for this rule…
307 | <a id="rust_library-edition"></a>edition | The rust edition to use for this crate. Defaults to t…
308a id="rust_library-proc_macro_deps"></a>proc_macro_deps | List of `rust_proc_macro` targets used …
309a id="rust_library-rustc_env"></a>rustc_env | Dictionary of additional `"key": "value"` environme…
310a id="rust_library-rustc_env_files"></a>rustc_env_files | Files containing additional environment…
311a id="rust_library-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc`.<br><b…
312a id="rust_library-stamp"></a>stamp | Whether to encode build information into the `Rustc` action…
313 | <a id="rust_library-version"></a>version | A version to inject in the cargo environment variable…
316 <a id="rust_library_group"></a>
321 rust_library_group(<a href="#rust_library_group-name">name</a>, <a href="#rust_library_group-deps">…
324 Functions as an alias for a set of dependencies.
361 | :------------- | :------------- | :------------- | :------------- | :------------- |
362 | <a id="rust_library_group-name"></a>name | A unique name for this target. | <a href="https://b…
363a id="rust_library_group-deps"></a>deps | Other dependencies to forward through this crate group.…
366 <a id="rust_proc_macro"></a>
371a href="#rust_proc_macro-name">name</a>, <a href="#rust_proc_macro-deps">deps</a>, <a href="#rust_…
372a href="#rust_proc_macro-crate_name">crate_name</a>, <a href="#rust_proc_macro-crate_root">crate_r…
373 …<a href="#rust_proc_macro-rustc_flags">rustc_flags</a>, <a href="#rust_proc_macro-stamp">stamp</a>…
376 Builds a Rust proc-macro crate.
382 | :------------- | :------------- | :------------- | :------------- | :------------- |
383 | <a id="rust_proc_macro-name"></a>name | A unique name for this target. | <a href="https://baze…
384a id="rust_proc_macro-deps"></a>deps | List of other libraries to be linked to this library targe…
385a id="rust_proc_macro-srcs"></a>srcs | List of Rust `.rs` source files used to build the library.…
386a id="rust_proc_macro-data"></a>data | List of files used by this rule at compile time and runtim…
387a id="rust_proc_macro-aliases"></a>aliases | Remap crates to a new name or moniker for linkage to…
388 | <a id="rust_proc_macro-alwayslink"></a>alwayslink | If 1, any binary that depends (directly or i…
389a id="rust_proc_macro-compile_data"></a>compile_data | List of files used by this rule at compile…
390a id="rust_proc_macro-crate_features"></a>crate_features | List of features to enable for this cr…
391 | <a id="rust_proc_macro-crate_name"></a>crate_name | Crate name to use for this target.<br><br>Th…
392a id="rust_proc_macro-crate_root"></a>crate_root | The file that will be passed to `rustc` to be …
393 | <a id="rust_proc_macro-edition"></a>edition | The rust edition to use for this crate. Defaults t…
394a id="rust_proc_macro-proc_macro_deps"></a>proc_macro_deps | List of `rust_proc_macro` targets us…
395a id="rust_proc_macro-rustc_env"></a>rustc_env | Dictionary of additional `"key": "value"` enviro…
396a id="rust_proc_macro-rustc_env_files"></a>rustc_env_files | Files containing additional environm…
397a id="rust_proc_macro-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc`.<br…
398a id="rust_proc_macro-stamp"></a>stamp | Whether to encode build information into the `Rustc` act…
399 | <a id="rust_proc_macro-version"></a>version | A version to inject in the cargo environment varia…
402 <a id="rust_shared_library"></a>
407a href="#rust_shared_library-name">name</a>, <a href="#rust_shared_library-deps">deps</a>, <a href…
408a href="#rust_shared_library-crate_name">crate_name</a>, <a href="#rust_shared_library-crate_root"…
409a href="#rust_shared_library-platform">platform</a>, <a href="#rust_shared_library-proc_macro_deps…
410 <a href="#rust_shared_library-version">version</a>)
413 Builds a Rust shared library.
417 (for example to produce a shared library that Python program links against).
427 | :------------- | :------------- | :------------- | :------------- | :------------- |
428 | <a id="rust_shared_library-name"></a>name | A unique name for this target. | <a href="https://…
429a id="rust_shared_library-deps"></a>deps | List of other libraries to be linked to this library t…
430a id="rust_shared_library-srcs"></a>srcs | List of Rust `.rs` source files used to build the libr…
431a id="rust_shared_library-data"></a>data | List of files used by this rule at compile time and ru…
432a id="rust_shared_library-aliases"></a>aliases | Remap crates to a new name or moniker for linkag…
433 | <a id="rust_shared_library-alwayslink"></a>alwayslink | If 1, any binary that depends (directly …
434a id="rust_shared_library-compile_data"></a>compile_data | List of files used by this rule at com…
435a id="rust_shared_library-crate_features"></a>crate_features | List of features to enable for thi…
436 | <a id="rust_shared_library-crate_name"></a>crate_name | Crate name to use for this target.<br><b…
437a id="rust_shared_library-crate_root"></a>crate_root | The file that will be passed to `rustc` to…
438 | <a id="rust_shared_library-edition"></a>edition | The rust edition to use for this crate. Defaul…
439a id="rust_shared_library-experimental_use_cc_common_link"></a>experimental_use_cc_common_link | …
440a id="rust_shared_library-malloc"></a>malloc | Override the default dependency on `malloc`.<br><b…
441a id="rust_shared_library-platform"></a>platform | Optional platform to transition the shared lib…
442a id="rust_shared_library-proc_macro_deps"></a>proc_macro_deps | List of `rust_proc_macro` target…
443a id="rust_shared_library-rustc_env"></a>rustc_env | Dictionary of additional `"key": "value"` en…
444a id="rust_shared_library-rustc_env_files"></a>rustc_env_files | Files containing additional envi…
445a id="rust_shared_library-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc`…
446a id="rust_shared_library-stamp"></a>stamp | Whether to encode build information into the `Rustc`…
447 | <a id="rust_shared_library-version"></a>version | A version to inject in the cargo environment v…
450 <a id="rust_static_library"></a>
455a href="#rust_static_library-name">name</a>, <a href="#rust_static_library-deps">deps</a>, <a href…
456a href="#rust_static_library-crate_name">crate_name</a>, <a href="#rust_static_library-crate_root"…
457a href="#rust_static_library-rustc_env_files">rustc_env_files</a>, <a href="#rust_static_library-r…
460 Builds a Rust static library.
474 | :------------- | :------------- | :------------- | :------------- | :------------- |
475 | <a id="rust_static_library-name"></a>name | A unique name for this target. | <a href="https://…
476a id="rust_static_library-deps"></a>deps | List of other libraries to be linked to this library t…
477a id="rust_static_library-srcs"></a>srcs | List of Rust `.rs` source files used to build the libr…
478a id="rust_static_library-data"></a>data | List of files used by this rule at compile time and ru…
479a id="rust_static_library-aliases"></a>aliases | Remap crates to a new name or moniker for linkag…
480 | <a id="rust_static_library-alwayslink"></a>alwayslink | If 1, any binary that depends (directly …
481a id="rust_static_library-compile_data"></a>compile_data | List of files used by this rule at com…
482a id="rust_static_library-crate_features"></a>crate_features | List of features to enable for thi…
483 | <a id="rust_static_library-crate_name"></a>crate_name | Crate name to use for this target.<br><b…
484a id="rust_static_library-crate_root"></a>crate_root | The file that will be passed to `rustc` to…
485 | <a id="rust_static_library-edition"></a>edition | The rust edition to use for this crate. Defaul…
486a id="rust_static_library-platform"></a>platform | Optional platform to transition the static lib…
487a id="rust_static_library-proc_macro_deps"></a>proc_macro_deps | List of `rust_proc_macro` target…
488a id="rust_static_library-rustc_env"></a>rustc_env | Dictionary of additional `"key": "value"` en…
489a id="rust_static_library-rustc_env_files"></a>rustc_env_files | Files containing additional envi…
490a id="rust_static_library-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc`…
491a id="rust_static_library-stamp"></a>stamp | Whether to encode build information into the `Rustc`…
492 | <a id="rust_static_library-version"></a>version | A version to inject in the cargo environment v…
495 <a id="rust_test"></a>
500a href="#rust_test-name">name</a>, <a href="#rust_test-deps">deps</a>, <a href="#rust_test-srcs">s…
501a href="#rust_test-crate_name">crate_name</a>, <a href="#rust_test-crate_root">crate_root</a>, <a
502a href="#rust_test-proc_macro_deps">proc_macro_deps</a>, <a href="#rust_test-rustc_env">rustc_env<…
503 <a href="#rust_test-version">version</a>)
506 Builds a Rust test crate.
510 Suppose you have the following directory structure for a Rust library crate with unit test …
528 pub fn new(greeting: &str) -> Greeter {
532 pub fn greet(&self, thing: &str) -> String {
549 To build and run the tests, simply add a `rust_test` rule with no `srcs`
576 Integration tests that live in the [`tests` directory][int-tests], they are essentially bui…
578 [int-tests]: http://doc.rust-lang.org/book/testing.html#the-tests-directory
604 To build the `greeting.rs` integration test, simply add a `rust_test` target
605 with `greeting.rs` in `srcs` and a dependency on the `hello_lib` target:
629 | :------------- | :------------- | :------------- | :------------- | :------------- |
630 | <a id="rust_test-name"></a>name | A unique name for this target. | <a href="https://bazel.buil…
631a id="rust_test-deps"></a>deps | List of other libraries to be linked to this library target.<br>…
632a id="rust_test-srcs"></a>srcs | List of Rust `.rs` source files used to build the library.<br><b…
633a id="rust_test-data"></a>data | List of files used by this rule at compile time and runtime.<br>…
634a id="rust_test-aliases"></a>aliases | Remap crates to a new name or moniker for linkage to this …
635 | <a id="rust_test-alwayslink"></a>alwayslink | If 1, any binary that depends (directly or indirec…
636a id="rust_test-compile_data"></a>compile_data | List of files used by this rule at compile time.…
637a id="rust_test-crate"></a>crate | Target inline tests declared in the given crate<br><br>These t…
638a id="rust_test-crate_features"></a>crate_features | List of features to enable for this crate.<b…
639 | <a id="rust_test-crate_name"></a>crate_name | Crate name to use for this target.<br><br>This mus…
640a id="rust_test-crate_root"></a>crate_root | The file that will be passed to `rustc` to be used f…
641 | <a id="rust_test-edition"></a>edition | The rust edition to use for this crate. Defaults to the …
642a id="rust_test-env"></a>env | Specifies additional environment variables to set when the test is…
643a id="rust_test-experimental_use_cc_common_link"></a>experimental_use_cc_common_link | Whether to…
644a id="rust_test-malloc"></a>malloc | Override the default dependency on `malloc`.<br><br>By defau…
645 | <a id="rust_test-platform"></a>platform | Optional platform to transition the test to. | <a hr…
646a id="rust_test-proc_macro_deps"></a>proc_macro_deps | List of `rust_proc_macro` targets used to …
647a id="rust_test-rustc_env"></a>rustc_env | Dictionary of additional `"key": "value"` environment …
648a id="rust_test-rustc_env_files"></a>rustc_env_files | Files containing additional environment va…
649a id="rust_test-rustc_flags"></a>rustc_flags | List of compiler flags passed to `rustc`.<br><br>T…
650a id="rust_test-stamp"></a>stamp | Whether to encode build information into the `Rustc` action. P…
651a id="rust_test-use_libtest_harness"></a>use_libtest_harness | Whether to use `libtest`. For targ…
652 | <a id="rust_test-version"></a>version | A version to inject in the cargo environment variable. …
655 <a id="rust_test_suite"></a>
660a href="#rust_test_suite-name">name</a>, <a href="#rust_test_suite-srcs">srcs</a>, <a href="#rust_…
663 A rule for creating a test suite for a set of `rust_test` targets.
685 and a [test_suite][ts] which encapsulates all tests.
708 [it]: https://doc.rust-lang.org/rust-by-example/testing/integration_testing.html
716 | :------------- | :------------- | :------------- |
717 | <a id="rust_test_suite-name"></a>name | The name of the `test_suite`. | none |
718 | <a id="rust_test_suite-srcs"></a>srcs | All test sources, typically `glob(["tests/**/*.rs"])`. …
719 | <a id="rust_test_suite-shared_srcs"></a>shared_srcs | Optional argument for sources shared among…
720 | <a id="rust_test_suite-kwargs"></a>kwargs | Additional keyword arguments for the underyling [rus…