From bda0c64ee2b1c95443c83e4ee3d20fc3edad10f6 Mon Sep 17 00:00:00 2001 From: AMSOZZER <105675638+Amsozzer1@users.noreply.github.com> Date: Sun, 27 Sep 2026 23:31:10 -0500 Subject: [PATCH] Say that it is in vcpkg, because it is The README told people PlusWeb was "not in the vcpkg or Conan registries yet" and handed them an overlay-port command under the old name. The port has been in microsoft/vcpkg as amsozzer1-plusweb since 2026-09-23, so the install is now one line, and the sentence that denied it was doing real damage: anyone checking the claim read it as an exaggeration. Conan genuinely is still not upstream, so that half stays, now said plainly rather than lumped in with vcpkg. The overlay port is renamed from plusweb to amsozzer1-plusweb, which makes packaging/vcpkg/amsozzer1-plusweb byte-identical to ports/amsozzer1-plusweb upstream. It had been teaching a name that does not exist in any registry. Its remaining job is testing a port change as an overlay before submitting it, and packaging/README.md now says that instead of describing a submission that already happened. Co-Authored-By: Claude Opus 5 (1M context) --- README.md | 22 +++++++++---- packaging/README.md | 33 +++++++++++-------- .../portfile.cmake | 0 .../{plusweb => amsozzer1-plusweb}/vcpkg.json | 2 +- 4 files changed, 36 insertions(+), 21 deletions(-) rename packaging/vcpkg/{plusweb => amsozzer1-plusweb}/portfile.cmake (100%) rename packaging/vcpkg/{plusweb => amsozzer1-plusweb}/vcpkg.json (95%) diff --git a/README.md b/README.md index d0c71dd..e11694f 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![CI](https://github.com/Amsozzer1/PlusWeb/actions/workflows/ci.yml/badge.svg)](https://github.com/Amsozzer1/PlusWeb/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![C++17](https://img.shields.io/badge/C%2B%2B-17-blue.svg)](https://en.cppreference.com/w/cpp/17) +[![vcpkg](https://img.shields.io/vcpkg/v/amsozzer1-plusweb?label=vcpkg)](https://github.com/microsoft/vcpkg/tree/master/ports/amsozzer1-plusweb) An Express-style HTTP framework for C++, built on a libuv event loop, the llhttp parser, and a routing trie. @@ -125,18 +126,25 @@ find_package(PlusWeb CONFIG REQUIRED) target_link_libraries(my_app PRIVATE PlusWeb::PlusWeb) ``` -Install it from source with `cmake --install build`, or from a package manager. PlusWeb is -not in the vcpkg or Conan registries yet, so both come from this repo for now: +It is in the [vcpkg registry](https://github.com/microsoft/vcpkg/tree/master/ports/amsozzer1-plusweb), +so on most projects that is the whole install: ```bash -# vcpkg, as an overlay port -vcpkg install plusweb --overlay-ports=PlusWeb/packaging/vcpkg +vcpkg install amsozzer1-plusweb +``` + +The port is `amsozzer1-plusweb` rather than `plusweb` because vcpkg falls back to +`Owner-Project` when a name is already taken upstream. -# Conan, from the recipe in the repo -conan create PlusWeb/packaging/conan --build=missing +Conan is not upstream yet, so that recipe still comes from this repo, and installing from +source works too: + +```bash +cmake --install build # from source +conan create PlusWeb/packaging/conan --build=missing # Conan, from the recipe here ``` -[`packaging/`](packaging/) has the details, including what changes when these go upstream. +[`packaging/`](packaging/) has the details, including what is left for Conan. Windows is not supported yet: nothing in the library is POSIX-bound, but it has never been built there. diff --git a/packaging/README.md b/packaging/README.md index 363a381..6d4e5de 100644 --- a/packaging/README.md +++ b/packaging/README.md @@ -1,13 +1,18 @@ # Packaging -PlusWeb is not in the vcpkg or Conan registries yet. These files let you install it from -here today, and they are the same files that go upstream when it is. +PlusWeb is in the vcpkg registry as +[`amsozzer1-plusweb`](https://github.com/microsoft/vcpkg/tree/master/ports/amsozzer1-plusweb), +so nothing here is needed to install it: -## vcpkg, as an overlay port +```bash +vcpkg install amsozzer1-plusweb +``` + +The files in `vcpkg/amsozzer1-plusweb/` are byte-identical to the ones upstream. They stay +here so a port change can be tested as an overlay before it is submitted: ```bash -git clone https://github.com/Amsozzer1/PlusWeb.git -vcpkg install plusweb --overlay-ports=PlusWeb/packaging/vcpkg +vcpkg install amsozzer1-plusweb --overlay-ports=PlusWeb/packaging/vcpkg ``` Then, as usual: @@ -20,8 +25,13 @@ target_link_libraries(my_app PRIVATE PlusWeb::PlusWeb) `portfile.cmake` pins the release tarball by SHA512. If you point `REF` at a different tag, `vcpkg install` will print the hash it actually got, and you paste that in. +The port is `amsozzer1-plusweb` rather than `plusweb` because vcpkg falls back to +`Owner-Project` when a name is already taken upstream. + ## Conan, from a local recipe +Conan is not upstream, so this one really does come from here: + ```bash git clone https://github.com/Amsozzer1/PlusWeb.git conan create PlusWeb/packaging/conan --build=missing @@ -32,7 +42,7 @@ def requirements(self): self.requires("plusweb/0.1.2") ``` -This recipe builds from the checkout it lives in. The conan-center-index version fetches a +This recipe builds from the checkout it lives in. A conan-center-index version would fetch a release tarball through `conandata.yml` instead; that is the only difference. ## Not Windows yet @@ -42,11 +52,8 @@ POSIX-bound — every socket goes through libuv — but it has never been built there, and saying so is better than shipping a port that fails in somebody's CI. Lifting it is a matter of building it on Windows once and finding out. -## Going upstream +## Still to do -- vcpkg: copy `vcpkg/plusweb/` into `ports/plusweb/` in a fork of - [microsoft/vcpkg](https://github.com/microsoft/vcpkg), run - `vcpkg x-add-version plusweb`, and open the PR. -- Conan: restructure `conan/conanfile.py` around `conandata.yml` and open a PR against - [conan-io/conan-center-index](https://github.com/conan-io/conan-center-index) under - `recipes/plusweb/`. +Conan: restructure `conan/conanfile.py` around `conandata.yml` and open a PR against +[conan-io/conan-center-index](https://github.com/conan-io/conan-center-index) under +`recipes/plusweb/`. diff --git a/packaging/vcpkg/plusweb/portfile.cmake b/packaging/vcpkg/amsozzer1-plusweb/portfile.cmake similarity index 100% rename from packaging/vcpkg/plusweb/portfile.cmake rename to packaging/vcpkg/amsozzer1-plusweb/portfile.cmake diff --git a/packaging/vcpkg/plusweb/vcpkg.json b/packaging/vcpkg/amsozzer1-plusweb/vcpkg.json similarity index 95% rename from packaging/vcpkg/plusweb/vcpkg.json rename to packaging/vcpkg/amsozzer1-plusweb/vcpkg.json index 9b2447b..e618a17 100644 --- a/packaging/vcpkg/plusweb/vcpkg.json +++ b/packaging/vcpkg/amsozzer1-plusweb/vcpkg.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", - "name": "plusweb", + "name": "amsozzer1-plusweb", "version": "0.1.2", "description": "Express-style HTTP framework for C++17 built on libuv and llhttp, with a segment-trie router and a middleware chain", "homepage": "https://github.com/Amsozzer1/PlusWeb",