diff --git a/Cargo.lock b/Cargo.lock index 0f67bf7..de5b71b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -222,14 +222,6 @@ version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" -[[package]] -name = "filter-proc-macro" -version = "0.1.0" -dependencies = [ - "quote", - "syn 2.0.64", -] - [[package]] name = "fnv" version = "1.0.7" @@ -1153,10 +1145,10 @@ name = "scrapelect" version = "0.2.0" dependencies = [ "anyhow", - "filter-proc-macro", "futures", "regex", "reqwest", + "scrapelect-filter-proc-macro", "scraper", "serde", "serde_json", @@ -1164,6 +1156,15 @@ dependencies = [ "url", ] +[[package]] +name = "scrapelect-filter-proc-macro" +version = "0.2.0" +dependencies = [ + "insta", + "quote", + "syn 2.0.64", +] + [[package]] name = "scraper" version = "0.19.0" diff --git a/Cargo.toml b/Cargo.toml index d8f758f..6ef7135 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,10 @@ name = "scrapelect" version = "0.2.0" edition = "2021" +authors = ["Max Carr "] +license = "Apache-2.0 OR MIT" +repository = "https://github.com/suaviloquence/scrapelect" +description = "Interpreter for scrapelect, a CSS-inspired web scraping DSL" [dependencies] anyhow = "1.0" @@ -9,7 +13,7 @@ regex = "1.10" reqwest = "0.12.5" scraper = "0.19" tokio = { version = "1.38.0", features = ["full"] } -filter-proc-macro = { path = "./filter-proc-macro", version = "0.2.0" } +scrapelect-filter-proc-macro = { path = "./filter-proc-macro", version = "0.2.0" } serde_json = "1.0" serde = { version = "1.0", features = ["derive", "rc"] } futures = "0.3" diff --git a/src/interpreter/filter.rs b/src/interpreter/filter.rs index 5b20f94..e753382 100644 --- a/src/interpreter/filter.rs +++ b/src/interpreter/filter.rs @@ -12,7 +12,7 @@ use super::{ ElementContext, Value, }; -pub use filter_proc_macro::{filter_fn, Args}; +pub use scrapelect_filter_proc_macro::{filter_fn, Args}; type Structure<'doc> = BTreeMap, PValue<'doc>>;