diff --git a/Cargo.lock b/Cargo.lock index 0145e5c..a5c9513 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1580,9 +1580,9 @@ checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" [[package]] name = "itoa" -version = "0.4.7" +version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "jobserver" diff --git a/fuzzysearch-common/Cargo.toml b/fuzzysearch-common/Cargo.toml index bdd57c3..1c48854 100644 --- a/fuzzysearch-common/Cargo.toml +++ b/fuzzysearch-common/Cargo.toml @@ -5,11 +5,12 @@ authors = ["Syfaro "] edition = "2018" [features] -default = ["trace"] +default = ["trace", "download"] video = ["ffmpeg-next", "tempfile"] queue = ["faktory", "tokio", "serde_json"] trace = ["opentelemetry", "opentelemetry-jaeger", "tracing-opentelemetry", "opentelemetry-http", "hyper", "prometheus", "tokio", "reqwest"] +download = ["tokio"] [dependencies] anyhow = "1" @@ -17,7 +18,7 @@ tracing = "0.1" tracing-subscriber = "0.2" tracing-log = "0.1" -tokio = { version = "1", features = ["rt"], optional = true } +tokio = { version = "1", features = ["rt", "fs"], optional = true } futures = "0.3" serde = { version = "1", features = ["derive"] } diff --git a/fuzzysearch-common/src/lib.rs b/fuzzysearch-common/src/lib.rs index 5afd0b3..4bb9a0d 100644 --- a/fuzzysearch-common/src/lib.rs +++ b/fuzzysearch-common/src/lib.rs @@ -7,6 +7,7 @@ pub mod video; #[cfg(feature = "trace")] pub mod trace; +#[cfg(feature = "download")] pub mod download; /// Create an instance of img_hash with project defaults. diff --git a/fuzzysearch/sqlx-data.json b/fuzzysearch/sqlx-data.json index b4a6cdb..6d3f2ee 100644 --- a/fuzzysearch/sqlx-data.json +++ b/fuzzysearch/sqlx-data.json @@ -50,12 +50,12 @@ { "ordinal": 4, "name": "name", - "type_info": "Varchar" + "type_info": "Text" }, { "ordinal": 5, "name": "owner_email", - "type_info": "Varchar" + "type_info": "Text" } ], "parameters": { @@ -172,23 +172,5 @@ null ] } - }, - "d6a5ed9266d7cf6f08df5e0160c59843a15ef5ef3ccac2e5ccfe2251a50bd0dc": { - "query": "SELECT hash_int hash FROM submission WHERE hash_int IS NOT NULL\n UNION ALL\n SELECT hash FROM e621 WHERE hash IS NOT NULL\n UNION ALL\n SELECT hash FROM tweet_media WHERE hash IS NOT NULL\n UNION ALL\n SELECT hash FROM weasyl WHERE hash IS NOT NULL", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "hash", - "type_info": "Int8" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - null - ] - } } } \ No newline at end of file