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:
parent
824c188362
commit
29c7d0b6c9
4 changed files with 74 additions and 108 deletions
|
|
@ -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
|
||||
|
|
|
|||
8
sabry_procmacro_impl/README.md
Normal file
8
sabry_procmacro_impl/README.md
Normal 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"}
|
||||
```
|
||||
|
|
@ -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 {}
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue