Split repository into 3 crates
This commit is contained in:
parent
d8f1733eb3
commit
31dc4fd4a3
35 changed files with 4011 additions and 498 deletions
990
Cargo.lock
generated
990
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
33
Cargo.toml
33
Cargo.toml
|
@ -1,28 +1,7 @@
|
||||||
[package]
|
[workspace]
|
||||||
name = "ubisync"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
|
|
||||||
[dependencies]
|
members = [
|
||||||
anyhow = "1.0.71"
|
"ubisync",
|
||||||
async-trait = "0.1.73"
|
"ubisync-lib",
|
||||||
axum = { version = "0.7.2", features = [ "macros" ] }
|
"ubisync-sdk",
|
||||||
chrono = "0.4.31"
|
]
|
||||||
itertools = "0.12.0"
|
|
||||||
jsonwebtoken = "9.2.0"
|
|
||||||
serde = { version = "1.0.166", features = [ "derive" ] }
|
|
||||||
serde_json = "1.0.99"
|
|
||||||
serde_with = "3.3.0"
|
|
||||||
serial_test = "2.0.0"
|
|
||||||
tokio = { version = "1.32.0", features = ["full"] }
|
|
||||||
tracing = "0.1.37"
|
|
||||||
tracing-subscriber = "0.3.17"
|
|
||||||
uuid = "1.4.1"
|
|
||||||
|
|
||||||
i2p = { path = "../i2p-rs" }
|
|
||||||
|
|
||||||
cozo = { version = "0.7.5", features = [ "storage-rocksdb", "requests", "graph-algo" ] }
|
|
||||||
|
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
reqwest = { version = "0.11.20", features = [ "json" ] }
|
|
|
@ -12,4 +12,10 @@ This repo provides arbitrary data synchronization via I2P.
|
||||||
- recognize to-dos or dates in any data and expose them
|
- recognize to-dos or dates in any data and expose them
|
||||||
- expose all data linked to any given time interval (e.g. files changed and messages sent on a given day)
|
- expose all data linked to any given time interval (e.g. files changed and messages sent on a given day)
|
||||||
- ...
|
- ...
|
||||||
- Allow easy-to-set-up passive nodes which clone all data of the active nodes, essentially replacing data sync servers and serving as sovereign backup solution
|
- Allow easy-to-set-up passive nodes which clone all data of the active nodes, essentially replacing data sync servers and serving as sovereign backup solution
|
||||||
|
|
||||||
|
# Structure of this repository
|
||||||
|
This repository contains all crates necessary for ubisync:
|
||||||
|
- `ubisync` builds the binary of a ubisync node which can be run by users to take part in the ubisync network
|
||||||
|
- `ubisync-lib` builds a library with all common type definitions, utilities etc.
|
||||||
|
- `ubisync-sdk` builds a library for app developers, including a wrapper for the API
|
3427
ubisync-lib/Cargo.lock
generated
Normal file
3427
ubisync-lib/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
28
ubisync-lib/Cargo.toml
Normal file
28
ubisync-lib/Cargo.toml
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
[package]
|
||||||
|
name = "ubisync-lib"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
anyhow = "1.0.71"
|
||||||
|
async-trait = "0.1.73"
|
||||||
|
axum = { version = "0.7.2", features = [ "macros" ] }
|
||||||
|
chrono = "0.4.31"
|
||||||
|
itertools = "0.12.0"
|
||||||
|
jsonwebtoken = "9.2.0"
|
||||||
|
serde = { version = "1.0.166", features = [ "derive" ] }
|
||||||
|
serde_json = "1.0.99"
|
||||||
|
serde_with = "3.3.0"
|
||||||
|
serial_test = "2.0.0"
|
||||||
|
tokio = { version = "1.32.0", features = ["full"] }
|
||||||
|
tracing = "0.1.37"
|
||||||
|
tracing-subscriber = "0.3.17"
|
||||||
|
uuid = "1.4.1"
|
||||||
|
|
||||||
|
i2p = { path = "../../i2p-rs" }
|
||||||
|
|
||||||
|
cozo = { version = "0.7.5", features = [ "storage-rocksdb", "requests", "graph-algo" ] }
|
||||||
|
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
reqwest = { version = "0.11.20", features = [ "json" ] }
|
|
@ -1,7 +1,7 @@
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use tracing::{debug, Level};
|
use tracing::{debug, Level};
|
||||||
use ubisync::{
|
use ubisync_lib::{
|
||||||
api::v0::app::AppDescription,
|
api::v0::app::AppDescription,
|
||||||
config::Config,
|
config::Config,
|
||||||
state::types::{Element, ElementContent, ElementId},
|
state::types::{Element, ElementContent, ElementId},
|
8
ubisync-sdk/Cargo.toml
Normal file
8
ubisync-sdk/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[package]
|
||||||
|
name = "ubisync-sdk"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
0
ubisync-sdk/src/lib.rs
Normal file
0
ubisync-sdk/src/lib.rs
Normal file
8
ubisync/Cargo.toml
Normal file
8
ubisync/Cargo.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
[package]
|
||||||
|
name = "ubisync"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
|
||||||
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[dependencies]
|
5
ubisync/src/main.rs
Normal file
5
ubisync/src/main.rs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
|
pub fn main() {
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue