Update infer to 0.6.0
This commit is contained in:
parent
6b821f1e1e
commit
c4f0cd8d12
3 changed files with 4 additions and 10 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -289,9 +289,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "infer"
|
name = "infer"
|
||||||
version = "0.5.0"
|
version = "0.6.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "ea70330449622910e0edebab230734569516269fb32342fb0a8956340fa48c6c"
|
checksum = "3fe51fa1be60e2a136243674bf4b938279ebddc7019dd5671211e375145759e9"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfb",
|
"cfb",
|
||||||
]
|
]
|
||||||
|
|
|
@ -44,11 +44,11 @@ parking_lot = "0.11.2"
|
||||||
|
|
||||||
[target.'cfg(not(unix))'.dependencies]
|
[target.'cfg(not(unix))'.dependencies]
|
||||||
xdg-mime = { version = "0.3.3", optional = true }
|
xdg-mime = { version = "0.3.3", optional = true }
|
||||||
infer = "0.5.0"
|
infer = "0.6.0"
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
xdg-mime = "0.3.3"
|
xdg-mime = "0.3.3"
|
||||||
infer = { version = "0.5.0", optional = true }
|
infer = { version = "0.6.0", optional = true }
|
||||||
|
|
||||||
[target.'cfg(not(all(target_endian = "big", target_pointer_width = "32")))'.dependencies]
|
[target.'cfg(not(all(target_endian = "big", target_pointer_width = "32")))'.dependencies]
|
||||||
# the seemingly weird target constraint here is due to this:
|
# the seemingly weird target constraint here is due to this:
|
||||||
|
|
|
@ -58,12 +58,6 @@ cfg_if! {
|
||||||
buf.len() >= 34 && buf.starts_with(b"RPA-") && buf[7] == b' ' && buf[24] ==b' '
|
buf.len() >= 34 && buf.starts_with(b"RPA-") && buf[7] == b' ' && buf[24] ==b' '
|
||||||
});
|
});
|
||||||
|
|
||||||
info.add("audio/x-aiff", "aiff", |buf| {
|
|
||||||
// as added by https://github.com/bojand/infer/pull/48/files
|
|
||||||
// this should be removed when (if) that PR is accepted
|
|
||||||
buf.starts_with(b"\x46\x4f\x52\x4d\x41\x49\x46\x46")
|
|
||||||
});
|
|
||||||
|
|
||||||
// info.add("application/x-msi", "msi", |buf| {
|
// info.add("application/x-msi", "msi", |buf| {
|
||||||
// TODO: find a way to detect MSI files properly - this just detects those weird windows OLE files and therefore
|
// TODO: find a way to detect MSI files properly - this just detects those weird windows OLE files and therefore
|
||||||
// also picks up on .doc files
|
// also picks up on .doc files
|
||||||
|
|
Loading…
Reference in a new issue