Use Manganis Linker System (#2561)

* feat: new manganis linker

* revision: fmt, clippy, cleanup

* revision: link subcommand

* fix: async runtime

* revision: remove working dir arg

* revision: switch dep source

* fix: matrix, playwright

* fix: fullstack manganis
This commit is contained in:
Miles Murgaw authored and GitHub committed 2024-07-02 21:36:44 -07:00
1 parent 90c46afd12
commit 2ef406982e
15 files changed
+330 -170

No files matched your search

+7 -11
View File
@@ -10,8 +10,7 @@ use Commands::*;
const LOG_ENV: &str = "DIOXUS_LOG";
#[tokio::main]
async fn main() -> anyhow::Result<()> {
fn main() -> anyhow::Result<()> {
let args = Cli::parse();
// If {LOG_ENV} is set, default to env, otherwise filter to cli
@@ -40,19 +39,17 @@ async fn main() -> anyhow::Result<()> {
.context(error_wrapper("Configuring new project failed")),
#[cfg(feature = "plugin")]
Plugin(opts) => opts
.plugin()
.await
.context(error_wrapper("Error with plugin")),
Plugin(opts) => opts.plugin().context(error_wrapper("Error with plugin")),
Autoformat(opts) => opts
.autoformat()
.context(error_wrapper("Error autoformatting RSX")),
Check(opts) => opts
.check()
.await
.context(error_wrapper("Error checking RSX")),
Check(opts) => opts.check().context(error_wrapper("Error checking RSX")),
Link(opts) => opts
.link()
.context(error_wrapper("Error with linker passthrough")),
action => {
let bin = get_bin(args.bin)?;
@@ -81,7 +78,6 @@ async fn main() -> anyhow::Result<()> {
Serve(opts) => opts
.serve(Some(bin.clone()))
.await
.context(error_wrapper("Serving project failed")),
Bundle(opts) => opts