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
Docs.rs will provide build as json from following URL:
`https://docs.rs/crate/<CRATE_NAME>/<CRATE_VERSION>/builds.json`.
A get request to this URL will return a list of build attempts. First
object in this list will always contain latest build attempt. This
object will contain following fields:
Example output of `https://docs.rs/crate/rand/0.3.15/builds.json`:
```json
[
{
"build_status":true,
"build_time":"2016-12-29T10:10:49Z",
"build_time_relative":"Dec 29, 2016",
"cratesfyi_version":"cratesfyi 0.2.3 (eea831c 2016-12-29)",
"id":1,
"output":null,
"rustc_version":"rustc 1.15.0-nightly (71c06a56a 2016-12-18)"
}
]
```
`build_status` is `true` if docs.rs successfully built documentation of
a crate and `false` if docs.rs failed to build or a crate doesn't have
any documentation.
This list will contain zero elements if requested crate doesn't exists
in docs.rs.
Fixes: #87
Ref: rust-lang/crates.io#459
Ref: rust-lang/crates.io#506
0 commit comments