wl-client-builder-cli

Crates.iowl-client-builder-cli
lib.rswl-client-builder-cli
version0.2.0
created_at2025-04-14 02:27:55.838794+00
updated_at2025-04-21 09:00:07.918065+00
descriptionCLI for creating protocol bindings for wl-client
homepage
repositoryhttps://github.com/mahkoh/wl-client
max_upload_size
id1632314
size28,128
(mahkoh)

documentation

README

wl-client-builder

crates.io MSRV

The wl-client-builder binary can be used to convert wayland protocol XML files into safe protocol implementations for wl-client.

You can install it with

cargo install --locked wl-client-builder-cli

Help

Generate safe protocol wrappers for the `wl-client` crate

Usage: wl-client-builder [OPTIONS] <OUT_DIR>

Arguments:
  <OUT_DIR>
          The directory to generate code into.
          
          The generated code will be available via the `mod.rs` file in this directory.
          
          The directory will be created if it does not already exist. Files that already
          exist in the directory will not be removed but might be overwritten. You should
          remove the directory before generating code if you want to ensure that it only
          contains required files.

Options:
      --xml-file <XML_FILE>
          The path to an XML protocol file

      --xml-dir <XML_DIR>
          The path to a directory containing XML protocol files.
          
          This behaves as if all XML files in this directory (but not any sub-directories)
          had been specified explicitly via `--xml-file` arguments.

      --wl-client-path <WL_CLIENT_PATH>
          The rust module path to the `wl-client` crate.
          
          By default, the generated code assumes that the crate can be accessed via
          `::wl_client`. If your crate imports the crate under a different name, the path
          can be modified with this parameter.

  -h, --help
          Print help (see a summary with '-h')

MSRV

The MSRV is max(1.85, stable - 3).

License

This project is licensed under either of

  • Apache License, Version 2.0
  • MIT License

at your option.

Commit count: 22

cargo fmt