Rename demo to example

This commit is contained in:
fluo10 2025-08-26 07:56:42 +09:00
parent ff5256eadd
commit 4561cc66f9
23 changed files with 14 additions and 14 deletions

View file

@ -26,7 +26,7 @@ caretta-sync-macros = { path="macros", optional = true}
caretta-sync-core = {workspace = true, features = ["test"]}
[workspace]
members = [ ".", "core", "macros", "cli", "mobile", "examples/demo/*" , "bevy"]
members = [ ".", "core", "macros", "cli", "mobile", "examples/*" , "bevy"]
resolver = "3"
[workspace.package]

View file

@ -1,5 +1,5 @@
[package]
name = "caretta-sync-demo-core"
name = "caretta-sync-example-core"
edition.workspace = true
version.workspace = true
description.workspace = true
@ -8,7 +8,7 @@ repository.workspace = true
[dependencies]
bevy.workspace = true
caretta-sync = { path = "../../..", features = ["bevy"] }
caretta-sync = { path = "../..", features = ["bevy"] }
libp2p.workspace = true
tokio.workspace = true
tokio-stream = { version = "0.1.17", features = ["net"] }

View file

@ -0,0 +1 @@
pub const APP_NAME: &str = "caretta_sync_example";

View file

@ -1 +0,0 @@
pub const APP_NAME: &str = "caretta_sync_demo";

View file

@ -1,3 +0,0 @@
fn main() {
dioxus::launch(caretta_sync_examples_core::ui::plain::App);
}

View file

@ -1,5 +1,5 @@
[package]
name = "caretta-sync-demo-desktop"
name = "caretta-sync-example-desktop"
edition.workspace = true
version.workspace = true
description.workspace = true
@ -10,7 +10,7 @@ repository.workspace = true
[dependencies]
clap.workspace = true
caretta-sync = { path = "../../..", features = ["cli", "bevy", "test"] }
caretta-sync-demo-core.path = "../core"
caretta-sync = { path = "../..", features = ["cli", "bevy", "test"] }
caretta-sync-example-core.path = "../core"
libp2p.workspace = true
tokio.workspace = true

View file

@ -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 caretta_sync::{cli::*, config::Config, data::migration::DataMigrator, global::{CONFIG, DATABASE_CONNECTIONS}, utils::Runnable};

View file

@ -1,5 +1,5 @@
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 crate::cli::Cli;

View file

@ -1,5 +1,5 @@
[package]
name = "caretta-sync-demo-mobile"
name = "caretta-sync-example-mobile"
edition.workspace = true
version.workspace = true
description.workspace = true
@ -7,4 +7,4 @@ license.workspace = true
repository.workspace = true
[dependencies]
caretta-sync-demo-core.path = "../core"
caretta-sync-example-core.path = "../core"

View file

@ -0,0 +1,3 @@
fn main() {
dioxus::launch(caretta_sync_example_core::ui::plain::App);
}