Skip to content

Commit

Permalink
Document rust-lang/cargo#14001. Don't disable simd feature anymore, p…
Browse files Browse the repository at this point in the history
…ursuant to the aforementioned. Import Debian repository info
  • Loading branch information
nabijaczleweli committed Jun 3, 2024
1 parent 4edaf13 commit 5b589cf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ categories = ["network-programming", "web-programming::http-server"]
license = "MIT"
build = "build.rs"
# Remember to also update in appveyor.yml and the http-crates.io branch
# Remember to also update brotli feature list!
version = "2.0.2"
# Remember to also update in http.md
authors = ["thecoshman <[email protected]>",
Expand Down Expand Up @@ -54,7 +53,7 @@ default-features = false

[dependencies.brotli]
version = "6.0"
# features = ["simd"] # comment this out for release
features = ["simd"] # comment this out for release

[dependencies.iron]
path = "vendor/iron-0.6.1"
Expand Down
39 changes: 37 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,46 @@ See [the manpage](http.md) for full list.
If you have `cargo` installed (you're a Rust developer) all you need to do is:

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

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

#### From Debian repository

The following line in `/etc/apt/sources.list` or equivalent:
```apt
deb [signed-by=/etc/apt/keyrings/nabijaczleweli.asc] https://debian.nabijaczleweli.xyz sid main
```

With [my PGP key](//nabijaczleweli.xyz/pgp.txt) (the two URLs are interchangeable):
```sh
sudo wget -O/etc/apt/keyrings/nabijaczleweli.asc https://debian.nabijaczleweli.xyz/nabijaczleweli.gpg.key
sudo wget -O/etc/apt/keyrings/nabijaczleweli.asc https://nabijaczleweli.xyz/pgp.txt
```
(you may need to create /etc/apt/keyrings on apt <2.4.0 (<=bullseye) manually).

Then the usual
```sh
sudo apt update
sudo apt install http
```
will work on amd64, i386, and most likely arm64.

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

### On Arch Linux

Expand Down

0 comments on commit 5b589cf

Please sign in to comment.