diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-07 17:05:21 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-07 17:05:21 +0200 |
commit | 28d86e76021bed674ca78684b9522cfb664a8ae2 (patch) | |
tree | 2e264c8e12c3ee85fcd290338dc39175bbda4b8f /src/garage/admin.rs | |
parent | db61f41030678c5756c844c8aa41a210c658769e (diff) | |
download | garage-28d86e76021bed674ca78684b9522cfb664a8ae2.tar.gz garage-28d86e76021bed674ca78684b9522cfb664a8ae2.zip |
Report build features in garage --help
Diffstat (limited to 'src/garage/admin.rs')
-rw-r--r-- | src/garage/admin.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/garage/admin.rs b/src/garage/admin.rs index f4c182fe..8854a58d 100644 --- a/src/garage/admin.rs +++ b/src/garage/admin.rs @@ -739,8 +739,11 @@ impl AdminRpcHandler { let mut ret = String::new(); writeln!( &mut ret, - "\nGarage version: {}", + "\nGarage version: {} [features: {}]", garage_model::version::garage_version(), + garage_model::version::garage_features() + .map(|list| list.join(", ")) + .unwrap_or_else(|| "(unknown)".into()), ) .unwrap(); writeln!(&mut ret, "\nDatabase engine: {}", self.garage.db.engine()).unwrap(); |