pub struct Opts {Show 15 fields
pub format: bool,
pub skip: Vec<String>,
pub bitflags_path: Option<String>,
pub additional_derive_attributes: Vec<String>,
pub with: Vec<(String, WithOption)>,
pub generate_all: bool,
pub generate_unused_types: bool,
pub anyhow_path: Option<String>,
pub bytes_path: Option<String>,
pub futures_path: Option<String>,
pub tokio_path: Option<String>,
pub tokio_util_path: Option<String>,
pub tracing_path: Option<String>,
pub wasm_tokio_path: Option<String>,
pub wrpc_transport_path: Option<String>,
}Fields§
§format: boolWhether or not a formatter is executed to format generated code.
skip: Vec<String>Names of functions to skip generating bindings for.
bitflags_path: Option<String>The optional path to the bitflags crate to use.
This defaults to wit_bindgen_wrpc::bitflags.
additional_derive_attributes: Vec<String>Additional derive attributes to add to generated types. If using in a CLI, this flag can be specified multiple times to add multiple attributes.
These derive attributes will be added to any generated structs or enums
with: Vec<(String, WithOption)>Remapping of interface names to rust module names.
Argument must be of the form k=v and this option can be passed
multiple times or one option can be comma separated, for example
k1=v1,k2=v2.
generate_all: boolIndicates that all interfaces not specified in with should be
generated.
generate_unused_types: boolWhether to generate unused structures, not generated by default (false)
anyhow_path: Option<String>The optional path to the anyhow crate to use.
This defaults to wit_bindgen_wrpc::anyhow.
bytes_path: Option<String>The optional path to the bytes crate to use.
This defaults to wit_bindgen_wrpc::bytes.
futures_path: Option<String>The optional path to the futures crate to use.
This defaults to wit_bindgen_wrpc::futures.
tokio_path: Option<String>The optional path to the tokio crate to use.
This defaults to wit_bindgen_wrpc::tokio.
tokio_util_path: Option<String>The optional path to the tokio-util crate to use.
This defaults to wit_bindgen_wrpc::tokio_util.
tracing_path: Option<String>The optional path to the tracing crate to use.
This defaults to wit_bindgen_wrpc::tracing.
wasm_tokio_path: Option<String>The optional path to the wasm-tokio crate to use.
This defaults to wit_bindgen_wrpc::wasm_tokio.
wrpc_transport_path: Option<String>The optional path to the wrpc-transport crate to use.
This defaults to wit_bindgen_wrpc::wrpc_transport.