Skip to content

Commit 5b589cf

Browse files
Document rust-lang/cargo#14001. Don't disable simd feature anymore, pursuant to the aforementioned. Import Debian repository info
1 parent 4edaf13 commit 5b589cf

File tree

2 files changed

+38
-4
lines changed

2 files changed

+38
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ categories = ["network-programming", "web-programming::http-server"]
99
license = "MIT"
1010
build = "build.rs"
1111
# Remember to also update in appveyor.yml and the http-crates.io branch
12-
# Remember to also update brotli feature list!
1312
version = "2.0.2"
1413
# Remember to also update in http.md
1514
authors = ["thecoshman <rust@thecoshman.com>",
@@ -54,7 +53,7 @@ default-features = false
5453

5554
[dependencies.brotli]
5655
version = "6.0"
57-
# features = ["simd"] # comment this out for release
56+
features = ["simd"] # comment this out for release
5857

5958
[dependencies.iron]
6059
path = "vendor/iron-0.6.1"

README.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,46 @@ 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
```
38-
(the `https` crates.io package *was* http, but [is now unpublishable](//github.com/thecoshman/http/pull/160#issuecomment-2143877822))
44+
(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)
51+
52+
This will install `http` and `httplz` (identical, disable one or another if they clash) in the folder where all other binaries go.
53+
54+
#### From Debian repository
55+
56+
The following line in `/etc/apt/sources.list` or equivalent:
57+
```apt
58+
deb [signed-by=/etc/apt/keyrings/nabijaczleweli.asc] https://debian.nabijaczleweli.xyz sid main
59+
```
60+
61+
With [my PGP key](//nabijaczleweli.xyz/pgp.txt) (the two URLs are interchangeable):
62+
```sh
63+
sudo wget -O/etc/apt/keyrings/nabijaczleweli.asc https://debian.nabijaczleweli.xyz/nabijaczleweli.gpg.key
64+
sudo wget -O/etc/apt/keyrings/nabijaczleweli.asc https://nabijaczleweli.xyz/pgp.txt
65+
```
66+
(you may need to create /etc/apt/keyrings on apt <2.4.0 (<=bullseye) manually).
67+
68+
Then the usual
69+
```sh
70+
sudo apt update
71+
sudo apt install http
72+
```
73+
will work on amd64, i386, and most likely arm64.
3974

40-
Which will install `http` and `httplz` (identical, disable one or another if they clash) in the folder where all other binaries go.
75+
See the [repository README](//debian.nabijaczleweli.xyz/README) for more information.
4176

4277
### On Arch Linux
4378

0 commit comments

Comments
 (0)