index : static-web-server.git

ascending towards madness

author Jose Quintana <1700322+joseluisq@users.noreply.github.com> 2023-08-07 19:55:43.0 +00:00:00
committer GitHub <noreply@github.com> 2023-08-07 19:55:43.0 +00:00:00
commit
94e050b51700cbf479faef8842fec217c9b0c28d [patch]
tree
a2a3666e7683f2a142ef40277cdfcb791d409c14
parent
714897af90433595c7b1784d7dc3ac3069f6115e
download
94e050b51700cbf479faef8842fec217c9b0c28d.tar.gz

feat: netbsd x86_64 target (#251)

- x86_64-unknown-netbsd

Diff

 .github/workflows/devel.yml               | 11 ++++++++---
 .github/workflows/release.yml             |  5 +++++
 docs/content/download-and-install.tmpl.md |  2 ++
 docs/content/migration.md                 |  2 +-
 docs/content/platforms-architectures.md   |  5 +++++
 5 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml
index 0c31d27..17b7334 100644
--- a/.github/workflows/devel.yml
+++ b/.github/workflows/devel.yml
@@ -48,6 +48,7 @@ jobs:
          # NOTE: looks like not supported by `listenfd` crate
          # - linux-android-armv7
          - linux-android-arm64
          - netbsd
          - macos
          - macos-arm64
          - windows-msvc
@@ -112,6 +113,10 @@ jobs:
            os: ubuntu-22.04
            rust: stable
            target: aarch64-linux-android
          - build: netbsd
            os: ubuntu-22.04
            rust: stable
            target: x86_64-unknown-netbsd
          - build: macos
            os: macos-12
            rust: stable
@@ -177,7 +182,7 @@ jobs:

    - name: Skip tests
      shell: bash
      if: ${{ contains(fromJSON('["macos-arm64", "linux-android-arm64", "linux-android-armv7"]'), matrix.build) }}
      if: ${{ contains(fromJSON('["macos-arm64", "linux-android-arm64", "linux-android-armv7", "netbsd"]'), matrix.build) }}
      run: |
        # Can't run tests: cross-compiling
        echo "SKIP_TESTS=--no-run" >> $GITHUB_ENV
@@ -196,8 +201,8 @@ jobs:
      shell: bash
      run: |
        case "${{ matrix.build }}" in
          *-arm*)
            echo "arm(64) is not supported on ci, can not execute!"
          *-arm*|*bsd*)
            echo "arm(64) or BSD are unable to execute on CI!"
          ;;
          *)
            if [[ "${{ matrix.os }}" == "windows-2022" ]]; then
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 935e06d..a94d259 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -60,6 +60,7 @@ jobs:
          - linux-musl-armv7
          # - linux-android-armv7
          - linux-android-arm64
          - netbsd
          - macos
          - macos-arm64
          - windows-msvc
@@ -111,6 +112,10 @@ jobs:
          os: ubuntu-22.04
          rust: stable
          target: aarch64-linux-android
        - build: netbsd
          os: ubuntu-22.04
          rust: stable
          target: x86_64-unknown-netbsd
        - build: macos
          os: macos-12
          rust: stable
diff --git a/docs/content/download-and-install.tmpl.md b/docs/content/download-and-install.tmpl.md
index 5edc489..ad544af 100644
--- a/docs/content/download-and-install.tmpl.md
+++ b/docs/content/download-and-install.tmpl.md
@@ -88,6 +88,8 @@ Pre-compiled binaries grouped by CPU architectures.
<small>**SHA256SUM:** `{{x86_64-unknown-linux-gnu.tar.gz}}`</small>
- [static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-linux-musl.tar.gz]https://github.com/static-web-server/static-web-server/releases/download/{{RELEASE_VERSION}}/static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-linux-musl.tar.gz<br>
<small>**SHA256SUM:** `{{x86_64-unknown-linux-musl.tar.gz}}`</small>
- [static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-netbsd.tar.gz]https://github.com/static-web-server/static-web-server/releases/download/{{RELEASE_VERSION}}/static-web-server-{{RELEASE_VERSION}}-x86_64-unknown-netbsd.tar.gz<br>
<small>**SHA256SUM:** `{{x86_64-unknown-netbsd.tar.gz}}`</small>

### ARM64

diff --git a/docs/content/migration.md b/docs/content/migration.md
index 46fa9f8..22c5629 100644
--- a/docs/content/migration.md
+++ b/docs/content/migration.md
@@ -1,6 +1,6 @@
# Migrating from v1 to v2

The `v2` introduces notable changes including new features, performance improvements and new target support like ARM64 and OSes like FreeBSD.
The `v2` introduces notable changes including new features, performance improvements and new target support like ARM64 and OSes like FreeBSD, NetBSD or Android.

This version `v2` was re-written almost from scratch on top of [Hyper]https://github.com/hyperium/hyper and [Tokio]https://github.com/tokio-rs/tokio runtime which gives us the [Rust asynchronous ability]https://rust-lang.github.io/async-book/01_getting_started/02_why_async.html by default and the latest HTTP/1 - HTTP/2 implementation improvements.
However, it still tries to keep the same principles of its `v1`: lightness and easy-to-use. Therefore migration should not be a big deal.
diff --git a/docs/content/platforms-architectures.md b/docs/content/platforms-architectures.md
index 8d1bca4..f29d26c 100644
--- a/docs/content/platforms-architectures.md
+++ b/docs/content/platforms-architectures.md
@@ -52,3 +52,8 @@ Currently, only the following platforms/architectures are supported.

#### x86_64
  - `x86_64-unknown-freebsd`

## NetBSD

#### x86_64
  - `x86_64-unknown-netbsd`