summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-03 16:13:35 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-03 16:13:35 +0100
commit46921a8c283718402322d4d09c0bd1d9194278b1 (patch)
treed218e7845c0491570d5535a4515c1c0f956f37b6 /macros
parent37a7afddfaffd44cb9bc013c9506599267e08983 (diff)
Separate test crate
This removes the not-really-cyclic dependency that confuses rust-analyzer. See also: https://github.com/rust-lang/rust-analyzer/issues/2414
Diffstat (limited to 'macros')
-rw-r--r--macros/Cargo.toml3
-rw-r--r--macros/src/lib.rs2
2 files changed, 5 insertions, 0 deletions
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
index 6a7f5522..20ca0262 100644
--- a/macros/Cargo.toml
+++ b/macros/Cargo.toml
@@ -6,6 +6,9 @@ edition = "2021"
[lib]
proc-macro = true
+test = false
+doctest = false
+bench = false
[dependencies]
proc-macro2 = "1"
diff --git a/macros/src/lib.rs b/macros/src/lib.rs
index d3b3b30a..e57d758e 100644
--- a/macros/src/lib.rs
+++ b/macros/src/lib.rs
@@ -1,3 +1,5 @@
+//! Procedural macros for Typst.
+
extern crate proc_macro;
use proc_macro::TokenStream;