From b877d7d65e5050a00af62a05c716f338949bb880 Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 20 Apr 2021 17:26:31 +1000 Subject: [PATCH] xdg-mime no longer uses git version 0u0 --- CHANGELOG.md | 5 +++-- Cargo.lock | 3 ++- Cargo.toml | 4 +--- src/main.rs | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0235f39..d711173 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,13 @@ Dates are given in YYYY-MM-DD format. ## v0.2 -### v0.2.12 (2021-???) +### v0.2.13 (2021-???) - Added Apple iWork document formats to documents extension set - Cleaned up and properly documented tests -- Renamed `Script` (in `formats.rs`) to `Shell`, in line with renaming in `paramaters.rs` +- Renamed `Script` (in `formats.rs`) to `Shell`, in line with renaming in `parameters.rs` - Added .rpa (Ren'Py archive) support to infer backend - Added system extension set +- [`xdg-mime`] no longer uses git version ### v0.2.12 (2021-04-14) #### Features diff --git a/Cargo.lock b/Cargo.lock index 6a94cb3..eb29c54 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -742,7 +742,8 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "xdg-mime" version = "0.3.3" -source = "git+https://github.com/ebassi/xdg-mime-rs?rev=de5a6dd#de5a6dd04b1a225894c51b5c6e5f5a22ffa46373" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87bf7b69bb50588d70a36e467be29d3df3e8c32580276d62eded9738c1a797aa" dependencies = [ "dirs-next", "glob", diff --git a/Cargo.toml b/Cargo.toml index dd3a63c..d335640 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,14 +35,12 @@ exitcode = "1.1.2" cfg-if = "1.0.0" [target.'cfg(unix)'.dependencies] -xdg-mime = "0.3.2" +xdg-mime = "0.3.3" [target.'cfg(not(all(target_endian = "big", target_pointer_width = "32")))'.dependencies] smartstring = "0.2.6" [patch.crates-io] -# use git version while waiting on a release incorporating https://github.com/ebassi/xdg-mime-rs/commit/de5a6dd -xdg-mime = { git = "https://github.com/ebassi/xdg-mime-rs", version = "0.3", rev = "de5a6dd" } # forked version with many more mime types mime_guess = { git = "https://github.com/Lynnesbian/mime_guess", version = "2.0.4" } diff --git a/src/main.rs b/src/main.rs index 21413e3..ed8ae15 100644 --- a/src/main.rs +++ b/src/main.rs @@ -130,6 +130,8 @@ fn main() { exit(0); } + // TODO: sort entries in order of: valid moves, unknown mime, unknown ext, error + let mut buffered_stdout = BufWriter::new(stdout()); let result = match args.output_format {