Creates a fuchsia virtual device for running in an emulator.

## **ATTRIBUTES**

| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | [Name](https://bazel.build/concepts/labels#target-names) | required | - |
| device_name | Name of the virtual device. | [String](https://bazel.build/rules/lib/toplevel/attr#string) | required | - |
| avx2_enabled | Whether AVX2 (and AVX512) is enabled for the emulator. | [Boolean](https://bazel.build/rules/lib/toplevel/attr#bool) | optional | `True` |
| description | Description of the virtual device. | [String](https://bazel.build/rules/lib/toplevel/attr#string) | optional | `""` |
| arch | The architecture of the cpu. | [String](https://bazel.build/rules/lib/toplevel/attr#string) | required | - |
| cpu_count | The number of CPUs | [Integer](https://bazel.build/rules/lib/toplevel/attr#int) | optional | `4` |
| window_width_px | Width of the virtual device's screen, in pixels. | [Integer](https://bazel.build/rules/lib/toplevel/attr#int) | optional | `1200` |
| window_height_px | Height of the virtual device's screen, in pixels. | [Integer](https://bazel.build/rules/lib/toplevel/attr#int) | optional | `800` |
| memory_quantity | Memory of the virtual device. | [Integer](https://bazel.build/rules/lib/toplevel/attr#int) | optional | `8192` |
| memory_unit | Unit for memory of the virtual device (e.g. megabytes, gigabytes, etc.). | [String](https://bazel.build/rules/lib/toplevel/attr#string) | optional | `"megabytes"` |
| storage_quantity | Storage of the virtual device. | [Integer](https://bazel.build/rules/lib/toplevel/attr#int) | optional | `10` |
| storage_unit | Unit for storage of the virtual device (e.g. megabytes, gigabytes, etc.). | [String](https://bazel.build/rules/lib/toplevel/attr#string) | optional | `"gigabytes"` |
| vsock_enabled | Whether the virtual device should expose a vsock | [Boolean](https://bazel.build/rules/lib/toplevel/attr#bool) | optional | `False` |
| vsock_cid | The context id the guest vsock should. Only used if vsock_enable = true and a value of zero indicates that a value should be generated | [Integer](https://bazel.build/rules/lib/toplevel/attr#int) | optional | `0` |
| audio_model | The audio device model that should be emulated. | [String](https://bazel.build/rules/lib/toplevel/attr#string) | optional | `"hda"` |
| input_device | The input device type that should be emulated. | [String](https://bazel.build/rules/lib/toplevel/attr#string) | optional | `"touch"` |
| ports | Dictionary of port names to port numbers which should be exposed to the host. | [String Dict](https://bazel.build/rules/lib/toplevel/attr#string_dict) | optional | `{"ssh": "22", "mdns": "5353", "debug": "2345", "adb": "5555"}` |