diff -Nru rust-trash-3.2.1/.cargo_vcs_info.json rust-trash-3.3.0/.cargo_vcs_info.json
--- rust-trash-3.2.1/.cargo_vcs_info.json 1970-01-01 00:00:01.000000000 +0000
+++ rust-trash-3.3.0/.cargo_vcs_info.json 1970-01-01 00:00:01.000000000 +0000
@@ -1,6 +1,6 @@
{
"git": {
- "sha1": "d7abb5bb735827b88479fc4879dcfcdcae6e08df"
+ "sha1": "d0d8f26030e0936aa57aa1d0d4e1a34f6a91f5b9"
},
"path_in_vcs": ""
}
\ No newline at end of file
diff -Nru rust-trash-3.2.1/CHANGELOG.md rust-trash-3.3.0/CHANGELOG.md
--- rust-trash-3.2.1/CHANGELOG.md 2006-07-24 01:21:28.000000000 +0000
+++ rust-trash-3.3.0/CHANGELOG.md 2006-07-24 01:21:28.000000000 +0000
@@ -5,6 +5,41 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## 3.3.0 (2024-02-10)
+
+### New Features
+
+ - improved error granularity
+ Inform about operating-system specific errors more clearly, thus avoid degenerating error information.
+
+### Bug Fixes
+
+ - Use `AtomicI32` in tests for compatibility with `armel` platform
+
+### Commit Statistics
+
+
+
+ - 5 commits contributed to the release over the course of 5 calendar days.
+ - 25 days passed between releases.
+ - 2 commits were understood as [conventional](https://www.conventionalcommits.org).
+ - 1 unique issue was worked on: [#99](https://github.com/Byron/trash-rs/issues/99)
+
+### Commit Details
+
+
+
+view details
+
+ * **[#99](https://github.com/Byron/trash-rs/issues/99)**
+ - Use `AtomicI32` in tests for compatibility with `armel` platform ([`920ff0c`](https://github.com/Byron/trash-rs/commit/920ff0c69f6d0309e73f86aaa437aec9508cc873))
+ * **Uncategorized**
+ - Improved error granularity ([`452be83`](https://github.com/Byron/trash-rs/commit/452be8303c797f44409b487c0cf1e6ffb2899110))
+ - Removed tracing. ([`2b1c9fa`](https://github.com/Byron/trash-rs/commit/2b1c9fa2a9743c1d5477bf5512ba0f260cfdacb5))
+ - Bug fix for macOS. ([`b238938`](https://github.com/Byron/trash-rs/commit/b238938d7d6387d7340f9c6a30025c9255973180))
+ - Enhanced error reporting. ([`671cef9`](https://github.com/Byron/trash-rs/commit/671cef91f4e3c216f84683e07c82c5849d641b3b))
+
+
## 3.2.1 (2024-01-15)
### Bug Fixes
@@ -15,7 +50,7 @@
- - 9 commits contributed to the release over the course of 1 calendar day.
+ - 10 commits contributed to the release over the course of 1 calendar day.
- 5 days passed between releases.
- 1 commit was understood as [conventional](https://www.conventionalcommits.org).
- 0 issues like '(#ID)' were seen in commit messages
@@ -27,6 +62,7 @@
view details
* **Uncategorized**
+ - Release trash v3.2.1 ([`d7abb5b`](https://github.com/Byron/trash-rs/commit/d7abb5bb735827b88479fc4879dcfcdcae6e08df))
- Find best-possible trash dir, e.g. use `/run/foo/.trash` instead of`/run/.trash` when deleting `/run/foo/bar`. ([`bb868d6`](https://github.com/Byron/trash-rs/commit/bb868d6812988b56082c2faea083617402e1a259))
- Refactor ([`8cb3f75`](https://github.com/Byron/trash-rs/commit/8cb3f7519b1294fe8b2e03c0f51fd129bb9f4cf4))
- Cargo fmt ([`0b42fc0`](https://github.com/Byron/trash-rs/commit/0b42fc06b44e076aa7aebaee6f8730bc762ee5ed))
diff -Nru rust-trash-3.2.1/Cargo.lock rust-trash-3.3.0/Cargo.lock
--- rust-trash-3.2.1/Cargo.lock 1970-01-01 00:00:01.000000000 +0000
+++ rust-trash-3.3.0/Cargo.lock 1970-01-01 00:00:01.000000000 +0000
@@ -40,9 +40,9 @@
[[package]]
name = "bitflags"
-version = "2.4.1"
+version = "2.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
+checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"
[[package]]
name = "bumpalo"
@@ -67,14 +67,14 @@
[[package]]
name = "chrono"
-version = "0.4.31"
+version = "0.4.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
+checksum = "9f13690e35a5e4ace198e7beea2895d29f3a9cc55015fcebe6336bd2010af9eb"
dependencies = [
"android-tzdata",
"iana-time-zone",
"num-traits",
- "windows-targets 0.48.5",
+ "windows-targets 0.52.0",
]
[[package]]
@@ -98,9 +98,9 @@
[[package]]
name = "env_logger"
-version = "0.10.1"
+version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95b3f3e67048839cb0d0781f445682a35113da7121f7c949db0e2be96a4fbece"
+checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
dependencies = [
"humantime",
"is-terminal",
@@ -153,9 +153,9 @@
[[package]]
name = "hermit-abi"
-version = "0.3.3"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
+checksum = "d0c62115964e08cb8039170eb33c1d0e2388a256930279edca206fff675f82c3"
[[package]]
name = "humantime"
@@ -165,9 +165,9 @@
[[package]]
name = "iana-time-zone"
-version = "0.1.59"
+version = "0.1.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6a67363e2aa4443928ce15e57ebae94fd8949958fd1223c4cfc0cd473ad7539"
+checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
dependencies = [
"android_system_properties",
"core-foundation-sys",
@@ -198,20 +198,20 @@
[[package]]
name = "is-terminal"
-version = "0.4.10"
+version = "0.4.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bad00257d07be169d870ab665980b06cdb366d792ad690bf2e76876dc503455"
+checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b"
dependencies = [
"hermit-abi",
- "rustix",
+ "libc",
"windows-sys",
]
[[package]]
name = "js-sys"
-version = "0.3.67"
+version = "0.3.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a1d36f1235bc969acba30b7f5990b864423a6068a10f7c90ae8f0112e3a59d1"
+checksum = "406cda4b368d531c842222cf9d2600a9a4acce8d29423695379c6868a143a9ee"
dependencies = [
"wasm-bindgen",
]
@@ -224,15 +224,15 @@
[[package]]
name = "libc"
-version = "0.2.152"
+version = "0.2.153"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7"
+checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
[[package]]
name = "linux-raw-sys"
-version = "0.4.12"
+version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4cd1a83af159aa67994778be9070f0ae1bd732942279cabb14f86f986a21456"
+checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c"
[[package]]
name = "lock_api"
@@ -267,9 +267,9 @@
[[package]]
name = "num-traits"
-version = "0.2.17"
+version = "0.2.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
+checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a"
dependencies = [
"autocfg",
]
@@ -326,9 +326,9 @@
[[package]]
name = "proc-macro2"
-version = "1.0.76"
+version = "1.0.78"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c"
+checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae"
dependencies = [
"unicode-ident",
]
@@ -383,9 +383,9 @@
[[package]]
name = "regex"
-version = "1.10.2"
+version = "1.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
+checksum = "b62dbe01f0b06f9d8dc7d49e05a0785f153b00b2c227856282f671e0318c9b15"
dependencies = [
"aho-corasick",
"memchr",
@@ -395,9 +395,9 @@
[[package]]
name = "regex-automata"
-version = "0.4.3"
+version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
+checksum = "5bb987efffd3c6d0d8f5f89510bb458559eab11e4f869acb20bf845e016259cd"
dependencies = [
"aho-corasick",
"memchr",
@@ -412,11 +412,11 @@
[[package]]
name = "rustix"
-version = "0.38.30"
+version = "0.38.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "322394588aaf33c24007e8bb3238ee3e4c5c09c084ab32bc73890b99ff326bca"
+checksum = "6ea3e1a662af26cd7a3ba09c0297a31af215563ecf42817c98df621387f4e949"
dependencies = [
- "bitflags 2.4.1",
+ "bitflags 2.4.2",
"errno",
"libc",
"linux-raw-sys",
@@ -454,9 +454,9 @@
[[package]]
name = "smallvec"
-version = "1.12.0"
+version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2593d31f82ead8df961d8bd23a64c2ccf2eb5dd34b0a34bfb4dd54011c72009e"
+checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
[[package]]
name = "syn"
@@ -471,13 +471,12 @@
[[package]]
name = "tempfile"
-version = "3.9.0"
+version = "3.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01ce4141aa927a6d1bd34a041795abd0db1cccba5d5f24b009f694bdf3a1f3fa"
+checksum = "a365e8cd18e44762ef95d87f284f4b5cd04107fec2ff3052bd6a3e6069669e67"
dependencies = [
"cfg-if",
"fastrand",
- "redox_syscall",
"rustix",
"windows-sys",
]
@@ -508,7 +507,7 @@
[[package]]
name = "trash"
-version = "3.2.1"
+version = "3.3.0"
dependencies = [
"chrono",
"env_logger",
@@ -526,9 +525,9 @@
[[package]]
name = "unicode-bidi"
-version = "0.3.14"
+version = "0.3.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416"
+checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
[[package]]
name = "unicode-ident"
@@ -564,9 +563,9 @@
[[package]]
name = "wasm-bindgen"
-version = "0.2.90"
+version = "0.2.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1223296a201415c7fad14792dbefaace9bd52b62d33453ade1c5b5f07555406"
+checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f"
dependencies = [
"cfg-if",
"wasm-bindgen-macro",
@@ -574,9 +573,9 @@
[[package]]
name = "wasm-bindgen-backend"
-version = "0.2.90"
+version = "0.2.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcdc935b63408d58a32f8cc9738a0bffd8f05cc7c002086c6ef20b7312ad9dcd"
+checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b"
dependencies = [
"bumpalo",
"log",
@@ -589,9 +588,9 @@
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.90"
+version = "0.2.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e4c238561b2d428924c49815533a8b9121c664599558a5d9ec51f8a1740a999"
+checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -599,9 +598,9 @@
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.90"
+version = "0.2.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bae1abb6806dc1ad9e560ed242107c0f6c84335f1749dd4e8ddb012ebd5e25a7"
+checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66"
dependencies = [
"proc-macro2",
"quote",
@@ -612,9 +611,9 @@
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.90"
+version = "0.2.91"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4d91413b1c31d7539ba5ef2451af3f0b833a005eb27a631cec32bc0635a8602b"
+checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838"
[[package]]
name = "winapi"
diff -Nru rust-trash-3.2.1/Cargo.toml rust-trash-3.3.0/Cargo.toml
--- rust-trash-3.2.1/Cargo.toml 1970-01-01 00:00:01.000000000 +0000
+++ rust-trash-3.3.0/Cargo.toml 1970-01-01 00:00:01.000000000 +0000
@@ -12,7 +12,7 @@
[package]
edition = "2021"
name = "trash"
-version = "3.2.1"
+version = "3.3.0"
authors = ["Artur Kovacs "]
include = [
"src/**/*",
diff -Nru rust-trash-3.2.1/Cargo.toml.orig rust-trash-3.3.0/Cargo.toml.orig
--- rust-trash-3.2.1/Cargo.toml.orig 2006-07-24 01:21:28.000000000 +0000
+++ rust-trash-3.3.0/Cargo.toml.orig 2006-07-24 01:21:28.000000000 +0000
@@ -2,7 +2,7 @@
[package]
name = "trash"
-version = "3.2.1"
+version = "3.3.0"
authors = ["Artur Kovacs "]
license = "MIT"
readme = "README.md"
diff -Nru rust-trash-3.2.1/debian/changelog rust-trash-3.3.0/debian/changelog
--- rust-trash-3.2.1/debian/changelog 2024-01-29 08:39:02.000000000 +0000
+++ rust-trash-3.3.0/debian/changelog 2024-02-10 14:55:18.000000000 +0000
@@ -1,3 +1,10 @@
+rust-trash (3.3.0-1) unstable; urgency=medium
+
+ * Package trash 3.3.0 from crates.io using debcargo 2.6.1
+ - fixes the autopkgtest failure on armel
+
+ -- Fab Stz Sat, 10 Feb 2024 09:55:18 -0500
+
rust-trash (3.2.1-1) unstable; urgency=medium
* Package trash 3.2.1 from crates.io using debcargo 2.6.1
diff -Nru rust-trash-3.2.1/debian/control rust-trash-3.3.0/debian/control
--- rust-trash-3.2.1/debian/control 2024-01-29 08:39:02.000000000 +0000
+++ rust-trash-3.3.0/debian/control 2024-02-10 14:55:18.000000000 +0000
@@ -46,19 +46,19 @@
librust-trash-3+coinit-multithreaded-dev (= ${binary:Version}),
librust-trash-3+coinit-speed-over-memory-dev (= ${binary:Version}),
librust-trash-3+default-dev (= ${binary:Version}),
- librust-trash-3.2-dev (= ${binary:Version}),
- librust-trash-3.2+chrono-dev (= ${binary:Version}),
- librust-trash-3.2+coinit-apartmentthreaded-dev (= ${binary:Version}),
- librust-trash-3.2+coinit-disable-ole1dde-dev (= ${binary:Version}),
- librust-trash-3.2+coinit-multithreaded-dev (= ${binary:Version}),
- librust-trash-3.2+coinit-speed-over-memory-dev (= ${binary:Version}),
- librust-trash-3.2+default-dev (= ${binary:Version}),
- librust-trash-3.2.1-dev (= ${binary:Version}),
- librust-trash-3.2.1+chrono-dev (= ${binary:Version}),
- librust-trash-3.2.1+coinit-apartmentthreaded-dev (= ${binary:Version}),
- librust-trash-3.2.1+coinit-disable-ole1dde-dev (= ${binary:Version}),
- librust-trash-3.2.1+coinit-multithreaded-dev (= ${binary:Version}),
- librust-trash-3.2.1+coinit-speed-over-memory-dev (= ${binary:Version}),
- librust-trash-3.2.1+default-dev (= ${binary:Version})
+ librust-trash-3.3-dev (= ${binary:Version}),
+ librust-trash-3.3+chrono-dev (= ${binary:Version}),
+ librust-trash-3.3+coinit-apartmentthreaded-dev (= ${binary:Version}),
+ librust-trash-3.3+coinit-disable-ole1dde-dev (= ${binary:Version}),
+ librust-trash-3.3+coinit-multithreaded-dev (= ${binary:Version}),
+ librust-trash-3.3+coinit-speed-over-memory-dev (= ${binary:Version}),
+ librust-trash-3.3+default-dev (= ${binary:Version}),
+ librust-trash-3.3.0-dev (= ${binary:Version}),
+ librust-trash-3.3.0+chrono-dev (= ${binary:Version}),
+ librust-trash-3.3.0+coinit-apartmentthreaded-dev (= ${binary:Version}),
+ librust-trash-3.3.0+coinit-disable-ole1dde-dev (= ${binary:Version}),
+ librust-trash-3.3.0+coinit-multithreaded-dev (= ${binary:Version}),
+ librust-trash-3.3.0+coinit-speed-over-memory-dev (= ${binary:Version}),
+ librust-trash-3.3.0+default-dev (= ${binary:Version})
Description: Moving files and folders to the Recycle Bin - Rust source code
Source code for Debianized Rust crate "trash"
diff -Nru rust-trash-3.2.1/debian/tests/control rust-trash-3.3.0/debian/tests/control
--- rust-trash-3.2.1/debian/tests/control 2024-01-29 08:39:02.000000000 +0000
+++ rust-trash-3.3.0/debian/tests/control 2024-02-10 14:55:18.000000000 +0000
@@ -1,39 +1,39 @@
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --all-features
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --all-features
Features: test-name=rust-trash:@
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features chrono
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features chrono
Features: test-name=librust-trash-dev:chrono
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_apartmentthreaded
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_apartmentthreaded
Features: test-name=librust-trash-dev:coinit_apartmentthreaded
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_disable_ole1dde
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_disable_ole1dde
Features: test-name=librust-trash-dev:coinit_disable_ole1dde
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_multithreaded
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_multithreaded
Features: test-name=librust-trash-dev:coinit_multithreaded
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_speed_over_memory
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_speed_over_memory
Features: test-name=librust-trash-dev:coinit_speed_over_memory
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets
Features: test-name=librust-trash-dev:default
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features
Features: test-name=librust-trash-dev:
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: needs-root, allow-stderr, skip-not-installable
diff -Nru rust-trash-3.2.1/debian/tests/control.debcargo.hint rust-trash-3.3.0/debian/tests/control.debcargo.hint
--- rust-trash-3.2.1/debian/tests/control.debcargo.hint 2024-01-29 08:39:02.000000000 +0000
+++ rust-trash-3.3.0/debian/tests/control.debcargo.hint 2024-02-10 14:55:18.000000000 +0000
@@ -1,39 +1,39 @@
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --all-features
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --all-features
Features: test-name=rust-trash:@
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features chrono
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features chrono
Features: test-name=librust-trash-dev:chrono
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_apartmentthreaded
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_apartmentthreaded
Features: test-name=librust-trash-dev:coinit_apartmentthreaded
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_disable_ole1dde
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_disable_ole1dde
Features: test-name=librust-trash-dev:coinit_disable_ole1dde
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_multithreaded
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_multithreaded
Features: test-name=librust-trash-dev:coinit_multithreaded
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features --features coinit_speed_over_memory
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features --features coinit_speed_over_memory
Features: test-name=librust-trash-dev:coinit_speed_over_memory
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets
Features: test-name=librust-trash-dev:default
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
-Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.2.1 --all-targets --no-default-features
+Test-Command: /usr/share/cargo/bin/cargo-auto-test trash 3.3.0 --all-targets --no-default-features
Features: test-name=librust-trash-dev:
Depends: dh-cargo (>= 18), librust-chrono-0.4+clock-dev (>= 0.4.31-~~), librust-env-logger-0.10+default-dev, librust-once-cell-1+default-dev (>= 1.18.0-~~), librust-rand-0.8+default-dev (>= 0.8.5-~~), librust-serial-test-2-dev, librust-tempfile-3+default-dev (>= 3.8.0-~~), @
Restrictions: allow-stderr, skip-not-installable
diff -Nru rust-trash-3.2.1/src/lib.rs rust-trash-3.3.0/src/lib.rs
--- rust-trash-3.2.1/src/lib.rs 2006-07-24 01:21:28.000000000 +0000
+++ rust-trash-3.3.0/src/lib.rs 2006-07-24 01:21:28.000000000 +0000
@@ -138,6 +138,11 @@
description: String,
},
+ Os {
+ code: i32,
+ description: String,
+ },
+
/// **freedesktop only**
///
/// Error coming from file system
diff -Nru rust-trash-3.2.1/src/macos.rs rust-trash-3.3.0/src/macos.rs
--- rust-trash-3.2.1/src/macos.rs 2006-07-24 01:21:28.000000000 +0000
+++ rust-trash-3.3.0/src/macos.rs 2006-07-24 01:21:28.000000000 +0000
@@ -153,13 +153,20 @@
let result = command.output().map_err(into_unknown)?;
if !result.status.success() {
let stderr = String::from_utf8_lossy(&result.stderr);
- return Err(Error::Unknown {
- description: format!(
- "The AppleScript exited with error. Error code: {:?}, stderr: {}",
- result.status.code(),
- stderr
- ),
- });
+ match result.status.code() {
+ None => {
+ return Err(Error::Unknown {
+ description: format!("The AppleScript exited with error. stderr: {}", stderr),
+ })
+ }
+
+ Some(code) => {
+ return Err(Error::Os {
+ code,
+ description: format!("The AppleScript exited with error. stderr: {}", stderr),
+ })
+ }
+ };
}
Ok(())
}
diff -Nru rust-trash-3.2.1/src/windows.rs rust-trash-3.3.0/src/windows.rs
--- rust-trash-3.2.1/src/windows.rs 2006-07-24 01:21:28.000000000 +0000
+++ rust-trash-3.3.0/src/windows.rs 2006-07-24 01:21:28.000000000 +0000
@@ -2,7 +2,7 @@
use std::{
borrow::Borrow,
ffi::{c_void, OsStr, OsString},
- fs,
+ fs, io,
os::windows::{ffi::OsStrExt, prelude::*},
path::PathBuf,
};
@@ -34,7 +34,7 @@
impl From for Error {
fn from(err: windows::core::Error) -> Error {
- Error::Unknown { description: format!("windows error: {err}") }
+ Error::Os { code: err.code().0, description: format!("windows error: {err}") }
}
}
@@ -316,7 +316,21 @@
continue;
}
- for entry in fs::read_dir(&base_path).map_err(|err| Error::Unknown { description: err.to_string() })? {
+ let entries = match fs::read_dir(&base_path) {
+ Ok(entries) => entries,
+ Err(err) => {
+ let err = match err.kind() {
+ io::ErrorKind::NotFound | io::ErrorKind::PermissionDenied => {
+ Error::CouldNotAccess { target: base_path.to_string_lossy().to_string() }
+ }
+ _ => Error::Unknown { description: err.to_string() },
+ };
+
+ return Err(err);
+ }
+ };
+
+ for entry in entries {
let entry = entry.map_err(|err| Error::Unknown { description: err.to_string() })?;
traverse_paths_recursively(Some(entry.path()), collection)?;
}