Skip to content

Commit b102709

Browse files
https://github.com/rust-lang/cargo/issues/14001
1 parent d30ea7b commit b102709

File tree

5 files changed

+25
-10
lines changed

5 files changed

+25
-10
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Cargo.lock
2+
target

Cargo.lock

Lines changed: 0 additions & 7 deletions
This file was deleted.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords = ["http", "server", "https", "webdav", "directory"]
88
categories = ["network-programming", "web-programming::http-server"]
99
license = "MIT"
1010
build = "build.rs"
11-
version = "2.0.1"
11+
version = "2.0.2"
1212
# Remember to also update in http.md
1313
authors = ["[email protected]"]
1414

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,23 @@ See [the manpage](http.md) for full list.
3333
If you have `cargo` installed (you're a Rust developer) all you need to do is:
3434

3535
```sh
36+
# unix:
37+
RUSTC_BOOTSTRAP=1 cargo install --git https://github.com/thecoshman/http
38+
```
39+
```cmd
40+
rem windows:
41+
set RUSTC_BOOTSTRAP=1
3642
cargo install --git https://github.com/thecoshman/http
3743
```
3844
(the `https` crates.io package *was* http, but [is now unpublishable](//github.com/thecoshman/http/pull/160#issuecomment-2143877822)).
45+
Similarly, cargo [*expressly ignores* configuration that lets the crate be built](https://github.com/rust-lang/cargo/issues/14001) when building through `cargo install`,
46+
hence the need for manual `RUSTC_BOOTSTRAP=1`, you may also want to set
47+
```sh
48+
cargo install-update-config -e RUSTC_BOOTSTRAP=1 https
49+
```
50+
for use with [cargo-update](//crates.io/crates/cargo-update)
3951

40-
Which will install `http` and `httplz` (identical, disable one or another if they clash) in the folder where all other binaries go.
52+
This will install `http` and `httplz` (identical, disable one or another if they clash) in the folder where all other binaries go.
4153

4254
#### From Debian repository
4355

build.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,16 @@ fn main() {
44
eprintln!("This is for a mundane reason of needing to vendor patched dependencies: https://github.com/thecoshman/http/pull/160#issuecomment-2143877822");
55
eprintln!("");
66
eprintln!("Please install http from git by running");
7-
eprintln!(" cargo install -f --git https://github.com/thecoshman/http");
7+
#[cfg(not(windows))]
8+
eprintln!(" RUSTC_BOOTSTRAP=1 cargo install -f --git https://github.com/thecoshman/http");
9+
#[cfg(windows)]
10+
{
11+
eprintln!(" set RUSTC_BOOTSTRAP=1");
12+
eprintln!(" cargo install -f --git https://github.com/thecoshman/http");
13+
}
814
eprintln!("and then update as normal.");
15+
eprintln!("For use with cargo-update, also do");
16+
eprintln!(" cargo install-update-config -e RUSTC_BOOTSTRAP=1 https");
917
eprintln!("");
1018
eprintln!("You will continue to only receive normal, full, releases.");
1119
eprintln!("");

0 commit comments

Comments
 (0)