Skip to content

Commit 93e38fe

Browse files
authored
Optimize detection logic.&&Add APIs and API documentation.&&Update README.md (#7)
* standardize code formatting and detect local directory Signed-off-by: sonichen <[email protected]> * standardize code formatting and detect local directory Signed-off-by: sonichen <[email protected]> * delete compiled binary file Signed-off-by: sonichen <[email protected]> --------- Signed-off-by: sonichen <[email protected]>
1 parent 94bdd16 commit 93e38fe

File tree

19 files changed

+4325
-92
lines changed

19 files changed

+4325
-92
lines changed

Cargo.toml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@ name = "sensleak"
33
version = "0.2.1"
44
edition = "2021"
55

6-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7-
6+
[[bin]]
7+
name = "scan"
8+
path = "src/main.rs"
89

10+
[[bin]]
11+
name = "api"
12+
path = "src/api.rs"
913

1014
[dependencies]
1115
regex = "1.5.4"
1216
clap = { version = "4.2.4", features = ["derive"] }
13-
toml="0.7.3"
17+
toml = "0.7.3"
1418
walkdir = "2.3.2"
1519
rayon = "1.5.1"
1620
serde = { version = "1.0", features = ["derive"] }
@@ -23,3 +27,9 @@ mockito = "1.0.2"
2327
csv = "1.1"
2428
log = "0.4"
2529
env_logger = "0.10.0"
30+
axum = { version = "0.6.1", features = ["headers", "macros"] }
31+
tokio = { version = "1.21.2", features = ["macros", "rt-multi-thread"] }
32+
tower-http = { version = "0.4.0", features = ["cors"] }
33+
utoipa = { version = "3.3.0", features = ["axum_extras"] }
34+
utoipa-swagger-ui = { version = "3.1.3", features = ["axum"] }
35+
hyper = { version = "0.14", features = ["full"] }

0 commit comments

Comments
 (0)