chiark / gitweb /
macros skeleton
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 00:31:57 +0000 (01:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 24 Jul 2021 00:31:57 +0000 (01:31 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Cargo.lock
Cargo.toml
macros/Cargo.toml [new file with mode: 0644]
macros/macros.rs [new file with mode: 0644]

index e2c8aa2dba82e2252f49633f934d7c1b39abba64..7f9a853199079e26a9a0f05ca307e9e97a8f0886 100644 (file)
@@ -200,6 +200,7 @@ dependencies = [
  "env_logger",
  "extend",
  "fehler",
+ "hippotat-macros",
  "hyper",
  "itertools",
  "lazy-regex",
@@ -210,6 +211,15 @@ dependencies = [
  "void",
 ]
 
+[[package]]
+name = "hippotat-macros"
+version = "0.0.0"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn",
+]
+
 [[package]]
 name = "http"
 version = "0.2.4"
index 564b8d1b94399e2ab18cded79700b6b1e318e295..9396f91a758fbee17054d59eef6c8fcf2887910b 100644 (file)
@@ -8,7 +8,13 @@ version = "0.0.0"
 edition = "2018"
 description="Asinine HTTP-over-IP"
 
+[workspace]
+members = ["macros"]
+
 [dependencies]
+
+hippotat-macros = { path = "macros" }
+
 anyhow = "1"
 configparser = "2"
 env_logger = "0.9"
diff --git a/macros/Cargo.toml b/macros/Cargo.toml
new file mode 100644 (file)
index 0000000..391ac2a
--- /dev/null
@@ -0,0 +1,18 @@
+# Copyright 2021 Ian Jackson and contributors to Hippotat
+# SPDX-License-Identifier: AGPL-3.0-or-later
+# There is NO WARRANTY.
+
+[package]
+name = "hippotat-macros"
+version = "0.0.0"
+edition = "2018"
+description="Asinine HTTP-over-IP, proc-macros"
+
+[dependencies]
+syn = "1"
+proc-macro2 = "1"
+quote = "1"
+
+[lib]
+path = "macros.rs"
+proc-macro = true
diff --git a/macros/macros.rs b/macros/macros.rs
new file mode 100644 (file)
index 0000000..89c165b
--- /dev/null
@@ -0,0 +1,4 @@
+// Copyright 2021 Ian Jackson and contributors to Hippotat
+// SPDX-License-Identifier: AGPL-3.0-or-later
+// There is NO WARRANTY.
+