Skip to content

Commit f7db319

Browse files
committed
Update build info
1 parent 6932bee commit f7db319

File tree

6 files changed

+227
-84
lines changed

6 files changed

+227
-84
lines changed

engine/Cargo.lock

Lines changed: 183 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

engine/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,7 @@ rust-car = "0.1.4"
8686
cid = "0.11.1"
8787
walkdir = "2.4.0"
8888
rand = "0.9.0"
89-
rustc_version_runtime = "0.3.0"
89+
build-info = "0.0.33"
90+
91+
[build-dependencies]
92+
build-info-build = "0.0.33"

engine/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
build_info_build::build_script();
3+
}

engine/src/routes/system.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::state::State;
2-
use crate::utils::build_info::{BuildInfo, build_info_build};
2+
use crate::utils::build_info::{BuildInformation, build_build_information};
33
use poem::web::Data;
44
use poem_openapi::{payload::Json, ApiResponse, Object, OpenApi};
55
use crate::routes::ApiTags;
@@ -22,7 +22,7 @@ pub enum IPFSStatusResponse {
2222
#[derive(ApiResponse)]
2323
pub enum BuildInfoResponse {
2424
#[oai(status = 200)]
25-
Ok(Json<BuildInfo>),
25+
Ok(Json<BuildInformation>),
2626
}
2727

2828
#[OpenApi]
@@ -39,6 +39,7 @@ impl SystemApi {
3939

4040
#[oai(path = "/system/build", method = "get", tag = "ApiTags::System")]
4141
async fn build(&self, _state: Data<&State>) -> BuildInfoResponse {
42-
BuildInfoResponse::Ok(Json(build_info_build()))
42+
BuildInfoResponse::Ok(Json(build_build_information()))
4343
}
4444
}
45+

0 commit comments

Comments
 (0)