Struct proto_pdk_api::ExecutableConfig
source · pub struct ExecutableConfig {
pub exe_path: Option<PathBuf>,
pub exe_link_path: Option<PathBuf>,
pub no_bin: bool,
pub no_shim: bool,
pub parent_exe_name: Option<String>,
pub shim_before_args: Option<StringOrVec>,
pub shim_after_args: Option<StringOrVec>,
pub shim_env_vars: Option<FxHashMap<String, String>>,
}
Expand description
Configuration for generated shim and symlinked binary files.
Fields§
§exe_path: Option<PathBuf>
The file to execute, relative from the tool directory. Does not support virtual paths.
The following scenarios are powered by this field:
- Is the primary executable.
- For primary and secondary bins, the source file to be symlinked, and the extension to use for the symlink file itself.
- For primary shim, this field is ignored.
- For secondary shims, the file to execute.
exe_link_path: Option<PathBuf>
The executable path to use for symlinking binaries instead of exe_path
.
This should only be used when exe_path
is a non-standard executable.
no_bin: bool
Do not symlink a binary in ~/.proto/bin
.
no_shim: bool
Do not generate a shim in ~/.proto/shims
.
parent_exe_name: Option<String>
The parent executable name required to execute the local executable path.
shim_before_args: Option<StringOrVec>
Custom args to prepend to user-provided args within the generated shim.
shim_after_args: Option<StringOrVec>
Custom args to append to user-provided args within the generated shim.
shim_env_vars: Option<FxHashMap<String, String>>
Custom environment variables to set when executing the shim.
Implementations§
Trait Implementations§
source§impl Clone for ExecutableConfig
impl Clone for ExecutableConfig
source§fn clone(&self) -> ExecutableConfig
fn clone(&self) -> ExecutableConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecutableConfig
impl Debug for ExecutableConfig
source§impl Default for ExecutableConfig
impl Default for ExecutableConfig
source§fn default() -> ExecutableConfig
fn default() -> ExecutableConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ExecutableConfigwhere
ExecutableConfig: Default,
impl<'de> Deserialize<'de> for ExecutableConfigwhere
ExecutableConfig: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ExecutableConfig
impl PartialEq for ExecutableConfig
source§fn eq(&self, other: &ExecutableConfig) -> bool
fn eq(&self, other: &ExecutableConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecutableConfig
impl Serialize for ExecutableConfig
impl StructuralPartialEq for ExecutableConfig
Auto Trait Implementations§
impl Freeze for ExecutableConfig
impl RefUnwindSafe for ExecutableConfig
impl Send for ExecutableConfig
impl Sync for ExecutableConfig
impl Unpin for ExecutableConfig
impl UnwindSafe for ExecutableConfig
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
Mutably borrows from an owned value. Read more