Skip to content

Commit 254ee9b

Browse files
budziqAndyGauge
authored andcommitted
Hide examples showing custom header setup until a clean solution is available (rust-lang-nursery#430)
Hidden ./src/web/clients/requests/header.md and ./src/web/clients/api/rate-limited.md as the custom header story is being reworked in https://github.com/hyperium/headers
1 parent ab7bedc commit 254ee9b

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ env_logger = "0.5"
2121
error-chain = "0.12"
2222
flate2 = "1.0"
2323
glob = "0.2"
24-
hyper = "0.11"
2524
image = "0.19"
2625
lazy_static = "1.0"
2726
log = "0.4"

build.rs

+6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@ extern crate walkdir;
33

44
use walkdir::WalkDir;
55

6+
const REMOVED_TESTS: &[&str] = &[
7+
"./src/web/clients/requests/header.md",
8+
"./src/web/clients/api/rate-limited.md",
9+
];
10+
611
fn main() {
712
let paths = WalkDir::new("./src/").into_iter()
813
// convert paths to Strings
914
.map(|p| p.unwrap().path().to_str().unwrap().to_string())
1015
// only compile markdown files
1116
.filter(|p| p.ends_with(".md"))
17+
.filter(|p| !REMOVED_TESTS.contains(&p.as_ref()))
1218
.collect::<Vec<_>>();
1319

1420
skeptic::generate_doc_tests(&paths[..]);

src/web/clients.md

-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
| Recipe | Crates | Categories |
44
|--------|--------|------------|
55
| [Make a HTTP GET request][ex-url-basic] | [![reqwest-badge]][reqwest] | [![cat-net-badge]][cat-net] |
6-
| [Set custom headers and URL parameters for a REST request][ex-rest-custom-params] | [![reqwest-badge]][reqwest] [![hyper-badge]][hyper] [![url-badge]][url] | [![cat-net-badge]][cat-net] |
76
| [Query the GitHub API][ex-rest-get] | [![reqwest-badge]][reqwest] [![serde-badge]][serde] | [![cat-net-badge]][cat-net] [![cat-encoding-badge]][cat-encoding] |
87
| [Check if an API resource exists][ex-rest-head] | [![reqwest-badge]][reqwest] | [![cat-net-badge]][cat-net] |
98
| [Create and delete Gist with GitHub API][ex-rest-post] | [![reqwest-badge]][reqwest] [![serde-badge]][serde] | [![cat-net-badge]][cat-net] [![cat-encoding-badge]][cat-encoding] |
109
| [Consume a paginated RESTful API][ex-paginated-api] | [![reqwest-badge]][reqwest] [![serde-badge]][serde] | [![cat-net-badge]][cat-net] [![cat-encoding-badge]][cat-encoding] |
11-
| [Handle a rate-limited API][ex-handle-rate-limited-api] | [![reqwest-badge]][reqwest] [![hyper-badge]][hyper] | [![cat-net-badge]][cat-net] |
1210
| [Download a file to a temporary directory][ex-url-download] | [![reqwest-badge]][reqwest] [![tempdir-badge]][tempdir] | [![cat-net-badge]][cat-net] [![cat-filesystem-badge]][cat-filesystem] |
1311
| [Make a partial download with HTTP range headers][ex-progress-with-range] | [![reqwest-badge]][reqwest] | [![cat-net-badge]][cat-net] |
1412
| [POST a file to paste-rs][ex-file-post] | [![reqwest-badge]][reqwest] | [![cat-net-badge]][cat-net] |

src/web/clients/apis.md

-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,4 @@
88

99
{{#include api/paginated.md}}
1010

11-
{{#include api/rate-limited.md}}
12-
1311
{{#include ../../links.md}}

src/web/clients/requests.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22

33
{{#include requests/get.md}}
44

5-
{{#include requests/header.md}}
6-
75
{{#include ../../links.md}}

0 commit comments

Comments
 (0)