Make dioxus-cli a binary - not a library (#2698)

This commit is contained in:
Evan Almloff 2024-07-25 03:09:57 +02:00 committed by GitHub
parent 942e701f02
commit a6e41e9d68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 25 deletions

View file

@ -1,24 +0,0 @@
#![doc = include_str!("../README.md")]
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
pub mod assets;
pub mod dx_build_info;
pub mod serve;
pub mod tools;
pub mod cli;
pub use cli::*;
pub mod error;
pub use error::*;
pub(crate) mod builder;
mod dioxus_crate;
pub use dioxus_crate::*;
mod settings;
pub(crate) use settings::*;
pub(crate) mod metadata;

View file

@ -1,9 +1,33 @@
#![doc = include_str!("../README.md")]
#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
pub mod assets;
pub mod dx_build_info;
pub mod serve;
pub mod tools;
pub mod cli;
pub use cli::*;
pub mod error;
pub use error::*;
pub(crate) mod builder;
mod dioxus_crate;
pub use dioxus_crate::*;
mod settings;
pub(crate) use settings::*;
pub(crate) mod metadata;
use std::env; use std::env;
use tracing_subscriber::{prelude::*, EnvFilter, Layer}; use tracing_subscriber::{prelude::*, EnvFilter, Layer};
use anyhow::Context; use anyhow::Context;
use clap::Parser; use clap::Parser;
use dioxus_cli::*;
use Commands::*; use Commands::*;