fuel-core 0.18.3

Fuel client library is aggregation of all fuels service. It contains the all business logic of the fuel protocol.
Documentation
use axum::{
    body::Body,
    http::Request,
    response::IntoResponse,
};
#[cfg(feature = "metrics")]
use fuel_core_metrics::service::encode_metrics_response;

pub async fn metrics(_req: Request<Body>) -> impl IntoResponse {
    #[cfg(feature = "metrics")]
    {
        encode_metrics_response()
    }
    #[cfg(not(feature = "metrics"))]
    {
        use axum::http::StatusCode;
        (StatusCode::NOT_FOUND, "Metrics collection disabled")
    }
}