CLI: add --renderer argument (#4320)
* Add --renderer argument to the CLI Signed-off-by: Nico Burns <nico@nicoburns.com> * Make `--platform native` work Signed-off-by: Nico Burns <nico@nicoburns.com> * Emit `krates` error when cargo metadata fails * Reinstate default "desktop" feature for examples * Remove commented 'no platform specified' error Signed-off-by: Nico Burns <nico@nicoburns.com> * use the target tripple and bundle format as the source of truth for the build * resolve renderer and bundle format * add shorthand flags * add headings to the help for shorthands * resolve the renderer from the target triple if it isn't passed * make value after --fullstack optional * convert desktop -> mobile when targeting mobile webview * use the new shorthand flags in the playwright tests * fix clippy * merge fix * cleanup merge conflicts * fix clippy * remove nit * restore platform as a legacy argument * improve help message * vendor openssl on native, pin server_fn * print build errors as warnings * add --desktop arg compat * adjust cli headings * prefer self.is_wasm_or_wasi() --------- Signed-off-by: Nico Burns <nico@nicoburns.com> Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com> Co-authored-by: Evan Almloff <evanalmloff@gmail.com>
This commit is contained in:
28 files changed
+998
-549
No files matched your search
@@ -775,7 +775,7 @@ pub fn create_undefined_symbol_stub(
|
||||
let mut defined_symbols = HashSet::new();
|
||||
|
||||
for path in sorted {
|
||||
let bytes = std::fs::read(path).with_context(|| format!("failed to read {:?}", path))?;
|
||||
let bytes = std::fs::read(path).with_context(|| format!("failed to read {path:?}"))?;
|
||||
let file = File::parse(bytes.deref() as &[u8])?;
|
||||
for symbol in file.symbols() {
|
||||
if symbol.is_undefined() {
|
||||
@@ -853,7 +853,7 @@ pub fn create_undefined_symbol_stub(
|
||||
if aslr_reference < aslr_ref_address {
|
||||
return Err(PatchError::InvalidModule(
|
||||
format!(
|
||||
"ASLR reference is less than the main module's address - is there a `main`?. {:x} < {:x}", aslr_reference, aslr_ref_address )
|
||||
"ASLR reference is less than the main module's address - is there a `main`?. {aslr_reference:x} < {aslr_ref_address:x}" )
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user