Skip to content

Commit

Permalink
Re-structure project as cargo workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Dec 12, 2024
1 parent 059e876 commit a0d2694
Show file tree
Hide file tree
Showing 32 changed files with 91 additions and 77 deletions.
95 changes: 47 additions & 48 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 4 additions & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
[package]
name = "aardvark"
version = "0.1.0"
edition = "2021"
[workspace]

[dependencies]
anyhow = "1.0.94"
async-trait = "0.1.83"
automerge = "0.5.12"
ciborium = "0.2.2"
gettext-rs = { version = "0.7", features = ["gettext-system"] }
gtk = { version = "0.9", package = "gtk4", features = ["gnome_47"] }
p2panda-core = "0.1.0"
p2panda-discovery = { version = "0.1.0", features = ["mdns"] }
p2panda-net = "0.1.0"
p2panda-store = "0.1.0"
p2panda-stream = "0.1.0"
p2panda-sync = { version = "0.1.0", features = ["log-sync"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.128"
tokio = { version = "1.42.0", features = ["full"] }
tokio-stream = "0.1.17"

[dependencies.adw]
package = "libadwaita"
version = "0.7"
features = ["v1_6"]
members = [
"aardvark-app", "aardvark-node",
]
18 changes: 18 additions & 0 deletions aardvark-app/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "aardvark"
version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = "1.0.94"
automerge = "0.5.12"
gettext-rs = { version = "0.7", features = ["gettext-system"] }
gtk = { version = "0.9", package = "gtk4", features = ["gnome_47"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = "1.0.128"
aardvark-node = { path = "../aardvark-node" }

[dependencies.adw]
package = "libadwaita"
version = "0.7"
features = ["v1_6"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/application.rs → aardvark-app/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use std::cell::{OnceCell, RefCell};

use aardvark_node::network;
use adw::prelude::*;
use adw::subclass::prelude::*;
use gettextrs::gettext;
Expand All @@ -29,7 +30,6 @@ use tokio::sync::{mpsc, oneshot};
use crate::config::VERSION;
use crate::document::Document;
use crate::glib::closure_local;
use crate::network;
use crate::{AardvarkTextBuffer, AardvarkWindow};

mod imp {
Expand Down
1 change: 1 addition & 0 deletions src/config.rs → aardvark-app/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub static VERSION: &str = "0.1.0";
pub static GETTEXT_PACKAGE: &str = "aardvark";
pub static LOCALEDIR: &str = "/app/share/locale";
pub static PKGDATADIR: &str = "/app/share/aardvark";
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions src/main.rs → aardvark-app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
mod application;
mod config;
mod document;
mod network;
mod operation;
mod textbuffer;
mod window;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions aardvark-node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[package]
name = "aardvark-node"
version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = "1.0.94"
async-trait = "0.1.83"
ciborium = "0.2.2"
p2panda-core = "0.1.0"
p2panda-discovery = { version = "0.1.0", features = ["mdns"] }
p2panda-net = "0.1.0"
p2panda-store = "0.1.0"
p2panda-stream = "0.1.0"
p2panda-sync = { version = "0.1.0", features = ["log-sync"] }
serde = { version = "1.0.215", features = ["derive"] }
tokio = { version = "1.42.0", features = ["full"] }
tokio-stream = "0.1.17"
2 changes: 2 additions & 0 deletions aardvark-node/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod network;
pub mod operation;
File renamed without changes.
File renamed without changes.

0 comments on commit a0d2694

Please sign in to comment.