From 9d36925700d69034caecb401c973d186d507ff8f Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 27 May 2022 14:02:17 -0400 Subject: [PATCH 1/2] Move tor-error crate to the "rust-patterns" category. There is no "tor" category; crates.io warned about this. --- crates/tor-error/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/tor-error/Cargo.toml b/crates/tor-error/Cargo.toml index 2375d944f..d098a472b 100644 --- a/crates/tor-error/Cargo.toml +++ b/crates/tor-error/Cargo.toml @@ -9,7 +9,7 @@ homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home" description = "Provides the unified type-erased error type returned by many (esp. high-level) Tor APIs." keywords = ["tor", "arti"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" -categories = ["tor"] +categories = ["rust-patterns"] [features] default = ["backtrace"] From 5b1622c28352efaeb765114fbfb7a11f905faf43 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 27 May 2022 14:07:06 -0400 Subject: [PATCH 2/2] tor-rtcompat: Fix a warning when building with no backends. Cargo publish (and probably nobody else!) builds this crate with no features enabled. When you do that, you get a warning about an unused `use std::io`. Fixing that. --- crates/tor-rtcompat/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/tor-rtcompat/src/lib.rs b/crates/tor-rtcompat/src/lib.rs index 3ed74c724..f09adcd40 100644 --- a/crates/tor-rtcompat/src/lib.rs +++ b/crates/tor-rtcompat/src/lib.rs @@ -179,6 +179,7 @@ pub mod scheduler; mod timer; mod traits; +#[cfg(any(feature = "async-std", feature = "tokio"))] use std::io; pub use traits::{ BlockOn, CertifiedConn, Runtime, SleepProvider, TcpListener, TcpProvider, TlsProvider,