Rename demo to example
This commit is contained in:
parent
ff5256eadd
commit
4561cc66f9
23 changed files with 14 additions and 14 deletions
|
@ -26,7 +26,7 @@ caretta-sync-macros = { path="macros", optional = true}
|
||||||
caretta-sync-core = {workspace = true, features = ["test"]}
|
caretta-sync-core = {workspace = true, features = ["test"]}
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [ ".", "core", "macros", "cli", "mobile", "examples/demo/*" , "bevy"]
|
members = [ ".", "core", "macros", "cli", "mobile", "examples/*" , "bevy"]
|
||||||
resolver = "3"
|
resolver = "3"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "caretta-sync-demo-core"
|
name = "caretta-sync-example-core"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
description.workspace = true
|
description.workspace = true
|
||||||
|
@ -8,7 +8,7 @@ repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy.workspace = true
|
bevy.workspace = true
|
||||||
caretta-sync = { path = "../../..", features = ["bevy"] }
|
caretta-sync = { path = "../..", features = ["bevy"] }
|
||||||
libp2p.workspace = true
|
libp2p.workspace = true
|
||||||
tokio.workspace = true
|
tokio.workspace = true
|
||||||
tokio-stream = { version = "0.1.17", features = ["net"] }
|
tokio-stream = { version = "0.1.17", features = ["net"] }
|
1
examples/core/src/global.rs
Normal file
1
examples/core/src/global.rs
Normal file
|
@ -0,0 +1 @@
|
||||||
|
pub const APP_NAME: &str = "caretta_sync_example";
|
|
@ -1 +0,0 @@
|
||||||
pub const APP_NAME: &str = "caretta_sync_demo";
|
|
|
@ -1,3 +0,0 @@
|
||||||
fn main() {
|
|
||||||
dioxus::launch(caretta_sync_examples_core::ui::plain::App);
|
|
||||||
}
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "caretta-sync-demo-desktop"
|
name = "caretta-sync-example-desktop"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
description.workspace = true
|
description.workspace = true
|
||||||
|
@ -10,7 +10,7 @@ repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap.workspace = true
|
clap.workspace = true
|
||||||
caretta-sync = { path = "../../..", features = ["cli", "bevy", "test"] }
|
caretta-sync = { path = "../..", features = ["cli", "bevy", "test"] }
|
||||||
caretta-sync-demo-core.path = "../core"
|
caretta-sync-example-core.path = "../core"
|
||||||
libp2p.workspace = true
|
libp2p.workspace = true
|
||||||
tokio.workspace = true
|
tokio.workspace = true
|
|
@ -1,4 +1,4 @@
|
||||||
use caretta_sync_demo_core::{gui::Gui, server::Server};
|
use caretta_sync_example_core::{gui::Gui, server::Server};
|
||||||
use clap::{Parser, Subcommand};
|
use clap::{Parser, Subcommand};
|
||||||
use caretta_sync::{cli::*, config::Config, data::migration::DataMigrator, global::{CONFIG, DATABASE_CONNECTIONS}, utils::Runnable};
|
use caretta_sync::{cli::*, config::Config, data::migration::DataMigrator, global::{CONFIG, DATABASE_CONNECTIONS}, utils::Runnable};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
use caretta_sync::utils::Runnable;
|
use caretta_sync::utils::Runnable;
|
||||||
use caretta_sync_demo_core::global::APP_NAME;
|
use caretta_sync_example_core::global::APP_NAME;
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
use crate::cli::Cli;
|
use crate::cli::Cli;
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "caretta-sync-demo-mobile"
|
name = "caretta-sync-example-mobile"
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
description.workspace = true
|
description.workspace = true
|
||||||
|
@ -7,4 +7,4 @@ license.workspace = true
|
||||||
repository.workspace = true
|
repository.workspace = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
caretta-sync-demo-core.path = "../core"
|
caretta-sync-example-core.path = "../core"
|
3
examples/mobile/src/main.rs
Normal file
3
examples/mobile/src/main.rs
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
dioxus::launch(caretta_sync_example_core::ui::plain::App);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue