summaryrefslogtreecommitdiff
path: root/systems
diff options
context:
space:
mode:
Diffstat (limited to 'systems')
-rw-r--r--systems/_asset/Cargo.toml (renamed from systems/asset/Cargo.toml)0
-rw-r--r--systems/_asset/macros/Cargo.toml (renamed from systems/asset/macros/Cargo.toml)0
-rw-r--r--systems/_asset/macros/src/lib.rs (renamed from systems/asset/macros/src/lib.rs)0
-rw-r--r--systems/_asset/src/asset.rs (renamed from systems/asset/src/asset.rs)0
-rw-r--r--systems/_asset/src/error.rs (renamed from systems/asset/src/error.rs)0
-rw-r--r--systems/_asset/src/lib.rs (renamed from systems/asset/src/lib.rs)0
-rw-r--r--systems/_asset/src/rw.rs (renamed from systems/asset/src/rw.rs)0
-rw-r--r--systems/_asset/test/Cargo.toml (renamed from systems/asset/test/Cargo.toml)0
-rw-r--r--systems/_asset/test/src/lib.rs (renamed from systems/asset/test/src/lib.rs)0
-rw-r--r--systems/_constants/src/lib.rs28
-rw-r--r--systems/sheet/Cargo.toml6
-rw-r--r--systems/sheet/src/lib.rs1
12 files changed, 26 insertions, 9 deletions
diff --git a/systems/asset/Cargo.toml b/systems/_asset/Cargo.toml
index 5e86bbd..5e86bbd 100644
--- a/systems/asset/Cargo.toml
+++ b/systems/_asset/Cargo.toml
diff --git a/systems/asset/macros/Cargo.toml b/systems/_asset/macros/Cargo.toml
index d4142f2..d4142f2 100644
--- a/systems/asset/macros/Cargo.toml
+++ b/systems/_asset/macros/Cargo.toml
diff --git a/systems/asset/macros/src/lib.rs b/systems/_asset/macros/src/lib.rs
index 1535af0..1535af0 100644
--- a/systems/asset/macros/src/lib.rs
+++ b/systems/_asset/macros/src/lib.rs
diff --git a/systems/asset/src/asset.rs b/systems/_asset/src/asset.rs
index a3b1c6a..a3b1c6a 100644
--- a/systems/asset/src/asset.rs
+++ b/systems/_asset/src/asset.rs
diff --git a/systems/asset/src/error.rs b/systems/_asset/src/error.rs
index 5dc529f..5dc529f 100644
--- a/systems/asset/src/error.rs
+++ b/systems/_asset/src/error.rs
diff --git a/systems/asset/src/lib.rs b/systems/_asset/src/lib.rs
index ac4317f..ac4317f 100644
--- a/systems/asset/src/lib.rs
+++ b/systems/_asset/src/lib.rs
diff --git a/systems/asset/src/rw.rs b/systems/_asset/src/rw.rs
index 784d44d..784d44d 100644
--- a/systems/asset/src/rw.rs
+++ b/systems/_asset/src/rw.rs
diff --git a/systems/asset/test/Cargo.toml b/systems/_asset/test/Cargo.toml
index 3ac0779..3ac0779 100644
--- a/systems/asset/test/Cargo.toml
+++ b/systems/_asset/test/Cargo.toml
diff --git a/systems/asset/test/src/lib.rs b/systems/_asset/test/src/lib.rs
index 4aad777..4aad777 100644
--- a/systems/asset/test/src/lib.rs
+++ b/systems/_asset/test/src/lib.rs
diff --git a/systems/_constants/src/lib.rs b/systems/_constants/src/lib.rs
index 8be9cd8..03ca845 100644
--- a/systems/_constants/src/lib.rs
+++ b/systems/_constants/src/lib.rs
@@ -15,15 +15,29 @@ pub mod server {
#[constants_macros::constants("server_file")]
pub mod files {
c! { CONFIG = "./config.toml" }
+
+ // Storage location for keys and passwords
+ c! { KEY = "./auth/key/{member_name}.pem" }
+ c! { PASSWORD = "./auth/pswd/{member_name}.pswd" }
+
+ // Only Key holders are allowed to initiate Join Request
c! { JOIN_REQUEST_KEY = "./.temp/join_requests/{member_name}.pem" }
- c! { KEY = "./key/{member_name}.pem" }
+
+ // User metadata is stored here
+ // Typically includes:
+ // - Nickname
+ // - Email
+ // - Other information
+ //
+ // Facilitates queries by other members
c! { MEMBER_METADATA = "./meta/{member_name}.toml" }
}
/// Directory path constants
#[constants_macros::constants("server_dir")]
pub mod dirs {
- c! { KEYS = "./key/" }
+ c! { KEYS = "./auth/key/" }
+ c! { PASSWORDS = "./auth/pswd/" }
c! { JOIN_REQUEST_KEYS = "./.temp/join_requests/" }
c! { MEMBER_METADATAS = "./meta/" }
c! { VAULTS = "./v/" }
@@ -47,11 +61,8 @@ pub mod vault {
// Member sheet backup, only used to temporarily store a member's local workspace file structure, fully controlled by the corresponding member
c! { MEMBER_SHEET_BACKUP = "./_member/{member_name}/backups/{sheet_name}.sheet" }
- // Share sent to a reference sheet, selectively merged into that reference sheet by a Host
- c! { SHARE_TO_REF = "./req/{ref_sheet_name}/{share_id}.sheet" }
-
- // Share sent to a specific member, fully controlled by that member, who can optionally merge it into any of their own sheets
- c! { SHARE_TO_MEMBER = "./_member/{member_name}/shares/{share_id}.sheet" }
+ // ### Rules ###
+ c! { IGNORE_RULE_SCRIPT = "./rules/ignore/{script_name}.lua" }
// ### Storages ###
c! { CHANGE_FILE = "./changes/CURRENT" }
@@ -74,10 +85,9 @@ pub mod vault {
#[constants_macros::constants("vault_dir")]
pub mod dirs {
c! { REFSHEETS = "./ref/" }
- c! { SHARES_TO_REF = "./req/{ref_sheet_name}/" }
c! { MEMBER = "./_member/{member_name}/" }
c! { MEMBER_SHEET_BACKUPS = "./_member/{member_name}/backups/" }
- c! { MEMBER_SHARES = "./_member/{member_name}/shares/" }
+ c! { IGNORE_RULES = "./rules/ignore/" }
c! { CHANGES = "./changes/" }
}
}
diff --git a/systems/sheet/Cargo.toml b/systems/sheet/Cargo.toml
new file mode 100644
index 0000000..89c439b
--- /dev/null
+++ b/systems/sheet/Cargo.toml
@@ -0,0 +1,6 @@
+[package]
+name = "sheet"
+edition = "2024"
+version.workspace = true
+
+[dependencies]
diff --git a/systems/sheet/src/lib.rs b/systems/sheet/src/lib.rs
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/systems/sheet/src/lib.rs
@@ -0,0 +1 @@
+