chore: 0.0.7: bump deps & light code cleanup
This commit is contained in:
parent
be8ee7611d
commit
4849fd032e
2 changed files with 601 additions and 2114 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue