mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-26 14:46:57 +00:00
93c30a953d
Switch to a procedural implementation of the `query_group!` macro, residing in the `components/salsa_macros` subcrate. Allow the user to override the invoked function via `salsa::invoke(...)` and the name of the generated query type via `salsa::query_type(...)`. In all tests, replace the `salsa::query_group! { ... }` invocations with the new attribute-style `#[salsa::query_group]` macro, and change them to the new naming scheme for query types (`...Query`). Update README, examples, and documentation.
18 lines
421 B
TOML
18 lines
421 B
TOML
[package]
|
|
name = "salsa_macros"
|
|
version = "0.9.1"
|
|
authors = ["Niko Matsakis <niko@alum.mit.edu>"]
|
|
edition = "2018"
|
|
license = "Apache-2.0 OR MIT"
|
|
repository = "https://github.com/salsa-rs/salsa"
|
|
description = "Procedural macros for the salsa crate"
|
|
readme = "README.md"
|
|
|
|
[lib]
|
|
proc-macro = true
|
|
|
|
[dependencies]
|
|
heck = "0.3"
|
|
proc-macro2 = "0.4"
|
|
quote = "0.6"
|
|
syn = { version = "0.15", features = ["full", "extra-traits"] }
|