Print the version on lift off and add version endpoint #30

Merged
paul merged 3 commits from 29-print-version-add-endpoint into main 2023-05-29 16:15:06 +02:00
Owner

Show both a version at lift off but also add an API endpoint so it can be queried from the outside.

This closes #29.

Show both a version at lift off but also add an API endpoint so it can be queried from the outside. This closes #29.
paul added the
enhancement
label 2023-05-29 15:46:58 +02:00
paul self-assigned this 2023-05-29 15:46:59 +02:00
paul added 3 commits 2023-05-29 15:47:00 +02:00
399047b5f8
Use the vergen crate to generate version information
* Add depend on the `vergen` crate (only use the `build`, `git` and
  `gitcl` features)
* Add the build script `build.rs` to setup the environment variables
  from the build system
Check, lint and test using Cargo / Check, lint and test (push) Successful in 6m45s Details
Check, lint and test using Cargo / Check, lint and test (pull_request) Successful in 5m56s Details
71fa86ceb9
Add a /version API endpoint
* Introduce the `VersionInfo` struct, build from the vergen environment
  variables
* Add the `version` handler to construct and return the version info
* Update the README
paul force-pushed 29-print-version-add-endpoint from 71fa86ceb9 to 38fb28c248 2023-05-29 15:48:38 +02:00 Compare
paul merged commit d16699636b into main 2023-05-29 16:15:06 +02:00
paul deleted branch 29-print-version-add-endpoint 2023-05-29 16:15:06 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: paul/sinoptik#30
No description provided.