Skip to content

Commit 196ca00

Browse files
committed
release 0.42.0
1 parent a11989d commit 196ca00

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
### Changed
66
### Removed
77

8+
## [0.42.0]
9+
### Added
10+
- Improved release search/lookup capability to support filtering assets by identifier
11+
- Improved version specifications to support prelease tags and parallel supported versions
12+
### Changed
13+
- Update reqwest features to allow http2 negotiation
14+
- Update quick-xml (0.37) and zipsign (0.1)
15+
- Specify per_page=100 when fetching github releases
16+
### Removed
17+
818
## [0.41.0]
919
### Added
1020
### Changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "self_update"
3-
version = "0.41.0"
3+
version = "0.42.0"
44
description = "Self updates for standalone executables"
55
repository = "https://github.com/jaemk/self_update"
66
keywords = ["update", "upgrade", "download", "release"]

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ which runs something roughly equivalent to:
4747
```rust
4848
use self_update::cargo_crate_version;
4949

50-
fn update() -> Result<(), Box<::std::error::Error>> {
50+
fn update() -> Result<(), Box<dyn std::error::Error>> {
5151
let status = self_update::backends::github::Update::configure()
5252
.repo_owner("jaemk")
5353
.repo_name("self_update")
@@ -89,7 +89,7 @@ Separate utilities are also exposed (**NOTE**: the following example _requires_
8989
see the [features](#features) section above). The `self_replace` crate is re-exported for convenience:
9090

9191
```rust
92-
fn update() -> Result<(), Box<::std::error::Error>> {
92+
fn update() -> Result<(), Box<dyn std::error::Error>> {
9393
let releases = self_update::backends::github::ReleaseList::configure()
9494
.repo_owner("jaemk")
9595
.repo_name("self_update")
@@ -100,7 +100,8 @@ fn update() -> Result<(), Box<::std::error::Error>> {
100100

101101
// get the first available release
102102
let asset = releases[0]
103-
.asset_for(&self_update::get_target()).unwrap();
103+
.asset_for(&self_update::get_target(), None)
104+
.unwrap();
104105

105106
let tmp_dir = tempfile::Builder::new()
106107
.prefix("self_update")
@@ -132,4 +133,5 @@ When using cross compilation tools such as cross if you want to use rustls and n
132133
self_update = { version = "0.27.0", features = ["rustls"], default-features = false }
133134
```
134135

136+
135137
License: MIT

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ fn update() -> Result<(), Box<dyn std::error::Error>> {
126126
}
127127
```
128128
129+
### Troubleshooting
130+
131+
When using cross compilation tools such as cross if you want to use rustls and not openssl
132+
133+
```toml
134+
self_update = { version = "0.27.0", features = ["rustls"], default-features = false }
135+
```
136+
129137
*/
130138

131139
pub use self_replace;

0 commit comments

Comments
 (0)