feat: scaffold ug-parser infrastructure crate
This commit is contained in:
29
Cargo.toml
Normal file
29
Cargo.toml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
[workspace]
|
||||||
|
members = [
|
||||||
|
"crates/api",
|
||||||
|
"crates/common",
|
||||||
|
"crates/domain",
|
||||||
|
"crates/infrastructure/persistence",
|
||||||
|
"crates/infrastructure/ug-parser",
|
||||||
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
|
[workspace.dependencies]
|
||||||
|
anyhow = "1.0.102"
|
||||||
|
reqwest = "0.13.2"
|
||||||
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
|
serde_json = "1.0.149"
|
||||||
|
thiserror = "2.0.18"
|
||||||
|
tokio = { version = "1.51.0", features = ["full"] }
|
||||||
|
tracing = "0.1.44"
|
||||||
|
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
|
||||||
|
uuid = { version = "1.23.0", features = ["v4"] }
|
||||||
|
rand = "0.10.0"
|
||||||
|
sqlx = { version = "0.8.6", features = ["runtime-tokio-rustls"] }
|
||||||
|
async-trait = "0.1.89"
|
||||||
|
scraper = "0.23"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
strip = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = 3
|
||||||
13
crates/infrastructure/ug-parser/Cargo.toml
Normal file
13
crates/infrastructure/ug-parser/Cargo.toml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[package]
|
||||||
|
name = "ug-parser"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
domain = { path = "../../domain" }
|
||||||
|
anyhow = { workspace = true }
|
||||||
|
thiserror = { workspace = true }
|
||||||
|
tokio = { workspace = true }
|
||||||
|
reqwest = { workspace = true }
|
||||||
|
scraper = { workspace = true }
|
||||||
|
async-trait = { workspace = true }
|
||||||
1
crates/infrastructure/ug-parser/src/fetcher.rs
Normal file
1
crates/infrastructure/ug-parser/src/fetcher.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct UgTabFetcher;
|
||||||
5
crates/infrastructure/ug-parser/src/lib.rs
Normal file
5
crates/infrastructure/ug-parser/src/lib.rs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
pub mod fetcher;
|
||||||
|
pub mod parser;
|
||||||
|
|
||||||
|
pub use fetcher::UgTabFetcher;
|
||||||
|
pub use parser::UgHtmlParser;
|
||||||
1
crates/infrastructure/ug-parser/src/parser.rs
Normal file
1
crates/infrastructure/ug-parser/src/parser.rs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
pub struct UgHtmlParser;
|
||||||
Reference in New Issue
Block a user