Crates.io | binhost |
lib.rs | binhost |
version | 0.2.2 |
source | src |
created_at | 2023-12-16 05:53:53.802356 |
updated_at | 2023-12-16 07:58:33.898165 |
description | HTTP server to easily serve files |
homepage | |
repository | https://github.com/ivabus/binhost |
max_upload_size | |
id | 1071580 |
size | 55,743 |
HTTP server to easily serve (prebuilt) binaries for any (UNIX-like) platform
cargo install --git https://github.com/ivabus/binhost
List options with --help
Make sure to use proxy with rate limiter in prod.
Directory, passed to binhost
--dir
option (defaults to ./bin
) should look like (for hello
binary)
Note: list of binaries will be refreshed every 5 minutes (by default, see --refresh
option)
bin
└── hello
├── Darwin
│ ├── arm64
│ │ └── hello
│ └── x86_64
│ └── hello
└── Linux
└── aarch64
└── hello
GET / HTTP/1.1
- hello (platforms: ["Linux-aarch64", "Darwin-arm64", "Darwin-x86_64"])
curl | sh
syntax)This script will determine platform and arch and download necessary binary (and check hashsum if sha256sum
binary is present in $PATH
).
GET /<BIN> HTTP/1.1
GET /bin/<BIN>/<PLATFORM>/<ARCH> HTTP/1.1
Only with "sha256" feature (recalculates hash on each request, may be bad on large files or lots of requests)
GET /bin/<BIN>/<PLATFORM>/<ARCH>/sha256 HTTP/1.1
a5d1fba1c28b60038fb1008a3c482b4119070a537af86a05046dedbe8f85e18d hello
This project is licensed under MIT License