mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-23 21:20:05 +00:00
Merge pull request #112 from nikomatsakis/prep-for-release
Prep for release
This commit is contained in:
commit
2b051d53be
6 changed files with 10 additions and 6 deletions
|
@ -16,9 +16,11 @@ lock_api = "0.1.4"
|
|||
indexmap = "1.0.1"
|
||||
log = "0.4.5"
|
||||
smallvec = "0.6.5"
|
||||
salsa_macros = { version = "0.9", path = "components/salsa_macros" }
|
||||
salsa-macros = { version = "0.9", path = "components/salsa-macros" }
|
||||
|
||||
[dev-dependencies]
|
||||
diff = "0.1.0"
|
||||
env_logger = "0.5.13"
|
||||
rand = "0.5.5"
|
||||
|
||||
[workspace]
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "salsa_macros"
|
||||
name = "salsa-macros"
|
||||
version = "0.9.1"
|
||||
authors = ["Niko Matsakis <niko@alum.mit.edu>"]
|
||||
edition = "2018"
|
|
@ -34,13 +34,13 @@ use syn::{parse_macro_input, AttributeArgs, FnArg, Ident, ItemTrait, ReturnType,
|
|||
/// ```ignore
|
||||
/// #[salsa::query_group]
|
||||
/// trait TypeckDatabase {
|
||||
/// #[salsa::XXX] // see below for legal attributes
|
||||
/// #[salsa::input] // see below for other legal attributes
|
||||
/// fn my_query(&self, input: u32) -> u64;
|
||||
///
|
||||
/// /// Queries can have any number of inputs (including zero); if there
|
||||
/// /// is not exactly one input, then the key type will be
|
||||
/// /// a tuple of the input types, so in this case `(u32, f32)`.
|
||||
/// fn other_query(input1: u32, input2: f32) -> u64;
|
||||
/// fn other_query(&self, input1: u32, input2: f32) -> u64;
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
|
@ -100,7 +100,8 @@ use syn::{parse_macro_input, AttributeArgs, FnArg, Ident, ItemTrait, ReturnType,
|
|||
/// Some attributes are mutually exclusive. For example, it is an error to add
|
||||
/// multiple storage specifiers:
|
||||
///
|
||||
/// ```ignore
|
||||
/// ```compile_fail
|
||||
/// # use salsa_macros as salsa;
|
||||
/// #[salsa::query_group]
|
||||
/// trait CodegenDatabase {
|
||||
/// #[salsa::input]
|
||||
|
@ -111,7 +112,8 @@ use syn::{parse_macro_input, AttributeArgs, FnArg, Ident, ItemTrait, ReturnType,
|
|||
///
|
||||
/// It is also an error to annotate a function to `invoke` on an `input` query:
|
||||
///
|
||||
/// ```compile-fail
|
||||
/// ```compile_fail
|
||||
/// # use salsa_macros as salsa;
|
||||
/// #[salsa::query_group]
|
||||
/// trait CodegenDatabase {
|
||||
/// #[salsa::input]
|
Loading…
Reference in a new issue