Files
greasemonkey_scripts/ebay_storage/rust/Cargo.toml
hak8or a3ca94e200 Moved ebay scraping into separate directory and added rust version
```
➜ time yarn --silent scrape --only_json --load foo4.html > /dev/null

________________________________________________________
Executed in  742.13 millis    fish           external
   usr time  605.32 millis  408.00 micros  604.91 millis
   sys time  229.09 millis  214.00 micros  228.88 millis
```

```
➜ time cargo run --release -- --only-json --load foo4.html > /dev/null
    Finished `release` profile [optimized] target(s) in 0.06s
     Running `target/release/ebay_scraper_rust --only-json --load foo4.html`

________________________________________________________
Executed in  122.54 millis    fish           external
   usr time   87.85 millis  597.00 micros   87.26 millis
   sys time   40.10 millis  152.00 micros   39.95 millis
```
2025-05-29 01:05:20 -04:00

19 lines
604 B
TOML

[package]
name = "ebay_scraper_rust"
version = "0.1.0"
edition = "2021"
[dependencies]
clap = { version = "4.4", features = ["derive"] }
reqwest = { version = "0.11", features = ["json", "stream"] } # Removed "blocking" as we use tokio
scraper = "0.18"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
regex = "1.10"
tokio = { version = "1", features = ["full"] }
url = "2.5"
# path-slash is not strictly needed if using std::path::PathBuf correctly
bytes = "1.5"
chrono = { version = "0.4", features = ["serde"] }
lazy_static = "1.4.0"
futures = "0.3" # For join_all on async tasks