-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c094bea
commit 8018c40
Showing
5 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[package] | ||
name = "ic-gateway" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
anyhow = "1.0" | ||
arc-swap = "1" | ||
async-scoped = { version = "0.8", features = ["use-tokio"] } | ||
async-trait = "0.1" | ||
axum = "0.7" | ||
candid = "0.10" | ||
clap = { version = "4.5", features = ["derive", "string"] } | ||
clap_derive = "4.5" | ||
http = "1.1" | ||
hyper = "1.2" | ||
jemallocator = "0.5" | ||
jemalloc-ctl = "0.5" | ||
lazy_static = "1.4" | ||
little-loadshedder = "0.2" | ||
maxminddb = "0.24" | ||
moka = { version = "0.12", features = ["sync", "future"] } | ||
prometheus = "0.13" | ||
rand = "0.8" | ||
regex = "1.10" | ||
reqwest = "0.12" | ||
rustls = "0.23" | ||
rustls-pemfile = "1" | ||
serde = "1.0" | ||
serde_json = "1.0" | ||
strum = "0.26" | ||
thiserror = "1.0" | ||
tokio = "1.36" | ||
tokio-util = "0.7" | ||
tokio-rustls = "0.26" | ||
tower = "0.4" | ||
tower_governor = "0.3" | ||
tower-http = { version = "0.5", features = [ | ||
"trace", | ||
"request-id", | ||
"compression-full", | ||
] } | ||
tracing = "0.1" | ||
tracing-core = "0.1" | ||
tracing-serde = "0.1" | ||
tracing-subscriber = "0.3" | ||
url = "2.5" | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.5", features = ["async_tokio"] } | ||
mockall = "0.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use std::{net::SocketAddr, path::PathBuf}; | ||
|
||
use clap::{Args, Parser}; | ||
use url::Url; | ||
|
||
use crate::core::{AUTHOR_NAME, SERVICE_NAME}; | ||
|
||
#[derive(Parser)] | ||
#[clap(name = SERVICE_NAME)] | ||
#[clap(author = AUTHOR_NAME)] | ||
pub struct Cli {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use anyhow::Error; | ||
|
||
use crate::cli::Cli; | ||
|
||
pub const SERVICE_NAME: &str = "ic_gateway"; | ||
pub const AUTHOR_NAME: &str = "Boundary Node Team <[email protected]>"; | ||
|
||
pub async fn main(cli: Cli) -> Result<(), Error> { | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use anyhow::Error; | ||
use clap::Parser; | ||
use jemallocator::Jemalloc; | ||
|
||
use crate::cli::Cli; | ||
|
||
mod cli; | ||
mod core; | ||
|
||
#[global_allocator] | ||
static GLOBAL: Jemalloc = Jemalloc; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Error> { | ||
let cli = Cli::parse(); | ||
|
||
core::main(cli).await | ||
} |