pub struct UpxConfig {
pub id: Option<String>,
pub ids: Option<Vec<String>>,
pub enabled: Option<StringOrBool>,
pub binary: String,
pub args: Vec<String>,
pub required: bool,
pub targets: Option<Vec<String>>,
pub compress: Option<String>,
pub lzma: Option<bool>,
pub brute: Option<bool>,
}Fields§
§id: Option<String>Unique identifier for this UPX config.
ids: Option<Vec<String>>Build IDs filter: only compress binaries from builds whose id is in this list.
enabled: Option<StringOrBool>Whether to compress binaries with UPX. Accepts a bool or a template string that evaluates to a bool.
binary: StringUPX executable path or name (default: “upx”).
args: Vec<String>Extra arguments passed to UPX (e.g., [“-9”, “–brute”]).
required: boolWhen true, fail the build if UPX is not found.
targets: Option<Vec<String>>Target triples to compress binaries for (empty means all targets).
compress: Option<String>UPX compression level string (e.g., “1”-“9”, “best”). Maps to --compress flag.
lzma: Option<bool>Use LZMA compression (–lzma flag).
brute: Option<bool>Use brute-force compression (–brute flag). Very slow but produces smallest output.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpxConfig
impl<'de> Deserialize<'de> for UpxConfig
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 JsonSchema for UpxConfig
impl JsonSchema for UpxConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for UpxConfig
impl RefUnwindSafe for UpxConfig
impl Send for UpxConfig
impl Sync for UpxConfig
impl Unpin for UpxConfig
impl UnsafeUnpin for UpxConfig
impl UnwindSafe for UpxConfig
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