Skip to content

Commit ab9b47f

Browse files
committed
Improve documentation
* bump version
1 parent 6d29aaa commit ab9b47f

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

Cargo.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
[package]
22
authors = ["Georg Semmler <[email protected]>"]
33
name = "crates-mirror"
4-
version = "0.1.0"
4+
version = "0.2.0"
55
license = "MIT/Apache-2.0"
66
description = "Crates.io mirror"
77
repository = "https://github.com/weiznich/crates-mirror"
8+
readme = "README.md"
9+
keywords = ["crates.io", "mirror"]
10+
include = [
11+
"src/main.rs",
12+
"Cargo.toml",
13+
"Cargo.lock",
14+
"README.md"
15+
]
816

917
[dependencies]
1018
clap = "2"

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# crates-mirror
1+
# Crates.io caching mirror
22
[![Build Status](https://travis-ci.org/weiznich/crates-mirror.svg?branch=master)](https://travis-ci.org/weiznich/crates-mirror)
33

44

@@ -17,24 +17,36 @@ Stores the index localy on the filesystem.
1717
base_path = "/path/to/store/crates"
1818
listen_on = "localhost:3000"
1919
remote_api = "https://crates.io"
20-
poll_intervall = 60 #seconds
21-
registry_config = {upstream_url = "https://github.com/rust-lang/crates.io-index"}
20+
poll_intervall = 300 # seconds
21+
22+
[registry_config]
23+
upstream_url = "https://github.com/rust-lang/crates.io-index"
2224
```
2325
### Remote Index
2426
Stores the index in a remote git repositority.
2527
```toml
26-
base_path = "/path/to/store/crates"
28+
base_path = "/tmp/crates_mirror"
2729
listen_on = "localhost:3000"
2830
remote_api = "https://crates.io"
29-
poll_intervall = 60 #seconds
30-
registry_config = {upstream_url = "https://github.com/rust-lang/crates.io-index", origin_url = "[email protected]/whatever"}
31+
poll_intervall = 300 # seconds
32+
33+
[registry_config]
34+
upstream_url = "https://github.com/rust-lang/crates.io-index"
35+
36+
[registry_config.origin]
37+
url = "[email protected]/whatever"
38+
username = "weiznich" #optional, could also use ssh-key
39+
password = "xxxxx" #optional, could also use ssh-key
3140
```
3241

42+
## Reading Material
43+
* [Dissecting Crates.io: Bare Minimum Mirror](https://gmjosack.github.io/posts/dissecting-cratesio-minimum-mirror/)
44+
3345
## License
3446

3547
Licensed under either of
3648

3749
* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
3850
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
3951

40-
at your option.
52+
at your option.

0 commit comments

Comments
 (0)