mirror of https://github.com/rwf2/Rocket.git
16 lines
334 B
Rust
16 lines
334 B
Rust
#![feature(use_extern_macros)]
|
|
|
|
extern crate rocket;
|
|
extern crate rocket_contrib;
|
|
|
|
#[cfg(feature = "databases")]
|
|
mod databases_tests {
|
|
use rocket_contrib::databases::{database, diesel};
|
|
|
|
#[database("foo")]
|
|
struct TempStorage(diesel::SqliteConnection);
|
|
|
|
#[database("bar")]
|
|
struct PrimaryDb(diesel::PgConnection);
|
|
}
|