foundry-rs 0.6.1

Configuration-driven REST backend library for Rust with PostgreSQL — define schemas, tables, and APIs in JSON, get a production-grade REST service.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    let pg = cfg!(feature = "postgres");
    let my = cfg!(feature = "mysql");
    let sl = cfg!(feature = "sqlite");
    let count = [pg, my, sl].iter().filter(|&&x| x).count();
    if count > 1 {
        panic!(
            "Only one database dialect feature may be enabled at a time. \
             Found multiple active: postgres={pg}, mysql={my}, sqlite={sl}. \
             Set default-features = false and enable exactly one.",
            pg = pg,
            my = my,
            sl = sl
        );
    }
}