mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-30 16:24:46 +00:00
9229b1a23a
The old name makes it sound like it contains the actual ingredients, but really it just contains the routes we use to find them at runtime.
14 lines
307 B
Rust
14 lines
307 B
Rust
use crate::{
|
|
storage::{HasJar, JarFromJars},
|
|
Database, DbWithJar,
|
|
};
|
|
|
|
use super::routes::Routes;
|
|
|
|
pub trait Jar<'db>: Sized {
|
|
type DynDb: ?Sized + HasJar<Self> + Database + 'db;
|
|
|
|
fn create_jar<DB>(routes: &mut Routes<DB>) -> Self
|
|
where
|
|
DB: JarFromJars<Self> + DbWithJar<Self>;
|
|
}
|