File tree 3 files changed +37
-9
lines changed 3 files changed +37
-9
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ Router.map(function() {
46
46
this . route ( 'category-slugs' , { path : 'category_slugs' } ) ;
47
47
this . route ( 'team' , { path : '/teams/:team_id' } ) ;
48
48
this . route ( 'policies' ) ;
49
+ this . route ( 'data-access' ) ;
49
50
this . route ( 'confirm' , { path : '/confirm/:email_token' } ) ;
50
51
51
52
this . route ( 'catch-all' , { path : '*path' } ) ;
Original file line number Diff line number Diff line change
1
+ <div id =' crates-heading' >
2
+ {{ svg-jar ' circle-with-i' }}
3
+ <h1 >Accessing the Crates.io Data</h1 >
4
+ </div >
5
+
6
+ <p >
7
+ There are several ways of accessing the Crates.io data. You should try the
8
+ options in the order listed.
9
+ </p >
10
+
11
+ <ol >
12
+ <li >
13
+ <b >
14
+ The <a href =' https://github.com/rust-lang/crates.io-index' >crates.ioindex</a >.
15
+ </b >
16
+ This git repository is always kept up to date by crates.io, and it is used
17
+ by Cargo to speed up local dependency resolution. It contains the majority
18
+ of the data exposed by crates.io and is cheap to clone and to update.
19
+ </li >
20
+ <li >
21
+ <b >The database dumps (experimental).</b > The dumps contain all information
22
+ exposed by the API in a single download. They are updated every six hours.
23
+ The latest dump is available at the address
24
+ <a href =' https://static.crates.io/db-dump.tar.gz' >https://static.crates.io/db-dump.tar.gz</a >.
25
+ Information on using the dump is contained in the tarball.
26
+ </li >
27
+ <li >
28
+ <b >Crawl the crates.io API.</b > This should be used as a last resort, and
29
+ doing so is subject to our {{ #link-to ' policies' }} crawling policy{{ /link-to }} .
30
+ If the index and the database dumps do not satisfy your needs, we're happy to
31
+ discuss solutions to your needs that don't require you to crawl the registry.
32
+ You can email us at <
a href =" mailto:[email protected] " >
[email protected] </
a >.
33
+ </li >
34
+ </ol >
Original file line number Diff line number Diff line change 112
112
<h2 id =' crawlers' ><a href =' #crawlers' >Crawlers</a ></h2 >
113
113
114
114
<p >
115
- Before resorting to crawling crates.io, you should first see if you are able to
116
- gather the information you need from the
117
- <a href =' https://github.com/rust-lang/crates.io-index' >crates.io index</a >,
118
- which is a public git repository containing the majority
119
- of the information availble through our API.
120
-
121
- If the index does not have the information you need, we're also happy to
122
- discuss solutions to your needs that don't require you to crawl the registry.
123
- You can email us at <
a href =" mailto:[email protected] " >
[email protected] </
a >.
115
+ Before resorting to crawling crates.io, please read
116
+ {{ #link-to ' data-access' }} Accessing the Crates.io Data{{ /link-to }} .
124
117
</p >
125
118
126
119
<p >
You can’t perform that action at this time.
0 commit comments