flmodules/
lib.rs

1use bitflags::bitflags;
2use serde::{Deserialize, Serialize};
3bitflags! {
4    #[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Hash)]
5    pub struct Modules: u32 {
6        const STAT = 0x1;
7        const RAND = 0x2;
8        const GOSSIP = 0x4;
9        // This doesn't exist anymore, but must be kept so things can
10        // be deserialized.
11        const PING = 0x8;
12        const WEBPROXY = 0x10;
13        const WEBPROXY_REQUESTS = 0x20;
14        const DHT_ROUTER = 0x40;
15        const DHT_STORAGE = 0x80;
16    }
17}
18
19impl Modules {
20    pub fn stable() -> Modules {
21        Modules::all() - Modules::PING
22    }
23}
24
25pub mod dht_router;
26pub mod dht_storage;
27pub mod flo;
28pub mod gossip_events;
29pub mod network;
30pub mod nodeconfig;
31pub mod random_connections;
32pub mod router;
33pub mod template;
34pub mod timer;
35pub mod web_proxy;
36
37pub mod testing;