[M5+] add documentary Cargoxx.toml + fix LinkdbUnknownPackage hint formatting

This commit is contained in:
2026-05-13 23:38:00 +00:00
parent 653b9fbb8d
commit 654fd8d245
2 changed files with 18 additions and 2 deletions

15
Cargoxx.toml Normal file
View File

@@ -0,0 +1,15 @@
[package]
name = "cargoxx"
version = "0.1.0"
edition = "cpp23"
license = "MIT"
[dependencies]
sqlite3 = "*"
reproc = "*"
[dev-dependencies]
catch2 = "*"
[build]
warnings_as_errors = false

View File

@@ -69,8 +69,9 @@ auto Database::resolve(const std::string& package, const std::string& version,
return std::unexpected(util::Error{ return std::unexpected(util::Error{
util::ErrorCode::LinkdbUnknownPackage, util::ErrorCode::LinkdbUnknownPackage,
std::format("package '{}' has no known CMake link recipe", package), std::format("package '{}' has no known CMake link recipe", package),
"run `cargoxx add {0}` to discover and verify a recipe via the resolver, " std::format("run `cargoxx add {}` to discover and verify a recipe via "
"or add a manual recipe via `cargoxx linkdb add`", "the resolver, or add a manual recipe via `cargoxx linkdb add`",
package),
std::nullopt, std::nullopt, std::nullopt, std::nullopt,
}); });
} }