Struct wit_bindgen_wrpc_rust::Opts
source · pub struct Opts {Show 16 fields
pub rustfmt: bool,
pub std_feature: bool,
pub skip: Vec<String>,
pub anyhow_path: Option<String>,
pub bitflags_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>,
pub additional_derive_attributes: Vec<String>,
pub with: WithGeneration,
pub type_section_suffix: Option<String>,
pub generate_unused_types: bool,
}
Fields§
§rustfmt: bool
Whether or not rustfmt
is executed to format generated code.
std_feature: bool
If true, code generation should qualify any features that depend on
std
with cfg(feature = "std")
.
skip: Vec<String>
Names of functions to skip generating bindings for.
anyhow_path: Option<String>
The optional path to the anyhow
crate to use.
This defaults to wit_bindgen_wrpc::anyhow
.
bitflags_path: Option<String>
The optional path to the bitflags crate to use.
This defaults to wit_bindgen_wrpc::bitflags
.
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
.
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: WithGeneration
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
.
type_section_suffix: Option<String>
Add the specified suffix to the name of the custome section containing the component type.
generate_unused_types: bool
Whether to generate unused structures, not generated by default (false)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)