You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guide/src/rust-src-repo.md
+22-22
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,30 @@
3
3
For `cargo-bisect-rustc` to work, it needs to be able to read the git log of the [`rust-lang/rust`] repo.
4
4
`cargo-bisect-rustc` supports several methods for this described below.
5
5
6
+
## GitHub API
7
+
8
+
By default, `cargo-bisect-rustc` uses the GitHub API to fetch the information instead of using a local checkout.
9
+
10
+
```sh
11
+
cargo bisect-rustc --access=github
12
+
```
13
+
14
+
Beware that GitHub has restrictive rate limits for unauthenticated requests.
15
+
It allows 60 requests per hour, and `cargo-bisect-rustc` will use about 10 requests each time you run it (which can vary depending on the bisection).
16
+
If you run into the rate limit, you can raise it to 5000 requests per hour by setting the `GITHUB_TOKEN` environment variable to a [GitHub personal token].
17
+
If you use the [`gh` CLI tool], you can use it to get a token:
`cargo-bisect-rustc` can use the GitHub API to fetch the information instead of using a local checkout.
32
-
You can specify this with the `--access` CLI argument:
33
-
34
-
```sh
35
-
cargo bisect-rustc --access=github
36
-
```
37
-
38
-
Beware that GitHub has restrictive rate limits for unauthenticated requests.
39
-
It allows 60 requests per hour, and `cargo-bisect-rustc` will use about 10 requests each time you run it (which can vary depending on the bisection).
40
-
If you run into the rate limit, you can raise it to 5000 requests per hour by setting the `GITHUB_TOKEN` environment variable to a [GitHub personal token].
41
-
If you use the [`gh` CLI tool], you can use it to get a token:
0 commit comments