The `zx` library is defined in [//zircon/vdso](https://cs.opensource.google/fuchsia/fuchsia/+/main:/zircon/vdso), and can be
depended on in-tree by adding the `//zircon/vdso/zx` target to a `fidl`
target's `public_deps`. If invoking `fidlc` directly, `zx_common.fidl` would
need to be included with a `--files` argument if necessary.

You can then reference this library with the `using` statement:

    using zx;

The types generally correspond to [Zircon System
Types](https://fuchsia.dev/docs/development/api/system#types). For example,
`zx.Duration` corresponds to `zx_duration_t`.
> The `CHANNEL_MAX_MSG_BYTES` and `CHANNEL_MAX_MSG_HANDLES`
> are bound at `fidlc` compile time (that is, when the **compiler**
> is compiled) and reflect the constants present at that time.
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/reference/fidl/language/library-zx.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/reference/fidl/language/library-zx.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/reference/fidl/language/library-zx.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/reference/fidl/language/library-zx.md "Edit the source code of this page")