From 1657b6ff3ce75cbbf86b254ed8c0763547436d11 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Thu, 11 Apr 2024 22:34:16 -0600 Subject: [PATCH] cargo: add description and license Required for publishing to crates.io. --- rust/Cargo.toml.in | 4 +++- rust/derive/Cargo.toml.in | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index 8b2864761b..59e28bd034 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -1,6 +1,8 @@ [package] name = "suricata" version = "@PACKAGE_VERSION@" +license = "GPL-2.0-only" +description = "Suricata Rust components" edition = "2021" rust-version = "1.63.0" @@ -63,7 +65,7 @@ asn1-rs = { version = "~0.6.1" } # last version to work with MSRV 1.63 time = "=0.3.20" -suricata-derive = { path = "./derive" } +suricata-derive = { path = "./derive", version = "@PACKAGE_VERSION@" } [dev-dependencies] test-case = "~3.3.1" diff --git a/rust/derive/Cargo.toml.in b/rust/derive/Cargo.toml.in index dcf25f0692..0dcf924581 100644 --- a/rust/derive/Cargo.toml.in +++ b/rust/derive/Cargo.toml.in @@ -1,8 +1,11 @@ [package] name = "suricata-derive" version = "@PACKAGE_VERSION@" +license = "GPL-2.0-only" +description = "Derive macros for Suricata" edition = "2021" + [lib] proc-macro = true