Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Command #61

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.direnv
.env
.envrc
.minamesh
FEEDBACK.md
archive
sql_scripts
Expand Down
161 changes: 160 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,25 @@ indoc = "2.0.5"
aide = { version = "0.13.4", features = ["scalar"] }
anyhow = "1.0.86"
axum = { version = "0.7.5", features = ["macros"] }
bollard = "0.17.1"
bs58 = "0.5.1"
chrono = "0.4.38"
clap = { version = "4.5.11", features = ["derive", "env"] }
coinbase-mesh = "0.1.0"
convert_case = "0.6.0"
cynic = { version = "3.7.3", features = ["http-reqwest-blocking"] }
derive_more = { version = "1.0.0", features = ["full"] }
dotenv = "0.15.0"
envy = "0.4.2"
flate2 = "1.0.34"
futures = "0.3.30"
paste = "1.0.15"
pretty_assertions = "1.4.1"
reqwest = { version = "0.12.5", features = ["json", "blocking"] }
serde = { version = "1.0.204", features = ["derive"] }
serde_json = { version = "1.0.121" }
sqlx = { version = "0.8.0", features = ["runtime-tokio", "postgres", "json"] }
tar = "0.4.42"
thiserror = "1.0.63"
tokio = { version = "1.39.2", features = ["full"] }
tracing = "0.1.40"
Expand Down
4 changes: 3 additions & 1 deletion src/bin/mina-mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@

use anyhow::Result;
use clap::Parser;
use mina_mesh::{FetchGenesisBlockIdentifierCommand, ServeCommand};
use mina_mesh::{DevCommand, FetchGenesisBlockIdentifierCommand, ServeCommand};

#[derive(Debug, Parser)]
#[command(name = "mina-mesh", version, about = "A Mesh-compliant Server for Mina", propagate_version = true, author)]
enum Command {
Dev(DevCommand),
Serve(ServeCommand),
FetchGenesisBlockIdentifier(FetchGenesisBlockIdentifierCommand),
}
Expand All @@ -16,6 +17,7 @@ enum Command {
async fn main() -> Result<()> {
dotenv::dotenv().ok();
match Command::parse() {
Command::Dev(cmd) => cmd.run().await,
Command::Serve(cmd) => cmd.run().await,
Command::FetchGenesisBlockIdentifier(cmd) => cmd.run().await,
}
Expand Down
2 changes: 2 additions & 0 deletions src/commands.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
mod dev;
mod fetch_genesis_block_identifier;
mod serve;

pub use dev::*;
pub use fetch_genesis_block_identifier::*;
pub use serve::*;
Loading
Loading