micro: set repistory for packages

micro: fmt

micro: set repistory for packages

micro: release.toml

micro: prepare for crates publish. Im crazy

micro: prepare for crates publish. Im crazy

micro: prepare for crates publish. Im crazy

micro: prepare for crates publish. Im crazy

micro: prepare for crates publish. Im crazy
This commit is contained in:
Yiffy Dev 2024-10-30 17:51:49 +05:00 • committed by spushk
commit d997675b7e
Signed by: spushk
GPG key ID: 7797B761E105E8AA
4 changed files with 74 additions and 108 deletions

View file

@ -2,6 +2,7 @@
name = "sabry_procmacro_impl"
description = "Sabry proc-macro internals reusable outside of proc-macro context"
version.workspace = true
repository.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true

View file

@ -0,0 +1,8 @@
sabry_procmacro_impl is an internal-ish part of the sabry lib, you should probably start from [here](https://crates.io/crates/sabry)
There is very low probability, that you should depend on this crate, instead do:
```rust,ignore
[dependencies]
sabry = {version = "0.0.1"}
```

View file

@ -1,7 +1,7 @@
use proc_macro2::TokenStream;
use quote::quote;
use syn::{parse::Parse, Ident};
use regex::Regex;
use syn::{parse::Parse, Ident};
use super::{ArbitraryStyleBlock, ArbitraryStyleSyntax};
@ -50,7 +50,10 @@ impl Parse for MacroSyntax {
// this is because of how parsing works. Need to find more elegant way though
// TODO: find a more elegant way
code.code = Regex::new("\n ").expect("BUG: failed to build regex for indentation SASS").replace_all(&code.code, "\n").to_string();
code.code = Regex::new("\n ")
.expect("BUG: failed to build regex for indentation SASS")
.replace_all(&code.code, "\n")
.to_string();
Ok(Self {
ident,
@ -61,6 +64,4 @@ impl Parse for MacroSyntax {
}
#[cfg(test)]
mod test {
}
mod test {}

View file

@ -1,3 +1,5 @@
#![doc = include_str!("../README.md")]
// Moving this to separate crate, cuz I don't wanna to reimplement that parsing again for build magic
// Also, because I can.