diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-02 16:16:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-02 14:16:44 +0000 |
| commit | b3615ccd493c4791c3c7565fc7417cba50e8fd71 (patch) | |
| tree | 264c711ead8cf76439816b1457429a157e614067 /crates/typst-macros | |
| parent | c4001662b686b0d52e99aa0b72a5b82af6f862fd (diff) | |
A few CI and crate config changes (#3852)
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], |
