9
9
[ codecov-badge ] : https://codecov.io/gh/mgrachev/update-informer/branch/main/graph/badge.svg?token=A4XD1DGFGJ
10
10
[ codecov-url ] : https://codecov.io/gh/mgrachev/update-informer
11
11
[ downloads-badge ] : https://img.shields.io/crates/d/update-informer
12
- [ etcetera] : https://github.com/lunacookies/etcetera
12
+ [ etcetera ] : https://github.com/lunacookies/etcetera
13
13
[ ureq ] : https://github.com/algesten/ureq
14
14
[ semver ] : https://github.com/dtolnay/semver
15
15
[ serde ] : https://github.com/serde-rs/serde
35
35
[ ![ Downloads] [ downloads-badge ]] [ crates-url ]
36
36
37
37
<img align="right"
38
- alt="update-informer"
39
- src="https://raw.githubusercontent.com/mgrachev/update-informer/main/logo.svg?sanitize=true">
38
+ alt="update-informer"
39
+ src="https://raw.githubusercontent.com/mgrachev/update-informer/main/logo.svg?sanitize=true">
40
40
41
41
Update informer for applications written in Rust 🦀
42
42
@@ -47,7 +47,8 @@ It checks for a new version on Crates.io, GitHub, Npm and PyPI. 🚀
47
47
- Support of ** Crates.io** , ** GitHub** , ** Npm** and ** PyPI** .
48
48
- Configurable [ check frequency] ( #interval ) and [ request timeout] ( #request-timeout ) .
49
49
- [ Caching] ( #caching ) the results of checking updates.
50
- - Ability to implement your own [ registry] ( #implementing-your-own-registry ) or [ http client] ( #using-your-own-http-client ) .
50
+ - Ability to implement your own [ registry] ( #implementing-your-own-registry )
51
+ or [ http client] ( #using-your-own-http-client ) .
51
52
- ** Minimum dependencies** - only [ etcetera] , [ semver] , [ serde] and an HTTP client ([ ureq] or [ reqwest] ).
52
53
53
54
## Idea
@@ -204,7 +205,8 @@ informer.check_version();
204
205
205
206
## Tests
206
207
207
- In order not to check for updates in tests, you can use the ` FakeUpdateInformer::check_version ` function, which returns the desired version:
208
+ In order not to check for updates in tests, you can use the ` FakeUpdateInformer::check_version ` function, which returns
209
+ the desired version:
208
210
209
211
``` rust
210
212
use update_informer :: {registry, Check };
@@ -225,7 +227,8 @@ if let Some(version) = informer.check_version().ok().flatten() {
225
227
226
228
## Integration tests
227
229
228
- To use the ` FakeUpdateInformer::check_version ` function in integration tests, you must first add the feature flag to ` Cargo.toml ` :
230
+ To use the ` FakeUpdateInformer::check_version ` function in integration tests, you must first add the feature flag to
231
+ ` Cargo.toml ` :
229
232
230
233
``` toml
231
234
[features ]
0 commit comments