mirror of
https://github.com/salsa-rs/salsa.git
synced 2024-11-25 04:27:52 +00:00
11 lines
274 B
Rust
11 lines
274 B
Rust
#[salsa::query_group(MyStruct)]
|
|
trait MyDatabase: salsa::Database {
|
|
#[salsa::invoke(another_module::another_name)]
|
|
fn my_query(&self, key: ()) -> ();
|
|
}
|
|
|
|
mod another_module {
|
|
pub(crate) fn another_name(_: &impl crate::MyDatabase, (): ()) -> () {}
|
|
}
|
|
|
|
fn main() {}
|