Fix cargo test --workspace, associated feature flags, and a number of doctests
This commit is contained in:
1 parent
fdd77d79c1
commit
8df53df887
11 files changed
+218
-187
No files matched your search
@@ -123,7 +123,7 @@ impl ToTokens for CssModuleParser {
|
||||
#[allow(missing_docs, non_snake_case)]
|
||||
mod #mod_name {
|
||||
#[allow(unused_imports)]
|
||||
use super::manganis::{self, CssModuleAssetOptions};
|
||||
use manganis::{self, CssModuleAssetOptions};
|
||||
|
||||
#linker_tokens;
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ pub fn asset(input: TokenStream) -> TokenStream {
|
||||
/// }
|
||||
///
|
||||
/// .button {
|
||||
/// background-color: #373737;
|
||||
/// background-color: #373737;
|
||||
/// }
|
||||
/// ```
|
||||
/// Then you can use the `css_module!()` macro in your Rust project:
|
||||
@@ -163,9 +163,9 @@ pub fn asset(input: TokenStream) -> TokenStream {
|
||||
/// println!("{}", Styles::button);
|
||||
/// ```
|
||||
#[proc_macro]
|
||||
#[doc(hidden)]
|
||||
pub fn css_module(input: TokenStream) -> TokenStream {
|
||||
let style = parse_macro_input!(input as CssModuleParser);
|
||||
|
||||
quote! { #style }.into_token_stream().into()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user