summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
blob: e400619ceddae79f71906afaf04c0dd78188461d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//! Shared library for zagan-bet: exposes client/server storage layers and the
//! TOFU trust module to integration tests in `tests/`.

pub mod tofu;

#[path = "bin/client/database.rs"]
pub mod client_database;

#[path = "bin/server/database.rs"]
pub mod server_database;

// Server game logic — re-exported under `crate::games::traits` so that
// `use crate::games::traits::*` inside slots.rs resolves correctly whether
// the file is compiled as part of the lib or the server binary.
#[path = "bin/server/games/traits.rs"]
pub mod server_game_traits;

pub mod games {
    pub mod traits {
        pub use crate::server_game_traits::*;
    }
}

#[path = "bin/server/games/slots.rs"]
pub mod server_slots;