You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
""""A test rule for running [wasm-bindgen tests](https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/index.html)."
29
+
30
+
Args:
31
+
name (str): A unique name for this target.
32
+
aliases (dict, optional): Remap crates to a new name or moniker for linkage to this target.
33
+
compile_data (list, optional): List of files used by this rule at compile time.
34
+
crate_features (list, optional): List of features to enable for this crate.
35
+
data (list, optional): List of files used by this rule at compile time and runtime.
36
+
edition (str, optional): The rust edition to use for this crate. Defaults to the edition specified in the rust_toolchain.
37
+
env (dict, optional): Specifies additional environment variables to set when the test is executed by bazel test.
38
+
env_inherit (list, optional): Specifies additional environment variables to inherit from the external environment when the test is executed by bazel test.
39
+
proc_macro_deps (list, optional): List of `rust_proc_macro` targets used to help build this library target.
40
+
rustc_env (dict, optional): Dictionary of additional `"key": "value"` environment variables to set for rustc.
41
+
rustc_env_files (list, optional): Files containing additional environment variables to set for rustc.
42
+
rustc_flags (list, optional): List of compiler flags passed to `rustc`.
43
+
target_arch (str, optional): The target architecture to use for the wasm-bindgen command line option.
44
+
version (str, optional): A version to inject in the cargo environment variable.
45
+
wasm (Label, optional): The wasm target to test.
46
+
tags (list, optional): Tags to apply to the target.
47
+
**kwargs (dict): Additional keyword arguments.
48
+
"""
49
+
visibility=kwargs.pop("visibility", [])
50
+
51
+
# Create a test binary for `wasm-bindgen-test-runner` to invoke.
52
+
# Ideally this target would be produced within the `wasm_bindgen_test`
53
+
# rule directly but the design of that rule is to consume wasm files
0 commit comments