Skip to content

Commit

Permalink
add dummy rama-fp project
Browse files Browse the repository at this point in the history
to be used to for fingerprinting web service
  • Loading branch information
glendc committed Feb 25, 2024
1 parent 77be9e2 commit 2b0d397
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
members = [".", "rama-cli"]
members = [".", "rama-cli", "rama-fp"]

[workspace.package]
version = "0.2.0"
Expand Down
22 changes: 22 additions & 0 deletions rama-fp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[package]
name = "rama-fp"
description = "a fingerprinting service for rama to generate and test fingerprints"
version = { workspace = true }
license = { workspace = true }
edition = { workspace = true }
repository = { workspace = true }
keywords = { workspace = true }
categories = { workspace = true }
authors = { workspace = true }
rust-version = { workspace = true }
default-run = "rama-fp"

[dependencies]
anyhow = "1.0"
clap = { version = "4.4", features = [ "derive" ] }
rama = { version = "0.2", path = ".." }
tokio = { version = "1.35", features = [ "rt-multi-thread", "macros" ] }

[[bin]]
name = "rama-fp"
path = "src/main.rs"
27 changes: 27 additions & 0 deletions rama-fp/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
use clap::{Parser, Subcommand};

mod service;

/// a fingerprinting service for ramae
#[derive(Debug, Parser)] // requires `derive` feature
#[command(name = "rama-fp")]
#[command(about = "a fingerprinting service for rama", long_about = None)]
struct Cli {
#[command(subcommand)]
command: Commands,
}

#[derive(Debug, Subcommand)]
enum Commands {
/// Run the FP service
Run,
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
let args = Cli::parse();

match args.command {
Commands::Run => service::run().await,
}
}
3 changes: 3 additions & 0 deletions rama-fp/src/service/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub async fn run() -> anyhow::Result<()> {
Ok(())
}

0 comments on commit 2b0d397

Please sign in to comment.