chore: 0.0.7: bump deps & light code cleanup

This commit is contained in:
spushk 2026-10-05 23:43:03 +03:00
commit 4dfcb2646a
Signed by untrusted user who does not match committer: spushk
GPG key ID: 7797B761E105E8AA
3 changed files with 601 additions and 2114 deletions

View file

@ -1,30 +1,30 @@
[package]
name = "sabry_procmacro_impl"
description = "Sabry proc-macro internals reusable outside of proc-macro context"
version.workspace = true
repository.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
description = "Sabry proc-macro internals reusable outside of proc-macro context"
repository.workspace = true
license.workspace = true
[dependencies]
sabry_intrnl.workspace = true
sabry_intrnl.features = ["scope"]
raffia.workspace = true
syn.workspace = true
syn.features = ["parsing"]
quote.workspace = true
proc-macro2.workspace = true
proc-macro2.features = ["span-locations"]
regex.workspace = true
itertools.workspace = true
cfg-if.workspace = true
[features]
nightly = []
const-compile = ["sabry_intrnl/compile"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
cfg-if.workspace = true
itertools.workspace = true
proc-macro2.workspace = true
proc-macro2.features = ["span-locations"]
quote.workspace = true
raffia.workspace = true
regex.workspace = true
sabry_intrnl.workspace = true
sabry_intrnl.features = ["scope"]
syn.workspace = true
syn.features = ["parsing"]
[features]
const-compile = ["sabry_intrnl/compile"]
nightly = []

View file

@ -48,7 +48,7 @@ impl ArbitraryStyleBlock {
return Err(syn::Error::new(
path_tok.span(),
format!(
"Could not use path {path:?}: {:?}. If the path is relative and 'nightly' feature flag is set - this is likely false-positive",
"Could not use path {path:?}: {:?}. If the path is relative, nightly rust has to be used and `nightly` feature flag has to be set",
e.kind()
),
));

View file

@ -89,14 +89,12 @@ pub fn styly_macro_impl(input: TokenStream, source_path: PathBuf) -> TokenStream
_ => None,
};
let interp = interp.and_then(|i| match i.elements.first() {
interp.and_then(|i| match i.elements.first() {
Some(raffia::ast::SassInterpolatedIdentElement::Static(i)) => {
Some(i.raw.to_string())
}
_ => None,
});
interp
})
})
})
.unique()