example_app.rs 996 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //! Example App
  2. //! --------------
  3. //!
  4. //! This example shows how to use the cross-platform abilities of dioxus to generate everything a dioxus app might need.
  5. //! All of your apps will look like this.
  6. //!
  7. //! cargo run --features dioxus/static
  8. fn main() {
  9. // DioxusApp::new(launch)
  10. }
  11. mod launches {
  12. #[cfg(feature = "wasm")]
  13. fn launch() {
  14. // launch the wasm_rednerer
  15. }
  16. #[cfg(feature = "static")]
  17. fn launch() {
  18. // render the tree to text
  19. }
  20. // #[cfg(features = "server")]
  21. // fn launch() {
  22. // // launch the app
  23. // }
  24. // #[cfg(features = "liveview")]
  25. // fn launch() {
  26. // // launch the app
  27. // }
  28. // #[cfg(features = "desktop")]
  29. // fn launch() {
  30. // // launch the app
  31. // }
  32. // #[cfg(features = "android")]
  33. // fn launch() {
  34. // // launch a simulator in dev mode
  35. // }
  36. // #[cfg(features = "ios")]
  37. // fn launch() {
  38. // // launch a simulator in dev mode
  39. // }
  40. }