diff options
Diffstat (limited to 'crates/typst-macros')
| -rw-r--r-- | crates/typst-macros/Cargo.toml | 3 | ||||
| -rw-r--r-- | crates/typst-macros/src/category.rs | 1 | ||||
| -rw-r--r-- | crates/typst-macros/src/lib.rs | 2 | ||||
| -rw-r--r-- | crates/typst-macros/src/util.rs | 1 |
4 files changed, 3 insertions, 4 deletions
diff --git a/crates/typst-macros/Cargo.toml b/crates/typst-macros/Cargo.toml index caef7eb4..b6b496cb 100644 --- a/crates/typst-macros/Cargo.toml +++ b/crates/typst-macros/Cargo.toml @@ -14,9 +14,6 @@ readme = { workspace = true } [lib] proc-macro = true -test = false -doctest = false -bench = false [dependencies] heck = { workspace = true } diff --git a/crates/typst-macros/src/category.rs b/crates/typst-macros/src/category.rs index ac8c813d..26ec879c 100644 --- a/crates/typst-macros/src/category.rs +++ b/crates/typst-macros/src/category.rs @@ -33,6 +33,7 @@ pub fn category(_: TokenStream, item: syn::Item) -> Result<TokenStream> { } /// Parse a bare `pub static CATEGORY: Category;` item. +#[allow(dead_code)] pub struct BareStatic { pub attrs: Vec<Attribute>, pub vis: Visibility, diff --git a/crates/typst-macros/src/lib.rs b/crates/typst-macros/src/lib.rs index 35c48b4a..58d96386 100644 --- a/crates/typst-macros/src/lib.rs +++ b/crates/typst-macros/src/lib.rs @@ -136,7 +136,7 @@ pub fn ty(stream: BoundaryStream, item: BoundaryStream) -> BoundaryStream { /// /// This implements `NativeElement` for the given type. /// -/// ``` +/// ```ignore /// /// A section heading. /// #[elem(Show, Count)] /// struct HeadingElem { diff --git a/crates/typst-macros/src/util.rs b/crates/typst-macros/src/util.rs index bfe22285..b6acc7d8 100644 --- a/crates/typst-macros/src/util.rs +++ b/crates/typst-macros/src/util.rs @@ -232,6 +232,7 @@ impl Parse for BlockWithReturn { } /// Parse a bare `type Name;` item. +#[allow(dead_code)] pub struct BareType { pub attrs: Vec<Attribute>, pub type_token: Token![type], |
