From: Ian Jackson Date: Sat, 24 Jul 2021 00:31:57 +0000 (+0100) Subject: macros skeleton X-Git-Tag: hippotat/1.0.0~501 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=f09c88ffe6a574463761410a1752cd9bb13f0bd0;p=hippotat.git macros skeleton Signed-off-by: Ian Jackson --- diff --git a/Cargo.lock b/Cargo.lock index e2c8aa2..7f9a853 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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" diff --git a/Cargo.toml b/Cargo.toml index 564b8d1..9396f91 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 index 0000000..391ac2a --- /dev/null +++ b/macros/Cargo.toml @@ -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 index 0000000..89c165b --- /dev/null +++ b/macros/macros.rs @@ -0,0 +1,4 @@ +// Copyright 2021 Ian Jackson and contributors to Hippotat +// SPDX-License-Identifier: AGPL-3.0-or-later +// There is NO WARRANTY. +