mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 20:42:10 +00:00
Unify Settings
and AllSettings
(#7532)
This commit is contained in:
parent
ca3c15858d
commit
b19eec9b2a
14 changed files with 204 additions and 147 deletions
|
@ -33,7 +33,11 @@ pub fn derive_combine_options(input: TokenStream) -> TokenStream {
|
|||
.into()
|
||||
}
|
||||
|
||||
#[proc_macro_derive(CacheKey)]
|
||||
/// Generates a [`CacheKey`] implementation for the attributed type.
|
||||
///
|
||||
/// Struct fields can be attributed with the `cache_key` field-attribute that supports:
|
||||
/// * `ignore`: Ignore the attributed field in the cache key
|
||||
#[proc_macro_derive(CacheKey, attributes(cache_key))]
|
||||
pub fn cache_key(input: TokenStream) -> TokenStream {
|
||||
let item = parse_macro_input!(input as DeriveInput);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue