Feat: homepage update from rocket
This commit is contained in:
1 parent
f671ae5c8b
commit
a61503f6cc
27 files changed
+2344
-5
No files matched your search
@@ -41,6 +41,10 @@ path = "common.rs"
|
||||
# Examples are manually keyed in
|
||||
# ================================
|
||||
|
||||
[[example]]
|
||||
path = "example_app.rs"
|
||||
name = "example_app"
|
||||
|
||||
# [[example]]
|
||||
# path = "hello_web.rs"
|
||||
# name = "hello_web"
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
//! Example App
|
||||
//! --------------
|
||||
//!
|
||||
//! This example shows how to use the cross-platform abilities of dioxus to generate everything a dioxus app might need.
|
||||
//! All of your apps will look like this.
|
||||
//!
|
||||
//! cargo run --features dioxus/static
|
||||
|
||||
fn main() {
|
||||
// DioxusApp::new(launch)
|
||||
}
|
||||
|
||||
mod launches {
|
||||
#[cfg(feature = "wasm")]
|
||||
fn launch() {
|
||||
// launch the wasm_rednerer
|
||||
}
|
||||
|
||||
#[cfg(feature = "static")]
|
||||
fn launch() {
|
||||
// render the tree to text
|
||||
}
|
||||
|
||||
// #[cfg(features = "server")]
|
||||
// fn launch() {
|
||||
// // launch the app
|
||||
// }
|
||||
|
||||
// #[cfg(features = "liveview")]
|
||||
// fn launch() {
|
||||
// // launch the app
|
||||
// }
|
||||
|
||||
// #[cfg(features = "desktop")]
|
||||
// fn launch() {
|
||||
// // launch the app
|
||||
// }
|
||||
|
||||
// #[cfg(features = "android")]
|
||||
// fn launch() {
|
||||
// // launch a simulator in dev mode
|
||||
// }
|
||||
|
||||
// #[cfg(features = "ios")]
|
||||
// fn launch() {
|
||||
// // launch a simulator in dev mode
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user