aboutsummaryrefslogtreecommitdiff
path: root/src/api/admin
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-07 17:05:21 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-07 17:05:21 +0200
commit28d86e76021bed674ca78684b9522cfb664a8ae2 (patch)
tree2e264c8e12c3ee85fcd290338dc39175bbda4b8f /src/api/admin
parentdb61f41030678c5756c844c8aa41a210c658769e (diff)
downloadgarage-28d86e76021bed674ca78684b9522cfb664a8ae2.tar.gz
garage-28d86e76021bed674ca78684b9522cfb664a8ae2.zip
Report build features in garage --help
Diffstat (limited to 'src/api/admin')
-rw-r--r--src/api/admin/cluster.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs
index 8e6dfb3f..010382f2 100644
--- a/src/api/admin/cluster.rs
+++ b/src/api/admin/cluster.rs
@@ -19,6 +19,7 @@ pub async fn handle_get_cluster_status(garage: &Arc<Garage>) -> Result<Response<
let res = GetClusterStatusResponse {
node: hex::encode(garage.system.id),
garage_version: garage_model::version::garage_version(),
+ garage_features: garage_model::version::garage_features(),
db_engine: garage.db.engine(),
known_nodes: garage
.system
@@ -99,6 +100,7 @@ fn get_cluster_layout(garage: &Arc<Garage>) -> GetClusterLayoutResponse {
struct GetClusterStatusResponse {
node: String,
garage_version: &'static str,
+ garage_features: Option<&'static [&'static str]>,
db_engine: String,
known_nodes: HashMap<String, KnownNodeResp>,
layout: GetClusterLayoutResponse,