chore: 0.0.7: bump deps & light code cleanup

This commit is contained in:
spushk 2026-10-05 23:43:03 +03:00 • committed by spushk
commit 4849fd032e
Signed by: spushk
GPG key ID: 7797B761E105E8AA
2 changed files with 601 additions and 2114 deletions

View file

@ -1,13 +1,17 @@
[package]
name = "sabry_procmacro"
description = "Sabry proc-macro declarations"
version.workspace = true
repository.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
description = "Sabry proc-macro declarations"
repository.workspace = true
license.workspace = true
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lib]
proc-macro = true
@ -16,7 +20,4 @@ sabry_procmacro_impl.workspace = true
[features]
const-compile = ["sabry_procmacro_impl/const-compile"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
nightly = ["sabry_procmacro_impl/nightly"]

View file

@ -37,8 +37,11 @@ use sabry_procmacro_impl::impls::{
///
#[proc_macro]
pub fn scssy(input: TokenStream) -> TokenStream {
let source_path =
PathBuf::from_str(&proc_macro::Span::call_site().file()).expect("Irrefutable result");
let source_path = PathBuf::from_str(&proc_macro::Span::call_site().file())
.expect("Irrefutable result")
.parent()
.expect("The scssy procmacro callsite source file has no parent dir")
.to_owned();
scssy_macro_impl(input.into(), source_path).into()
}