From 52cd757ca7e88a966d88eb73d6d5f2c6b91f81ba Mon Sep 17 00:00:00 2001 From: realaravinth Date: Mon, 23 May 2022 18:54:55 +0530 Subject: [PATCH] feat: explicitly mention cargo entry points --- db/db-core/Cargo.toml | 4 ++++ db/db-sqlx-sqlite/Cargo.toml | 5 +++++ federate/federate-core/Cargo.toml | 4 ++++ federate/publiccodeyml/Cargo.toml | 3 +++ forge/forge-core/Cargo.toml | 4 ++++ forge/gitea/Cargo.toml | 3 +++ utils/cache-bust/Cargo.toml | 4 ++++ 7 files changed, 27 insertions(+) diff --git a/db/db-core/Cargo.toml b/db/db-core/Cargo.toml index 867a017..1c30549 100644 --- a/db/db-core/Cargo.toml +++ b/db/db-core/Cargo.toml @@ -9,6 +9,10 @@ readme = "https://github.com/forgeflux-org/starchart/blob/master/README.md" license = "AGPLv3 or later version" authors = ["Aravinth Manivannan "] +[lib] +name = "db_core" +path = "src/lib.rs" + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/db/db-sqlx-sqlite/Cargo.toml b/db/db-sqlx-sqlite/Cargo.toml index d900dd6..d3dcf2c 100644 --- a/db/db-sqlx-sqlite/Cargo.toml +++ b/db/db-sqlx-sqlite/Cargo.toml @@ -11,6 +11,11 @@ authors = ["realaravinth "] include = ["./mgrations/"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[lib] +name = "db_sqlx_sqlite" +path = "src/lib.rs" + [dependencies] sqlx = { version = "0.5.11", features = [ "sqlite", "time", "offline", "runtime-actix-rustls" ] } db-core = {path = "../db-core"} diff --git a/federate/federate-core/Cargo.toml b/federate/federate-core/Cargo.toml index fdac303..5301b54 100644 --- a/federate/federate-core/Cargo.toml +++ b/federate/federate-core/Cargo.toml @@ -7,6 +7,10 @@ documentation = "https://forgeflux.org/" edition = "2021" license = "AGPLv3 or later version" +[lib] +name = "federate_core" +path = "src/lib.rs" + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/federate/publiccodeyml/Cargo.toml b/federate/publiccodeyml/Cargo.toml index f19d13b..432ba09 100644 --- a/federate/publiccodeyml/Cargo.toml +++ b/federate/publiccodeyml/Cargo.toml @@ -7,6 +7,9 @@ documentation = "https://forgeflux.org/" edition = "2021" license = "AGPLv3 or later version" +[lib] +name = "publiccodeyml" +path = "src/lib.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/forge/forge-core/Cargo.toml b/forge/forge-core/Cargo.toml index ff0739b..540c64e 100644 --- a/forge/forge-core/Cargo.toml +++ b/forge/forge-core/Cargo.toml @@ -8,6 +8,10 @@ documentation = "https://forgeflux.org/" edition = "2021" license = "AGPLv3 or later version" +[lib] +name = "forge_core" +path = "src/lib.rs" + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/forge/gitea/Cargo.toml b/forge/gitea/Cargo.toml index cde52df..1e1adb6 100644 --- a/forge/gitea/Cargo.toml +++ b/forge/gitea/Cargo.toml @@ -8,6 +8,9 @@ edition = "2021" license = "AGPLv3 or later version" +[lib] +name = "gitea" +path = "src/lib.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/utils/cache-bust/Cargo.toml b/utils/cache-bust/Cargo.toml index c4bd9df..533ade4 100644 --- a/utils/cache-bust/Cargo.toml +++ b/utils/cache-bust/Cargo.toml @@ -8,7 +8,11 @@ license = "AGPLv3 or later version" authors = ["realaravinth "] repository = "https://github.com/forgeflux-org/starchart" documentation = "https://forgeflux.org/" +default-run = "cache-bust" +[[bin]] +name = "cache-bust" +path = "./src/main.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html