Small updates.

This commit is contained in:
Syfaro 2021-08-22 01:37:36 -04:00
parent 9255a49fb5
commit af40099773
4 changed files with 8 additions and 24 deletions

4
Cargo.lock generated
View File

@ -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"

View File

@ -5,11 +5,12 @@ authors = ["Syfaro <syfaro@huefox.com>"]
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"] }

View File

@ -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.

View File

@ -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
]
}
}
}