Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions recipes/simple-http-server/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
context:
version: "0.8.0"

package:
name: simple-http-server
version: ${{ version }}

source:
url: https://github.com/TheWaWaR/simple-http-server/archive/refs/tags/v${{ version }}.tar.gz
sha256: b60965e0b0cd652bcb734185e6d8395cd4c1326305b190cba6ba0d7819f38af2

build:
number: 0
script:
env:
CARGO_PROFILE_RELEASE_STRIP: symbols
CARGO_PROFILE_RELEASE_LTO: fat
OPENSSL_NO_VENDOR: 1
content:
- if: unix
then:
- cargo auditable install --locked --no-track --bins --features tls --root ${{ PREFIX }} --path .
- if: win
then:
- set "OPENSSL_DIR=%LIBRARY_PREFIX%"
- cargo auditable install --locked --no-track --bins --features tls --root %LIBRARY_PREFIX% --path .
- cargo-bundle-licenses --format yaml --output ./THIRDPARTY.yml

requirements:
build:
- ${{ stdlib('c') }}
- ${{ compiler('c') }}
- ${{ compiler('rust') }}
- cargo-bundle-licenses
- cargo-auditable
- if: unix
then: pkg-config
host:
- openssl

tests:
- script:
- simple-http-server --help
- script:
- simple-http-server --version
- package_contents:
bin:
- simple-http-server
strict: true

about:
summary: Simple HTTP server in Rust
description: |
A simple HTTP(S) server for static files, written in Rust. Supports directory listing, upload, basic auth, range requests, compression, CORS, SPA fallback,
and PKCS #12 files.
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
homepage: https://github.com/TheWaWaR/simple-http-server
repository: https://github.com/TheWaWaR/simple-http-server

extra:
recipe-maintainers:
- salim-b
Loading