fix: expose rust acceleration availability

This commit is contained in:
jxxghp
2026-05-25 23:48:09 +08:00
parent 8bd1288e7e
commit d4718bf9dc
3 changed files with 16 additions and 2 deletions

View File

@@ -515,6 +515,7 @@ async def get_env_setting(_: User = Depends(get_current_active_user_async)):
"AUTH_VERSION": SitesHelper().auth_version,
"INDEXER_VERSION": SitesHelper().indexer_version,
"FRONTEND_VERSION": SystemChain().get_frontend_version(),
"RUST_ACCEL_AVAILABLE": rust_accel.is_available(),
"RUST_ACCEL_ENABLED": rust_accel.is_enabled(),
}
)