From 47195f5eee7c7a49bcb4ebfe5f1b13d4e3e65d49 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Sun, 1 Oct 2023 18:15:37 +0200 Subject: [PATCH 1/2] add crates/README.md --- crates/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 crates/README.md diff --git a/crates/README.md b/crates/README.md new file mode 100644 index 0000000..04909f2 --- /dev/null +++ b/crates/README.md @@ -0,0 +1,30 @@ +## Dependency diagram of the project + +```mermaid +graph TD; + lavina-->mgmt-api; + lavina-->projection-irc; + lavina-->projection-xmpp; + lavina-->lavina-core; + + projection-irc-->proto-irc; + projection-irc-->lavina-core; + + projection-xmpp-->proto-xmpp; + projection-xmpp-->lavina-core; + + sim-irc-->proto-irc; + sim-irc-->mgmt-api; + + sim-xmpp-->proto-xmpp; + sim-xmpp-->mgmt-api; + + workspace-->lavina; + workspace-->sim-irc; + workspace-->sim-xmpp; +``` + +A few rules: +- Only projections should be direct deps of `lavina`, there is no need to depend on `proto-*` crates. +- On the other hand, projections should not be dependencies of `sim-*` crates. +- `lavina-core` does not depend on protocol-specific crates. From 8047a97baa912efec2c8e4b961a7164f3a10587f Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Sun, 1 Oct 2023 18:16:11 +0200 Subject: [PATCH 2/2] remove /test/ --- test/.gitignore | 1 - test/init_state.sql | 6 ------ test/run.sh | 5 ----- 3 files changed, 12 deletions(-) delete mode 100644 test/.gitignore delete mode 100644 test/init_state.sql delete mode 100755 test/run.sh diff --git a/test/.gitignore b/test/.gitignore deleted file mode 100644 index 397b4a7..0000000 --- a/test/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.log diff --git a/test/init_state.sql b/test/init_state.sql deleted file mode 100644 index 8555332..0000000 --- a/test/init_state.sql +++ /dev/null @@ -1,6 +0,0 @@ -insert into users(name) -values ('kek'), ('shrek') -returning id; - -insert into challenges_plain_password(user_id, password) -values (1, 'parolchik1'), (2, 'qwerty123'); diff --git a/test/run.sh b/test/run.sh deleted file mode 100755 index f1162e2..0000000 --- a/test/run.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -cargo build -./target/debug/lavina 1>test/lavina.stdout.log 2>test/lavina.stderr.log & -cargo test -kill %1