-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Overhaul the project structure with new design based on git as backend.
- Loading branch information
Vincent Roy
committed
Aug 19, 2024
1 parent
ff92b8f
commit 1b9b1b0
Showing
60 changed files
with
151 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "gawires-central" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[lib] | ||
name = "gwclib" | ||
path = "src/lib.rs" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
pub fn add(left: u64, right: u64) -> u64 { | ||
left + right | ||
} | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
|
||
#[test] | ||
fn it_works() { | ||
let result = add(2, 2); | ||
assert_eq!(result, 4); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[package] | ||
name = "gawires-core" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
notify = "6.1.1" | ||
libloading = "0.8.5" | ||
interprocess = "2.2.1" | ||
dirs = "5.0.1" | ||
petgraph = "0.6.5" | ||
blake2 = "0.10.6" | ||
|
||
# Specific dependencies for the gawires kernel | ||
gawires-diff = { git = "https://github.com/metakernel/gawires-diff"} | ||
gawires-patch = { git = "https://github.com/metakernel/gawires-diff"} | ||
git2 = "0.19.0" | ||
|
||
[dependencies.uuid] | ||
version = "1.10.0" | ||
features = [ | ||
"v4", # Lets you generate random UUIDs | ||
"fast-rng", # Use a faster (but still sufficiently random) RNG | ||
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs | ||
] | ||
|
||
|
||
[target.'cfg(unix)'.dependencies] | ||
# Used for the filesystem in linux and macos | ||
fuser = "0.14.0" | ||
|
||
[target.'cfg(windows)'.dependencies] | ||
# Used for the filesystem in windows | ||
dokan = "0.3.1+dokan206" | ||
windows = "0.58.0" | ||
|
||
[target.'cfg(windows)'.build-dependencies] | ||
windows = "0.58.0" |
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.
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.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
pub mod repository; | ||
pub mod workspace; | ||
pub mod workpod; | ||
pub mod user; | ||
pub mod arenatree; | ||
pub mod config; | ||
pub mod tree; | ||
pub mod asset; | ||
pub mod extension; | ||
pub mod filesystem; | ||
pub mod process; | ||
pub mod wire; | ||
pub mod diff; | ||
pub mod wire; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// In Gawires a Workpod is a slice of a project that can be worked on independently, each Workpod can act on a subset of the project assets. | ||
/// From a local perspective a gawires Workpod is a folder that contains assets and a .gaw folder that contains the Workpod configuration and metadata. | ||
|
||
use crate::repository::{Repository, Remote}; | ||
|
||
#[derive(Debug, Clone, PartialEq, Eq)] | ||
pub struct Workpod<'a> { | ||
pub name: String, | ||
pub owning_project: Repository<'a>, | ||
pub workpod_type: WorkpodType, | ||
} | ||
|
||
#[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
pub enum WorkpodType { | ||
Central, | ||
Clone, | ||
} | ||
|
||
pub enum WorkpodError { | ||
WorkpodNotFound, | ||
} | ||
|
||
pub enum WorkpodState { | ||
Connected(Remote), | ||
Offline, | ||
} |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
use paw::Args; | ||
pub use clap::Parser; | ||
|
||
/// The main entry point for Gawires. | ||
#[paw::main] | ||
fn main(_args: Args) { | ||
//println!("{:#?}", opt); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.