commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
d2286b5e7977df08913e179dc8e0d4bb43f278cd | Ethan Brierley | 2024-04-10T08:12:00 | fix: Remove full url from default span & `http.url` -> `url.full` in `SpanBackendWithUrl` | diff --git a/reqwest-tracing/src/reqwest_otel_span_builder.rs b/reqwest-tracing/src/reqwest_otel_span_builder.rs
index c006d9d..cf3772c 100644
--- a/reqwest-tracing/src/reqwest_otel_span_builder.rs
+++ b/reqwest-tracing/src/reqwest_otel_span_builder.rs
@@ -103,7 +103,7 @@ pub fn default_span_name<'a>(req: &'a Request, ... | 2 | 4 | 6 |
09189ab63e86740324698b867be3e4cad019191d | Ethan Brierley | 2024-04-10T07:37:43 | fix: test compilation | diff --git a/reqwest-tracing/src/reqwest_otel_span_builder.rs b/reqwest-tracing/src/reqwest_otel_span_builder.rs
index a24c784..ef2395e 100644
--- a/reqwest-tracing/src/reqwest_otel_span_builder.rs
+++ b/reqwest-tracing/src/reqwest_otel_span_builder.rs
@@ -2,7 +2,7 @@ use std::borrow::Cow;
use http::Extensions;
use... | 2 | 9 | 2 |
938a3a0e3c6a1d49462f36826a5bb3b100b8e161 | Ethan Brierley | 2024-04-03T17:23:30 | chore: `cargo-fmt` | diff --git a/reqwest-tracing/src/reqwest_otel_span_builder.rs b/reqwest-tracing/src/reqwest_otel_span_builder.rs
index 92f580f..7ab94e0 100644
--- a/reqwest-tracing/src/reqwest_otel_span_builder.rs
+++ b/reqwest-tracing/src/reqwest_otel_span_builder.rs
@@ -1,10 +1,10 @@
use std::borrow::Cow;
+use http::Extensions;
... | 1 | 1 | 1 |
d20903e2f7516a1edafb9207127073bfdf04a58e | Ethan Brierley | 2024-03-12T15:03:25 | fix(reqwest-tracing): fix missing deps (#124)
Missed in https://github.com/TrueLayer/reqwest-middleware/pull/118 | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index 0086a9a..bb9fbc9 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -63,5 +63,7 @@ tracing_subscriber_0_3 = { package = "tracing-subscriber", version = "0.3.0" }
wiremock = "0.5.0"
opentelemetry_sdk_0_21 = { package ... | 2 | 5 | 1 |
b53d355aeaa6f06987d9107a1764385b9c2b9c89 | Ethan Brierley | 2024-03-05T12:09:50 | chore!(reqwest-retry): bump minor version 🚀 | diff --git a/reqwest-retry/Cargo.toml b/reqwest-retry/Cargo.toml
index f0b09a8..a9dd29e 100644
--- a/reqwest-retry/Cargo.toml
+++ b/reqwest-retry/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-retry"
-version = "0.3.0"
+version = "0.4.0"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>"]
editio... | 1 | 1 | 1 |
4bdf56f2e0c7b9fc086eafe59e1de41dba4eba3d | bbaldino | 2024-03-05T12:05:19 | Adapt to retry-policies changes (#113) | diff --git a/reqwest-retry/Cargo.toml b/reqwest-retry/Cargo.toml
index 5838f84..f0b09a8 100644
--- a/reqwest-retry/Cargo.toml
+++ b/reqwest-retry/Cargo.toml
@@ -18,7 +18,7 @@ chrono = { version = "0.4.19", features = ["clock"], default-features = false }
futures = "0.3.0"
http = "0.2.0"
reqwest = { version = "0.11.0... | 2 | 12 | 10 |
1c31f4bc7f5b6bf0950f22cbc0936d47e5305ec5 | Ethan Brierley | 2024-01-21T20:04:58 | chore!(reqwest-tracing): bump patch version :rocket: | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index ee3995b..e5b7bf0 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-tracing"
-version = "0.4.6"
+version = "0.4.7"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>... | 1 | 1 | 1 |
d297b1c5df65a4f8bc60fd88eca68978f1e0f3ec | Ethan Brierley | 2023-11-07T09:59:22 | chore: `cargo fmt` | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index d0b2680..a332982 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -12,7 +12,7 @@ use task_local_extensions::Extensions;
/// and can be safely executed again.
///
/// Currently, it allows setting ... | 1 | 1 | 1 |
b7017dca6f8b5a7beae6387c6ad873dc8abf2f95 | Jan Srzednicki | 2023-11-07T09:35:16 | Document using `tokio::time::sleep` (#111)
* Document using `tokio::time::sleep`
* Update reqwest-retry/src/middleware.rs
---------
Co-authored-by: Ethan Brierley <ethanboxx@gmail.com> | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index 783c017..d0b2680 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -12,7 +12,9 @@ use task_local_extensions::Extensions;
/// and can be safely executed again.
///
/// Currently, it allows setting ... | 1 | 3 | 1 |
304d6f1ebc3788c88b232387d54e37ef93b27431 | Ethan Brierley | 2023-10-24T09:50:53 | ci: fix `rustdoc::redundant_explicit_links` (#110) | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index 84b71da..783c017 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -11,7 +11,7 @@ use task_local_extensions::Extensions;
/// `RetryTransientMiddleware` offers retry logic for requests that fail in a... | 1 | 1 | 1 |
d5e71a0c895436b03e740bc372886be6011ad62b | Jeramy Singleton | 2023-05-11T12:30:15 | Added version function to RequestBuilder impl (#90)
* Adds version function to RequestBuilder impl
Addresses an issue where the Http version of a request cannot be changed when using reqwest_middleware
* Removes function from wasm compiles
---------
Co-authored-by: Jeramy Singleton <wisingle@microsoft.com> | diff --git a/reqwest-middleware/src/client.rs b/reqwest-middleware/src/client.rs
index 93fa1f3..8b714a7 100644
--- a/reqwest-middleware/src/client.rs
+++ b/reqwest-middleware/src/client.rs
@@ -210,6 +210,14 @@ impl RequestBuilder {
}
}
+ #[cfg(not(target_arch = "wasm32"))]
+ pub fn version(self, v... | 1 | 8 | 0 |
f8ff599f50d081d2f9aee1d4fa1f5c639d512f7f | Matthew Gapp | 2023-04-17T12:02:13 | fix: remove middleware retry limit (#87)
* refactor: Simplify retry middleware in reqwest.
Removed retry limit:
- Remove MAXIMUM_NUMBER_OF_RETRIES metadata and references in middleware.rs
- Correct mispelling: retry_decision to retry_decision in middleware.rs
- Update Retryable matching to only match Retryable... | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index d4d5ff2..4f1151a 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -8,9 +8,6 @@ use reqwest_middleware::{Error, Middleware, Next, Result};
use retry_policies::RetryPolicy;
use task_local_extensions... | 2 | 3 | 20 |
2e57e95f996ca1e5a6612fb7809ad7bafb2c817d | Balaji Arun | 2022-11-07T13:14:02 | Borrow self when try_clone and clone inner client. (#60)
Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com> | diff --git a/reqwest-middleware/src/client.rs b/reqwest-middleware/src/client.rs
index 58a1764..a8a4ac5 100644
--- a/reqwest-middleware/src/client.rs
+++ b/reqwest-middleware/src/client.rs
@@ -299,22 +299,18 @@ impl RequestBuilder {
client.execute_with_extensions(req, &mut extensions).await
}
- /// S... | 1 | 10 | 14 |
7a09e335aa70be91e88de713eef0a0e34a4db15d | Robert Collins | 2022-11-07T08:39:03 | Fix main builds (#66)
* Remove unneeded derefs
* Resolve reqwest_otel_span correctly in docs.
Macros always resolve to the crate root. | diff --git a/reqwest-tracing/src/reqwest_otel_span_builder.rs b/reqwest-tracing/src/reqwest_otel_span_builder.rs
index 2d7cd6e..04f546f 100644
--- a/reqwest-tracing/src/reqwest_otel_span_builder.rs
+++ b/reqwest-tracing/src/reqwest_otel_span_builder.rs
@@ -59,10 +59,10 @@ pub fn default_on_request_success(span: &Span, ... | 2 | 9 | 9 |
ddd7e121042a22a6c968d3a4d64f3531dce2f458 | Robert Collins | 2022-11-07T06:51:40 | Make clear examples are just examples (#63) | diff --git a/reqwest-tracing/src/lib.rs b/reqwest-tracing/src/lib.rs
index dfd72bf..8649b45 100644
--- a/reqwest-tracing/src/lib.rs
+++ b/reqwest-tracing/src/lib.rs
@@ -3,6 +3,8 @@
//! Attach [`TracingMiddleware`] to your client to automatically trace HTTP requests.
//!
//! In this example we define a custom span bu... | 2 | 3 | 0 |
e2635c9f8ddb7d06320d00eda6e8b3e62f2b44bc | tl-rodrigo-gryzinski | 2022-07-21T15:39:15 | Add note about streaming requests in RetryTransientMiddleware docs (#51) | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index 51195e0..f701b12 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -35,6 +35,18 @@ static MAXIMUM_NUMBER_OF_RETRIES: u32 = 10;
/// let client = ClientBuilder::new(Client::new()).with(retry_trans... | 1 | 12 | 0 |
b3f7ce40d3ec9be36c8a7bec0d9424f692c5cda3 | Conrad Ludgate | 2022-07-09T22:34:23 | fix recursion in retry (#49) | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index bdcc088..51195e0 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -58,33 +58,22 @@ impl<T: RetryPolicy + Send + Sync> Middleware for RetryTransientMiddleware<T> {
// downstream. This will g... | 1 | 11 | 29 |
ad18935d1fc74a56cf879acdf11e31e44d6a698e | tl-flavio-barinas | 2022-06-30T15:08:59 | bump/use alpha versions (#48) | diff --git a/reqwest-retry/Cargo.toml b/reqwest-retry/Cargo.toml
index f4a3e99..eb4dbde 100644
--- a/reqwest-retry/Cargo.toml
+++ b/reqwest-retry/Cargo.toml
@@ -10,7 +10,7 @@ keywords = ["reqwest", "http", "middleware", "retry"]
categories = ["web-programming::http-client"]
[dependencies]
-reqwest-middleware = { ve... | 2 | 3 | 3 |
cbe69f61a11de98ca259fe95ac78a0fda34fdfca | tl-flavio-barinas | 2022-06-30T13:57:55 | reqwest-tracing: bump to v0.3.0 | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index bff1998..f037785 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-tracing"
-version = "0.3.0-alpha.0"
+version = "0.3.0"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truela... | 1 | 1 | 1 |
8458d82eefe38d0046512ba07e57c69217419905 | Rodrigo Gryzinski | 2022-04-21T17:49:16 | (cargo-release) version 0.2.2 | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index d88ec4a..68b79b2 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-tracing"
-version = "0.2.2-alpha.0"
+version = "0.2.2"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truela... | 1 | 1 | 1 |
57ee4ec439da7ff411accd3a10852ab5f5f6a1a3 | Rodrigo Gryzinski | 2022-04-21T17:49:16 | (cargo-release) version 0.1.5 | diff --git a/reqwest-retry/Cargo.toml b/reqwest-retry/Cargo.toml
index 9a74df6..b2b308e 100644
--- a/reqwest-retry/Cargo.toml
+++ b/reqwest-retry/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-retry"
-version = "0.1.5-alpha.0"
+version = "0.1.5"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>"]... | 1 | 1 | 1 |
e9fd6f80ea424b1f47dbd921b1da3f09bca23b60 | Rodrigo Gryzinski | 2022-04-21T17:49:16 | (cargo-release) version 0.1.6 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index 16e044e..c729f0e 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.6-alpha.0"
+version = "0.1.6"
authors = ["Rodrigo Gryzinski <rodrigo.g... | 3 | 3 | 3 |
643f47ad9291be23eec9c712be5ac782e02f1840 | Marcus Griep | 2022-03-09T16:23:43 | chore: correct OpenTracing -> OpenTelemetry (#34) | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index 6f99b04..a8499d3 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
description = "Opentracing middleware for reqwest."
repository = "https://github.com/TrueLayer/reqwest-middleware"
lice... | 3 | 5 | 5 |
53b8b066f37ae5c08da0320a3b9e47666dea7495 | Luca Palmieri | 2022-01-24T11:26:25 | (cargo-release) start next development iteration 0.1.5-alpha.0 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index 69c1073..453eff3 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.4"
+version = "0.1.5-alpha.0"
authors = ["Rodrigo Gryzinski <rodrigo.g... | 3 | 3 | 3 |
992221d48a3d775231a87d39e08a776b62cc4829 | Luca Palmieri | 2022-01-24T11:25:35 | (cargo-release) version 0.1.4 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index b6dbf94..69c1073 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.4-alpha.0"
+version = "0.1.4"
authors = ["Rodrigo Gryzinski <rodrigo.g... | 1 | 1 | 1 |
8b8d22cafd40750ad85111e4c6b36621281d2680 | Christian Haynes | 2022-01-24T11:24:34 | moved to finish_non_exhaustive in Debug impl for ClientWithMiddleware (#27) | diff --git a/reqwest-middleware/src/client.rs b/reqwest-middleware/src/client.rs
index 09e6340..cae0045 100644
--- a/reqwest-middleware/src/client.rs
+++ b/reqwest-middleware/src/client.rs
@@ -143,7 +143,7 @@ impl fmt::Debug for ClientWithMiddleware {
// skipping middleware_stack field for now
f.debug... | 1 | 1 | 1 |
d3fe5acf02756f9920d4e7aaca6bd4a21bf2c8ae | Luca Palmieri | 2021-12-06T16:20:20 | (cargo-release) start next development iteration 0.1.4-alpha.0 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index 75165b4..b6dbf94 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.3"
+version = "0.1.4-alpha.0"
authors = ["Rodrigo Gryzinski <rodrigo.g... | 3 | 4 | 4 |
00f28c3bf0e3dcf0a39a8d63f3db28919ffed2ba | Luca Palmieri | 2021-12-06T16:19:44 | (cargo-release) version 0.1.3 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index db28924..75165b4 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.2"
+version = "0.1.3"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski... | 1 | 1 | 1 |
6cbea8d7e6d63124de6f7a0ce085c808d7df6f71 | Christian Haynes | 2021-12-06T16:18:49 | added custom Debug implementation for ClientWithMiddleware, skipping middleware_stack field (#22) | diff --git a/reqwest-middleware/src/client.rs b/reqwest-middleware/src/client.rs
index add9747..09e6340 100644
--- a/reqwest-middleware/src/client.rs
+++ b/reqwest-middleware/src/client.rs
@@ -3,7 +3,7 @@ use reqwest::multipart::Form;
use reqwest::{Body, Client, IntoUrl, Method, Request, Response};
use serde::Seriali... | 1 | 10 | 1 |
525f62039f11f6c758a371f552f547e4e23a3fef | Luca Palmieri | 2021-12-06T16:06:23 | Fix clippy lint. (#23) | diff --git a/reqwest-retry/src/middleware.rs b/reqwest-retry/src/middleware.rs
index 7f036ff..bdcc088 100644
--- a/reqwest-retry/src/middleware.rs
+++ b/reqwest-retry/src/middleware.rs
@@ -81,7 +81,7 @@ impl<T: RetryPolicy + Send + Sync> RetryTransientMiddleware<T> {
&'a self,
req: Request,
n... | 1 | 2 | 2 |
422566972a21db4f8d01a30ee70f491f40a5b4de | Geoffroy Couprie | 2021-11-30T16:00:23 | update tracing-opentelemetry to 0.16 (#18)
this update requires moving to tracing-subscriber 0.3. It removes chrono
from transitive dependencies, following
https://rustsec.org/advisories/RUSTSEC-2020-0159.html | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index 0242186..d95e4d9 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -13,7 +13,7 @@ categories = ["web-programming::http-client"]
opentelemetry_0_13 = ["opentelemetry_0_13_pkg", "tracing-opentelemetry_0_12_pkg"]
opentel... | 2 | 3 | 3 |
849f982f5e85a3d94b7942d0c95c1ebf335f4cb8 | Alessandro Caprarelli | 2021-10-18T14:54:38 | chore(toml): update version field to the next | diff --git a/reqwest-retry/Cargo.toml b/reqwest-retry/Cargo.toml
index 976bfe3..e5f0fbf 100644
--- a/reqwest-retry/Cargo.toml
+++ b/reqwest-retry/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-retry"
-version = "0.1.3-alpha.0"
+version = "0.1.4-alpha.0"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelaye... | 1 | 1 | 1 |
c98f59b165f43fc43747174f8db0f0d5a8a38487 | Rodrigo Gryzinski | 2021-09-15T10:23:01 | Rollback reqwest-middleware version to satisfy CI | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index 12c6a4b..3c3f369 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.2-alpha.0"
+version = "0.1.1"
authors = ["Rodrigo Gryzinski <rodrigo.g... | 1 | 1 | 1 |
9cb81b2f89a4378e4027073aecf61997d19c1852 | Rodrigo Gryzinski | 2021-09-15T10:04:03 | Prepare next release iteration 0.1.2 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index 3c3f369..12c6a4b 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.1"
+version = "0.1.2-alpha.0"
authors = ["Rodrigo Gryzinski <rodrigo.g... | 3 | 3 | 3 |
0eece565dba656950324628daeaf94c21d5a972f | Rodrigo Gryzinski | 2021-09-15T09:26:05 | (cargo-release) version 0.1.1 | diff --git a/reqwest-middleware/Cargo.toml b/reqwest-middleware/Cargo.toml
index e81808d..3c3f369 100644
--- a/reqwest-middleware/Cargo.toml
+++ b/reqwest-middleware/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-middleware"
-version = "0.1.0"
+version = "0.1.1"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski... | 1 | 1 | 1 |
a92e19d638e58b7d391df645d24c1cbd63d6e812 | Luca Palmieri | 2021-08-30T11:17:31 | (cargo-release) start next development iteration 0.1.2-alpha.0 | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index b9781f3..88a9feb 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-tracing"
-version = "0.1.1"
+version = "0.1.2-alpha.0"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truela... | 1 | 1 | 1 |
51c2f29185f1e23f9af6b289cdda81b9229de1dc | Luca Palmieri | 2021-08-30T11:15:25 | Prepare 0.1.1 release of reqwest-tracing | diff --git a/reqwest-tracing/Cargo.toml b/reqwest-tracing/Cargo.toml
index 6d1893a..b9781f3 100644
--- a/reqwest-tracing/Cargo.toml
+++ b/reqwest-tracing/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "reqwest-tracing"
-version = "0.1.0"
+version = "0.1.1"
authors = ["Rodrigo Gryzinski <rodrigo.gryzinski@truelayer.com>... | 1 | 1 | 1 |
c753c8d0951407e3f6c7388a86082e39eca3f6b5 | Changyuan Lyu | 2023-06-29T16:59:20 | tests: fix overridable()
Tested:
cargo test -p structopt --test rename_all_env
Signed-off-by: Changyuan Lyu <changyuanl@google.com> | diff --git a/tests/rename_all_env.rs b/tests/rename_all_env.rs
index ad5776b..24cba2e 100644
--- a/tests/rename_all_env.rs
+++ b/tests/rename_all_env.rs
@@ -42,5 +42,5 @@ fn overridable() {
let help = get_help::<BehaviorModel>();
assert!(help.contains("[env: be-nice=]"));
- assert!(help.contains("[env: B... | 1 | 1 | 1 |
2736281a647cecb23ae1c17bbaf625b18ebf4b38 | Tethys Svensson | 2021-12-20T17:38:16 | Upgrade heck | diff --git a/structopt-derive/Cargo.toml b/structopt-derive/Cargo.toml
index e081f89..43628e0 100644
--- a/structopt-derive/Cargo.toml
+++ b/structopt-derive/Cargo.toml
@@ -17,7 +17,7 @@ travis-ci = { repository = "TeXitoi/structopt" }
syn = { version = "1", features = ["full"] }
quote = "1"
proc-macro2 = "1"
-heck ... | 2 | 5 | 5 |
4c1a8fcb2f3f9d1359c81f5ccb12657a0f8e7a8f | Dan Zwell | 2021-11-10T14:00:29 | Link to the clap API in the documentation that says all clap methods can be used
This may help hammer home the point for new users who don't know the
clap API and might not realize this is a lot of functionality. | diff --git a/src/lib.rs b/src/lib.rs
index f0760ca..dc4a9ec 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -179,7 +179,9 @@
//! ## Raw methods
//!
//! They are the reason why `structopt` is so flexible. **Every and each method from
-//! `clap::App/Arg` can be used this way!**
+//! `clap::App/Arg` can be used this way!*... | 1 | 3 | 1 |
ffd4772156a26ff3845fb36d2f5dbd113fa579e1 | halvnykterist | 2021-10-25T20:14:44 | Typo
possessive "it" is "its" | diff --git a/src/lib.rs b/src/lib.rs
index 0411ea5..f0760ca 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -333,7 +333,7 @@
//!
//! ## Type magic
//!
-//! One of major things that makes `structopt` so awesome is it's type magic.
+//! One of major things that makes `structopt` so awesome is its type magic.
//! Do you w... | 1 | 1 | 1 |
ddb51cb33f89959597c88e476096dcf53d007b09 | Michiel De Muynck | 2021-10-13T16:28:25 | Fix duplication of aliases in subcommands
This commit fixes the issue where all top level methods were duplicated
for subcommands with fields (see issue #418). For some attributes, such
as aliases, this resulted in duplicate output. | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index b2835b4..0838f50 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -520,9 +520,14 @@ fn gen_augment_clap_enum(
_ => {
let app_var = Ident::new("subcommand", Span::call_site());
+ ... | 2 | 36 | 6 |
701d6ddbc114da5c67028c4916cbe1fa651e972e | Frank Steffahn | 2021-09-17T08:47:09 | Remove most `ignore`s and the `should_panic` from code blocks in documentation | diff --git a/src/lib.rs b/src/lib.rs
index 60e292a..0411ea5 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -60,7 +60,7 @@
//!
//! First, let's look at the example:
//!
-//! ```should_panic
+//! ```
//! use std::path::PathBuf;
//! use structopt::StructOpt;
//!
@@ -95,7 +95,10 @@
//! }
//!
//! fn main() {
+//! # ... | 1 | 17 | 4 |
d30aff1e467024f26764acd99343d9cce1b68b1c | Frank Steffahn | 2021-09-17T08:24:17 | Improve doc code block formatting | diff --git a/src/lib.rs b/src/lib.rs
index f7c5ce7..60e292a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -435,7 +435,6 @@
//! /// for its type (in this case 0).
//! #[structopt(skip)]
//! skipped: u32,
-//!
//! }
//!
//! # Opt::from_iter(
@@ -452,7 +451,7 @@
//! #[derive(StructOpt)]
//! struct Opt {
... | 1 | 32 | 33 |
4b09bd7cf0d42a1a61f617be6a0823c3205a436d | Guillaume Pinot | 2021-08-05T12:55:39 | correct example | diff --git a/examples/true_or_false.rs b/examples/true_or_false.rs
index 31a543e..814f3d8 100644
--- a/examples/true_or_false.rs
+++ b/examples/true_or_false.rs
@@ -23,7 +23,7 @@ struct Opt {
bar: bool,
// `bool` can be positional only with explicit `parse(...)` annotation
- #[structopt(long, parse(try_f... | 1 | 1 | 1 |
9004565bae425dfd14d82f3ede2b3c2d7e9c108f | Guillaume Pinot | 2021-07-19T14:52:03 | fix for rust 1.36 | diff --git a/tests/generics.rs b/tests/generics.rs
index 51b91d5..0da349b 100644
--- a/tests/generics.rs
+++ b/tests/generics.rs
@@ -101,7 +101,7 @@ fn generic_w_fromstr_trait_bound() {
assert_eq!(
Opt::<isize> { answer: 42 },
- Opt::<isize>::from_iter([&"--answer", "42"])
+ Opt::<isize>::... | 1 | 2 | 2 |
7ad03a023534c63136836ddfd1710c75e6dcdaa9 | Guillaume Pinot | 2021-07-19T14:49:09 | cargo fmt | diff --git a/src/lib.rs b/src/lib.rs
index b6e6b73..f7c5ce7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1089,8 +1089,6 @@
//! }
//! ```
-
-
// those mains are for a reason
#![allow(clippy::needless_doctest_main)]
diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index cf4dbba..b8e86de 1006... | 5 | 100 | 72 |
14589f1ef81c5e3530750fde7fbf8032fbbf9c01 | Mara Bos | 2021-07-19T12:54:01 | Fix warnings. | diff --git a/tests/custom-string-parsers.rs b/tests/custom-string-parsers.rs
index 89070ed..5e25996 100644
--- a/tests/custom-string-parsers.rs
+++ b/tests/custom-string-parsers.rs
@@ -76,7 +76,7 @@ fn test_parse_hex() {
let err = HexOpt::clap()
.get_matches_from_safe(&["test", "-n", "gg"])
.unwr... | 3 | 3 | 3 |
2cb6b09bfb25710ed98407840f14dd97cb6a903d | Fabio Valentini | 2021-07-18T15:29:40 | Bump strum dev-dependency to latest version (0.20 -> 0.21) | diff --git a/Cargo.toml b/Cargo.toml
index d45ecac..4f200dd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,4 +35,4 @@ paw_dep = { version = "1", optional = true, package = "paw" }
[dev-dependencies]
trybuild = { version = "1.0.5", features = ["diff"] }
rustversion = "1"
-strum = { version = "0.20", features = ["der... | 1 | 1 | 1 |
d16cfd264d3173fe64a883dea67e9975dc7bbb2d | Guillaume Pinot | 2021-03-05T10:41:32 | fix clippy | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 11655b8..aa16145 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -100,7 +100,7 @@ impl Method {
Method { name, args }
}
- fn from_lit_or_env(ident: Ident, lit: Option<LitStr>, env_var: &... | 1 | 8 | 4 |
8161b1522c89510409e6777d3278725c30d8d31f | Guillaume Pinot | 2021-03-05T10:35:34 | Add an example using strum | diff --git a/Cargo.toml b/Cargo.toml
index fdad9ef..105e472 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,3 +35,4 @@ paw_dep = { version = "1", optional = true, package = "paw" }
[dev-dependencies]
trybuild = { version = "1.0.5", features = ["diff"] }
rustversion = "1"
+strum = { version = "0.20", features = ["der... | 2 | 28 | 0 |
3848d5b55b0cf901604fccea1eb3ab56fead7890 | Jonatan Hatakeyama Zeidler | 2020-12-04T21:10:38 | Fix explanation on optional string list argument | diff --git a/examples/example.rs b/examples/example.rs
index 7a9a514..71cc124 100644
--- a/examples/example.rs
+++ b/examples/example.rs
@@ -37,7 +37,7 @@ struct Opt {
// An optional list of values, will be `None` if not present on
// the command line, will be `Some(vec![])` if no argument is
- // provid... | 1 | 1 | 1 |
399265f8a42be2631a20f05f7e63b32ec730594f | CreepySkeleton | 2020-11-30T09:40:42 | cargo fmt | diff --git a/tests/regressions.rs b/tests/regressions.rs
index 1a545f5..3847dc2 100644
--- a/tests/regressions.rs
+++ b/tests/regressions.rs
@@ -27,14 +27,15 @@ fn invisible_group_issue_439() {
#[test]
fn issue_447() {
macro_rules! Command {
- ( $name:ident, [
+ ( $name:ident, [
#[$meta:meta... | 1 | 7 | 6 |
583eb82c6b204b0d86563c98671768c53cd133a0 | CreepySkeleton | 2020-11-30T09:10:13 | Fix #447 | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index b99bd35..b818386 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -647,16 +647,19 @@ fn gen_from_subcommand(
_ => false,
});
+ let other = format_ident!("other");
+ let matches = forma... | 2 | 29 | 7 |
4c17b61a96d3f6a5ae5820399d6864787252984e | CreepySkeleton | 2020-10-12T14:58:48 | cargo fmt & clippy | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 6cc415b..b99bd35 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -11,6 +11,8 @@
//! for the usage of `#[derive(StructOpt)]`.
#![allow(clippy::large_enum_variant)]
+// FIXME: remove when and if our MSRV hits 1.... | 2 | 3 | 1 |
0852b918c40a1346b3ffe29ab0eba6991612c529 | CreepySkeleton | 2020-10-12T14:49:34 | Fix #439
If memory serves, a patch like this was submitted to clap_derive,
but not to structopt. Oops. | diff --git a/structopt-derive/src/ty.rs b/structopt-derive/src/ty.rs
index 89d8b00..ad3acd9 100644
--- a/structopt-derive/src/ty.rs
+++ b/structopt-derive/src/ty.rs
@@ -63,6 +63,8 @@ fn subty_if<F>(ty: &syn::Type, f: F) -> Option<&syn::Type>
where
F: FnOnce(&PathSegment) -> bool,
{
+ let ty = strip_group(ty);... | 2 | 46 | 0 |
1cd84057f8a67e9f12b29b169651a0f49d5eeb06 | CreepySkeleton | 2020-10-08T10:38:23 | cargo fmt | diff --git a/src/lib.rs b/src/lib.rs
index 23f284f..fb4ad85 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1076,12 +1076,12 @@ pub trait StructOpt {
/// Returns [`clap::App`] corresponding to the struct.
fn clap<'a, 'b>() -> clap::App<'a, 'b>;
- /// Builds the struct from [`clap::ArgMatches`]. It's guarant... | 1 | 8 | 6 |
4486e5876c4f295a1e794e1e54d20c6db68d17a1 | CreepySkeleton | 2020-10-08T10:22:44 | Cleanup documentation | diff --git a/src/lib.rs b/src/lib.rs
index 058ccad..23f284f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -309,7 +309,7 @@
//!
//! Usable only on field-level.
//!
-//! - [`rename_all_env`](##auto-deriving-environment-variables):
+//! - [`rename_all_env`](#auto-deriving-environment-variables):
//! [`rename_all... | 1 | 14 | 17 |
f5a7dcc6fa2a98db59046fb1c93bea1f3880aba7 | CreepySkeleton | 2020-10-08T09:46:20 | Add StructOpt::from_args_safe as a not-exiting alternative to from_args | diff --git a/src/lib.rs b/src/lib.rs
index c51277a..058ccad 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1089,6 +1089,16 @@ pub trait StructOpt {
Self::from_clap(&Self::clap().get_matches())
}
+ /// Builds the struct from the command line arguments ([`std::env::args_os`]).
+ /// Unlike [`StructOp... | 1 | 10 | 0 |
f7fcda26f4945f35adabf6b67738e4bfcd53d61a | CreepySkeleton | 2020-08-25T07:00:36 | Fix wrong span | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 3d9c330..d8c7b8b 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -481,8 +481,9 @@ fn gen_augment_clap_enum(
let kind = attrs.kind();
match &*kind {
Kind::ExternalSubcommand => {
+ ... | 1 | 2 | 1 |
9fe3f04c78843a367fe602e4bb54ca7f79f553a8 | Lulu | 2020-07-30T17:27:21 | Add support for lower/upper in rename_all (#412)
Add support for lower/upper in rename_all | diff --git a/examples/rename_all.rs b/examples/rename_all.rs
index 35f3c4f..c7c3538 100644
--- a/examples/rename_all.rs
+++ b/examples/rename_all.rs
@@ -17,6 +17,10 @@
//! - **Snake Case**: Keep all letters lowercase and indicate word boundaries
//! with underscores.
//! - **Verbatim**: Use the ori... | 4 | 42 | 2 |
26856febd20fabafbc9b52e779f53a47990955f0 | CreepySkeleton | 2020-07-25T02:08:34 | Reexport paw | diff --git a/Cargo.toml b/Cargo.toml
index 846f9b9..a51bda5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,7 @@ lints = ["clap/lints"]
debug = ["clap/debug"]
no_cargo = ["clap/no_cargo"]
doc = ["clap/doc"]
-paw = ["structopt-derive/paw"]
+paw = ["structopt-derive/paw", "paw_dep"]
[badges]
travis-ci = { re... | 3 | 5 | 2 |
c7d028a3516e724b429a687417052833b86571dc | Bob Gardner | 2020-07-09T21:26:09 | Fix required_if arg name in example | diff --git a/src/lib.rs b/src/lib.rs
index 9d4512b..b45a2fe 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -87,8 +87,8 @@
//! #[structopt(short)]
//! out_type: String,
//!
-//! /// File name: only required when `out` is set to `file`
-//! #[structopt(name = "FILE", required_if("out_type", "file"))]
+//!... | 1 | 2 | 2 |
7e431cb8684d6a51c8473249275addf29dd45bd7 | CreepySkeleton | 2020-06-12T12:34:56 | Flattening a subcommand now panics with a meaningful error message | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index a5cd7c2..87fadf2 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -559,7 +559,8 @@ fn gen_from_clap_enum(name: &Ident) -> TokenStream {
quote! {
fn from_clap(matches: &::structopt::clap::ArgMatches) -... | 2 | 26 | 1 |
83894e2a6b6b4d943eee6560084375ad7e55db65 | CreepySkeleton | 2020-06-12T10:08:07 | Some tweaks | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 1630864..a5cd7c2 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -28,7 +28,7 @@ use crate::{
use proc_macro2::{Span, TokenStream};
use proc_macro_error::{abort, abort_call_site, proc_macro_error, set_dummy};
-... | 1 | 11 | 2 |
0a6bc511dbd0fb994bb0e39539acf9b33d3a4419 | Aaron Hill | 2020-06-12T00:02:44 | Use proper span when generating `matches` token
In `struct-opt-derive`, a function is generated with a parameter named
`matches`. Since `quote!` is used to generate the function, the
`matches` token will be resolved using `Span::call_site`.
However, the literal identifier `matches` is also used inside several
`quote_... | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 820a4c8..1630864 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -248,6 +248,7 @@ fn gen_constructor(fields: &Punctuated<Field, Comma>, parent_attribute: &Attrs)
);
let field_name = field.ident.a... | 1 | 13 | 12 |
f84e7517867a07edfe40696114e0dba2daf55a86 | CreepySkeleton | 2020-06-12T09:11:49 | Remove unnecessary braces | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 5e49468..820a4c8 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -648,10 +648,10 @@ fn gen_from_subcommand(
}
(external, None) => {
- ::std::option::Option::S... | 2 | 3 | 3 |
2b2d9417f42ec2fe7e5687f6dfa8dae412f3d666 | Guillaume Pinot | 2020-05-14T09:30:22 | Fix first doc example for a practical one
fixes #389 | diff --git a/src/lib.rs b/src/lib.rs
index c42fe1f..9d4512b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -89,7 +89,7 @@
//!
//! /// File name: only required when `out` is set to `file`
//! #[structopt(name = "FILE", required_if("out_type", "file"))]
-//! file_name: String,
+//! file_name: Option<Strin... | 1 | 1 | 1 |
4759d50eee2213adad185256bc56486db7e03c23 | Guillaume Pinot | 2020-05-08T14:08:32 | Fix license in Cargo.toml
Fixes #386 | diff --git a/Cargo.toml b/Cargo.toml
index 12b2dbe..69b5d79 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,7 +8,7 @@ documentation = "https://docs.rs/structopt"
repository = "https://github.com/TeXitoi/structopt"
keywords = ["clap", "cli", "derive", "docopt"]
categories = ["command-line-interface"]
-license = "Apach... | 1 | 1 | 1 |
387fd12b52743d6f73ed8467599b6ee842749830 | CreepySkeleton | 2020-04-22T13:32:06 | Attach a note about the first element of an iterator | diff --git a/src/lib.rs b/src/lib.rs
index b80ac57..c42fe1f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1088,6 +1088,11 @@ pub trait StructOpt {
/// Gets the struct from any iterator such as a `Vec` of your making.
/// Print the error message and quit the program in case of failure.
+ ///
+ /// **NOT... | 1 | 10 | 0 |
e82709bca462b8dfbc980d339000ae0df8819e6e | Adrian Taylor | 2020-04-13T05:09:56 | Fix documentation typo. | diff --git a/src/lib.rs b/src/lib.rs
index d44d6c2..b80ac57 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -254,7 +254,7 @@
//!
//! - `author`: `author [= "author"]`
//!
-//! Usable only on top level: `App::author("author" or env!(CARGO_PKG_AUTHOR))`.
+//! Usable only on top level: `App::author("author" or env!... | 1 | 1 | 1 |
b6e5611553106359d8007aac25ad4f57de2ed394 | Josh Stone | 2020-04-08T21:01:14 | Upgrade to proc-macro-error 1.0.0 | diff --git a/structopt-derive/Cargo.toml b/structopt-derive/Cargo.toml
index 31a8ec1..03f7b37 100644
--- a/structopt-derive/Cargo.toml
+++ b/structopt-derive/Cargo.toml
@@ -18,7 +18,7 @@ syn = { version = "1", features = ["full"] }
quote = "1"
proc-macro2 = "1"
heck = "0.3.0"
-proc-macro-error = "0.4.7"
+proc-macro-... | 1 | 1 | 1 |
c1cd192c8ac12f0d59d144fd88c8085c71d3e8b8 | CreepySkeleton | 2020-03-18T07:05:31 | Make external_subcommand work even with one arg | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 80429f6..5e49468 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -641,7 +641,7 @@ fn gen_from_subcommand(
::std::option::Option::Some(#name::#var_name(
::std::iter::on... | 2 | 25 | 1 |
f9b99900f1ffcd881648a43823f090088f51de6a | CreepySkeleton | 2020-03-18T07:18:37 | Put some extra emphasis on raw methods | diff --git a/src/lib.rs b/src/lib.rs
index 788cf19..d44d6c2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -117,7 +117,10 @@
//!
//! ## Attributes
//!
-//! `#[structopt(...)]` attributes fall into two categories:
+//! You can control the way `structopt` translates your struct into an actual
+//! [`clap::App`] invocatio... | 1 | 19 | 6 |
bc43cdfb9252bcfb02e00fd0917ce1aa9dfc0480 | CreepySkeleton | 2020-03-01T09:42:38 | Enable syn(full) | diff --git a/structopt-derive/Cargo.toml b/structopt-derive/Cargo.toml
index 30d20c2..1a41fb1 100644
--- a/structopt-derive/Cargo.toml
+++ b/structopt-derive/Cargo.toml
@@ -14,7 +14,7 @@ license = "Apache-2.0/MIT"
travis-ci = { repository = "TeXitoi/structopt" }
[dependencies]
-syn = { version = "1", default-featur... | 2 | 20 | 1 |
db97a7ede44856c3a38e840183c28058aef1302d | CreepySkeleton | 2020-03-01T08:40:55 | Enable syn(clone-impls) feature | diff --git a/structopt-derive/Cargo.toml b/structopt-derive/Cargo.toml
index 5f2ed7f..c92244a 100644
--- a/structopt-derive/Cargo.toml
+++ b/structopt-derive/Cargo.toml
@@ -14,7 +14,7 @@ license = "Apache-2.0/MIT"
travis-ci = { repository = "TeXitoi/structopt" }
[dependencies]
-syn = { version = "1", default-featur... | 1 | 1 | 1 |
3a5d3266f441f7d0b765a96901c45bf77cbff882 | David McNeil | 2020-01-24T13:14:51 | Fix verbatim_doc_comment on fields
Signed-off-by: David McNeil <mcneil.david2@gmail.com> | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index e88132c..bf49f72 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -426,8 +426,8 @@ impl Attrs {
struct_casing,
env_casing,
);
- res.push_doc_comment(&field.attrs, "... | 2 | 24 | 1 |
883e08bc19fe31ba6231ba1431f8351a04274efe | CreepySkeleton | 2020-01-22T13:14:58 | Tidy up some doctests | diff --git a/src/lib.rs b/src/lib.rs
index 1f374f7..788cf19 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -347,7 +347,6 @@
//! Thus, the `speed` argument is generated as:
//!
//! ```
-//! # extern crate clap;
//! # fn parse_validator<T>(_: String) -> Result<(), String> { unimplemented!() }
//! clap::Arg::with_name("... | 1 | 2 | 3 |
8618a6b5ab235e847a858a35d40ac4443e792cd4 | CreepySkeleton | 2020-01-20T22:03:55 | Less another one | diff --git a/structopt-derive/src/parse.rs b/structopt-derive/src/parse.rs
index 118c568..0ed0a88 100644
--- a/structopt-derive/src/parse.rs
+++ b/structopt-derive/src/parse.rs
@@ -218,21 +218,13 @@ impl Parse for ParserSpec {
}
}
-struct CommaSeparated<T>(Punctuated<T, Token![,]>);
-
-impl<T: Parse> Parse for ... | 1 | 4 | 13 |
87d9d7c5f714b653019961573544bf3047d05a65 | Cecile Tonglet | 2020-01-16T16:09:41 | cargo fmt | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 983d780..f3704b0 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -539,7 +539,8 @@ fn gen_from_subcommand(
) -> TokenStream {
use syn::Fields::*;
- let (flatten_variants, variants): (Vec<_>, Vec<_>) = va... | 1 | 3 | 2 |
ede94a2eda6c592666002515cfbeb605bac05b76 | Cecile Tonglet | 2020-01-16T15:59:22 | Update structopt-derive/src/lib.rs
Co-Authored-By: CreepySkeleton <creepy-skeleton@yandex.ru> | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 7186dfb..983d780 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -493,7 +493,7 @@ fn gen_augment_clap_enum(
}
}
}
- Unn... | 1 | 1 | 1 |
4322e469e3883130317bbf1511e2946a1686da90 | Cecile Tonglet | 2020-01-16T15:58:49 | Update src/lib.rs
Co-Authored-By: CreepySkeleton <creepy-skeleton@yandex.ru> | diff --git a/src/lib.rs b/src/lib.rs
index b52260e..caf7c93 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -867,7 +867,7 @@
//! }
//! ```
//!
-//! ### Flattening enums of subcommands
+//! ### Flattening subcommands
//!
//! It is also possible to combine multiple enums of subcommands into one.
//! All the subcommands... | 1 | 1 | 1 |
d543dab7b08598b9aad02efa470e250338ac2ab0 | Cecile Tonglet | 2020-01-16T15:07:03 | Revert "WIP"
This reverts commit b678b051ca21ee7e07cac46061b0b66fd7757290. | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 9f635b0..38888c6 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -539,49 +539,57 @@ fn gen_from_subcommand(
) -> TokenStream {
use syn::Fields::*;
- let matches = variants.iter().map(|variant| {
- ... | 1 | 52 | 39 |
70a5d6d5c4a6484c42f3aa8aeac87c304f0d92b1 | Cecile Tonglet | 2020-01-16T14:17:22 | added test | diff --git a/tests/flatten.rs b/tests/flatten.rs
index 4983d86..f01e44e 100644
--- a/tests/flatten.rs
+++ b/tests/flatten.rs
@@ -93,3 +93,37 @@ fn flatten_in_subcommand() {
Opt::from_iter(&["test", "add", "-i", "43"])
);
}
+
+#[test]
+fn merge_subcommands_with_flatten() {
+ #[derive(StructOpt, Partial... | 1 | 34 | 0 |
fdc18cbb57aadb9ce986ea2e1d63f300f2eafa46 | Cecile Tonglet | 2020-01-16T13:22:38 | Some clean-up | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index d11d69c..8b55502 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -449,29 +449,35 @@ fn gen_augment_clap_enum(
) -> TokenStream {
use syn::Fields::*;
- let subcommands = variants.iter().filter_map(|varia... | 1 | 81 | 107 |
ba298f8689cd10ea36c646b705a6a5d3fca6cf92 | CreepySkeleton | 2020-01-16T09:36:20 | Silence all clippy warnings in generated code (#331) | diff --git a/structopt-derive/src/lib.rs b/structopt-derive/src/lib.rs
index 8972099..df6a305 100644
--- a/structopt-derive/src/lib.rs
+++ b/structopt-derive/src/lib.rs
@@ -627,7 +627,7 @@ fn impl_structopt_for_enum(
quote! {
#[allow(unknown_lints)]
#[allow(unused_variables, dead_code, unreachabl... | 1 | 1 | 1 |
7b1892865195f76d211922b357a1a54e28472252 | Cecile Tonglet | 2020-01-15T15:38:32 | Clean-up | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 1f2d36a..540792e 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -401,9 +401,8 @@ impl Attrs {
}
match &*res.kind {
Kind::Subcommand(_) => abort!(res.kind.span(), "subcommand... | 2 | 1 | 4 |
2ed4f0dbe5bfbc944dc8bb0bf9045c907ead6e32 | Cecile Tonglet | 2020-01-15T15:34:47 | Implemented: flatten on enums
Fixes #327 | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 411bb6a..1f2d36a 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -401,7 +401,7 @@ impl Attrs {
}
match &*res.kind {
Kind::Subcommand(_) => abort!(res.kind.span(), "subcommand... | 2 | 23 | 7 |
d804cecd7d5a4a78038919580e71f2f3cde4230a | CreepySkeleton | 2020-01-13T17:29:01 | Bugfix #324
Fixes https://github.com/TeXitoi/structopt/issues/324 | diff --git a/src/lib.rs b/src/lib.rs
index 716e0e8..33a4988 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -213,12 +213,12 @@
//! }
//! ```
//!
-//! - `name`: `[name = "name"]`
-//! - On top level: `App::new("name")`.
+//! - `name`: `[name = expr]`
+//! - On top level: `App::new(expr)`.
//!
//! The binary nam... | 5 | 70 | 60 |
78d38e96bb493405d1f9f0dae8ff5f4452ab136a | CreepySkeleton | 2020-01-13T14:40:12 | Get rid of syn-full | diff --git a/Cargo.toml b/Cargo.toml
index fad77c0..93fef46 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,5 +32,5 @@ structopt-derive = { path = "structopt-derive", version = "=0.4.0" }
lazy_static = "1.4.0"
[dev-dependencies]
-trybuild = "1.0.5"
+trybuild = { version = "1.0.5", features = ["diff"] }
rustversion... | 2 | 2 | 2 |
16f82cf62256e361544056bb93f7b2d8bb38705d | Chris Kay | 2020-01-07T23:01:47 | Fix default_value typo | diff --git a/src/lib.rs b/src/lib.rs
index d762b12..716e0e8 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -260,7 +260,7 @@
//!
//! Usable only on field-level.
//!
-//! - [`defautl_value`](#default-values): `default_value [= "default value"]`
+//! - [`default_value`](#default-values): `default_value [= "default val... | 1 | 1 | 1 |
3534cb305d9342f6d47131ba26eb425dc731a42d | CreepySkeleton | 2019-12-13T11:22:56 | impl StructOpt for Box<impl StructOpt> | diff --git a/src/lib.rs b/src/lib.rs
index e6eef86..b8250d6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -953,4 +953,51 @@ pub trait StructOpt {
{
Ok(Self::from_clap(&Self::clap().get_matches_from_safe(iter)?))
}
+
+ // All the following is NOT PUBLIC API!!!
+ //
+ // ** SUBJECT TO CHANGE WIT... | 2 | 65 | 28 |
e2270deae2c9b930541afecd4c28f41ddd1d669b | CreepySkeleton | 2019-12-21T10:39:56 | Consistent doc comments (#296) | diff --git a/Cargo.toml b/Cargo.toml
index 69b8480..e1df7fc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,4 +32,4 @@ structopt-derive = { path = "structopt-derive", version = "0.3.5" }
[dev-dependencies]
trybuild = "1.0.5"
-rustversion = "0.1"
+rustversion = "1"
diff --git a/src/lib.rs b/src/lib.rs
index 2d4c29d.... | 8 | 357 | 134 |
61065d0132b71335c010a1a0acfe209994959df1 | CreepySkeleton | 2019-12-09T08:33:46 | Update src/lib.rs
Co-Authored-By: Guillaume P. <TeXitoi@users.noreply.github.com> | diff --git a/src/lib.rs b/src/lib.rs
index b46a5f3..2d4c29d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -526,7 +526,7 @@
//! value the value will be derived from the field's name. This is controlled by
//! `#[structopt(rename_all_env)]`.
//!
-//! `rename_all_env` works almost exactly as `rename_all` (including overr... | 1 | 1 | 1 |
78c0d0a103c7d016fb185e996a803da14c88b6eb | CreepySkeleton | 2019-12-06T09:48:32 | Introduce #[structopt(rename_all_env)] | diff --git a/src/lib.rs b/src/lib.rs
index c7b2a41..b46a5f3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -475,7 +475,7 @@
//! #[derive(StructOpt)]
//! struct Foo {
//! #[structopt(short, long, env = "PARAMETER_VALUE")]
-//! param: String
+//! parameter_value: String
//! }
//! # fn main() {}
//! ```
@@ -487,7... | 5 | 136 | 11 |
62f59d3bfd13c8802f4065d57805eb905c9ec4b7 | csrene | 2019-12-12T00:37:50 | fixed typo, removed misleading doc | diff --git a/examples/group.rs b/examples/group.rs
index 36d14f5..d53de6a 100644
--- a/examples/group.rs
+++ b/examples/group.rs
@@ -3,12 +3,12 @@
use structopt::{clap::ArgGroup, StructOpt};
#[derive(StructOpt, Debug)]
-#[structopt(group = ArgGroup::with_name("vers").required(true))]
+#[structopt(group = ArgGroup::... | 1 | 2 | 2 |
405f51c98dd6cc81df0241cae7b9b0dfd9a64d2d | CreepySkeleton | 2019-12-05T16:31:32 | Add tests/utils.rs | diff --git a/tests/author_version_about.rs b/tests/author_version_about.rs
index e550ed2..0c4a4fb 100644
--- a/tests/author_version_about.rs
+++ b/tests/author_version_about.rs
@@ -6,7 +6,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
+mod utils;
+
use st... | 5 | 78 | 72 |
e2a7e690a5414980b2857dbf31b29d6b89ab9c45 | CreepySkeleton | 2019-12-02T03:23:53 | cargo clippy | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 9578eaa..997e925 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -120,7 +120,7 @@ impl ToTokens for Method {
impl Parser {
fn default_spanned(span: Span) -> Sp<Self> {
- let kind = Sp::new(P... | 4 | 15 | 16 |
d1a50bf204970bccd55a0351a114fc8e05c854ce | CreepySkeleton | 2019-11-28T01:37:35 | Handle special types correctly | diff --git a/structopt-derive/src/attrs.rs b/structopt-derive/src/attrs.rs
index 634796d..9578eaa 100644
--- a/structopt-derive/src/attrs.rs
+++ b/structopt-derive/src/attrs.rs
@@ -6,7 +6,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
-use crate::{parse::*,... | 4 | 188 | 69 |
42aa40faf14db2805cc67abceef8271150450b78 | Guillaume Pinot | 2019-11-20T14:03:07 | Add an example of a negative flag (i.e. --no-verbose)
Question from https://github.com/TeXitoi/structopt/issues/280 | diff --git a/examples/negative_flag.rs b/examples/negative_flag.rs
new file mode 100644
index 0000000..62b2932
--- /dev/null
+++ b/examples/negative_flag.rs
@@ -0,0 +1,12 @@
+use structopt::StructOpt;
+
+#[derive(Debug, StructOpt)]
+struct Opt {
+ #[structopt(long = "no-verbose", parse(from_flag = std::ops::Not::not... | 1 | 12 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.