forked from lavina/lavina
1
0
Fork 0

Compare commits

...

3 Commits

Author SHA1 Message Date
Nikita Vilunov 572a0b7b6a Merge branch 'main' into fix-xmpp-messages 2023-10-01 23:15:03 +00:00
Nikita Vilunov 8047a97baa remove /test/ 2023-10-01 18:16:11 +02:00
Nikita Vilunov 47195f5eee add crates/README.md 2023-10-01 18:15:37 +02:00
4 changed files with 30 additions and 12 deletions

30
crates/README.md Normal file
View File

@ -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.

1
test/.gitignore vendored
View File

@ -1 +0,0 @@
*.log

View File

@ -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');

View File

@ -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