-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to be used to for fingerprinting web service
- Loading branch information
glendc
committed
Feb 25, 2024
1 parent
77be9e2
commit 2b0d397
Showing
5 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,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" |
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,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, | ||
} | ||
} |
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,3 @@ | ||
pub async fn run() -> anyhow::Result<()> { | ||
Ok(()) | ||
} |