From 8cf7a0adf1b7cdfb398ae9846b44a9cbf2a5103d Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 2 Aug 2025 10:56:27 +0100 Subject: [PATCH] Add more Cargo package fields Explicitly disable publishing the FFI wrappers, since there's no point them being on crates.io. --- Cargo.toml | 5 +++++ cpp/Cargo.toml | 3 +++ ffi-errors/Cargo.toml | 3 +++ nodejs/Cargo.toml | 3 +++ parameterized-test/Cargo.toml | 3 +++ python/Cargo.toml | 3 +++ 6 files changed, 20 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 4db07f83..1c5955d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "libloot" +description = "A library for accessing LOOT's metadata and sorting functionality." +categories = ["games"] version.workspace = true +repository.workspace = true edition.workspace = true license.workspace = true @@ -36,8 +39,10 @@ members = ["cpp", "ffi-errors", "nodejs", "parameterized-test", "python"] [workspace.package] version = "0.27.0" +repository = "https://github.com/loot/libloot.git" edition = "2024" license = "GPL-3.0-or-later" +categories = ["games"] # Deny some rustc lints that are allow-by-default. [workspace.lints.rust] diff --git a/cpp/Cargo.toml b/cpp/Cargo.toml index 0dafe19b..036ef377 100644 --- a/cpp/Cargo.toml +++ b/cpp/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "libloot-cpp" +description = "A C++ wrapper around libloot." +publish = false version.workspace = true +repository.workspace = true edition.workspace = true license.workspace = true diff --git a/ffi-errors/Cargo.toml b/ffi-errors/Cargo.toml index aafac17e..fa3a8c99 100644 --- a/ffi-errors/Cargo.toml +++ b/ffi-errors/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "libloot-ffi-errors" +description = "Error handling functionality that is shared between libloot's FFI wrappers." +publish = false version.workspace = true +repository.workspace = true edition.workspace = true license.workspace = true diff --git a/nodejs/Cargo.toml b/nodejs/Cargo.toml index d5a79786..d97aafcb 100644 --- a/nodejs/Cargo.toml +++ b/nodejs/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "libloot-nodejs" +description = "An experimental Node.js wrapper around libloot." +publish = false version.workspace = true +repository.workspace = true edition.workspace = true license.workspace = true diff --git a/parameterized-test/Cargo.toml b/parameterized-test/Cargo.toml index 8d639844..904c9087 100644 --- a/parameterized-test/Cargo.toml +++ b/parameterized-test/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "parameterized-test" +description = "Procedural macros to support parameterized testing in libloot." +categories = ["development-tools::testing"] version.workspace = true +repository.workspace = true edition.workspace = true license = "MIT" diff --git a/python/Cargo.toml b/python/Cargo.toml index 102fffeb..c47d7302 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -1,6 +1,9 @@ [package] name = "libloot-python" +description = "An experimental Python wrapper around libloot." +publish = false version.workspace = true +repository.workspace = true edition.workspace = true license.workspace = true