1
0
mirror of synced 2025-01-11 08:15:48 +00:00

Cargo http-service folder

This commit is contained in:
Augustinas Bacvinka 2023-01-06 08:10:19 +02:00 committed by Gusto Bacvinka
parent cfcc664e9e
commit a66641deb3
4 changed files with 20 additions and 4 deletions

View File

@ -7,5 +7,6 @@ members = [
"nomos-services/storage",
"nomos-services/consensus",
"nomos-services/mempool",
"nomos-services/http",
"nomos-node"
]

View File

@ -0,0 +1,16 @@
[package]
name = "nomos-http"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-trait = "0.1"
overwatch-rs = { git = "https://github.com/logos-co/Overwatch", branch = "main" }
serde = { version = "1.0", features = ["derive"] }
tracing = "0.1"
tracing-appender = "0.2"
tracing-subscriber = { version = "0.3", features = ["json"] }
tracing-gelf = "0.7"
futures = "0.3"

View File

View File

@ -1,13 +1,12 @@
pub mod backends;
// std
use std::fmt::{self, Debug};
// crates
use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use tokio::sync::broadcast;
use tokio::sync::oneshot;
// internal
use backends::NetworkBackend;
use overwatch_rs::services::{
handle::ServiceStateHandle,