From a8ddf8e035c2cdfbe9ea4ac598533ce70bc96de6 Mon Sep 17 00:00:00 2001 From: Alan Frindell Date: Sat, 21 Feb 2026 07:06:55 -0800 Subject: [PATCH] Remove all mentions of boost Summary: proxygen no longer directly requires boost Reviewed By: jbeshay Differential Revision: D93943200 fbshipit-source-id: 1371093607df2697771187df2088253609686e8a --- cmake/proxygen-config.cmake.in | 9 --------- proxygen/lib/http/HTTPHeaders.h | 2 +- proxygen/lib/http/HTTPMessage.cpp | 2 +- proxygen/lib/http/session/HTTP2PriorityQueue.h | 2 -- proxygen/lib/utils/test/GenericFilterTest.cpp | 2 +- 5 files changed, 3 insertions(+), 14 deletions(-) diff --git a/cmake/proxygen-config.cmake.in b/cmake/proxygen-config.cmake.in index 0f200795a..bf1c50880 100644 --- a/cmake/proxygen-config.cmake.in +++ b/cmake/proxygen-config.cmake.in @@ -32,15 +32,6 @@ find_dependency(Fizz) find_dependency(ZLIB) find_dependency(OpenSSL) find_dependency(Threads) -find_dependency(Boost 1.69 REQUIRED - COMPONENTS - iostreams - context - filesystem - program_options - regex - thread -) find_dependency(c-ares REQUIRED) if(NOT TARGET proxygen::proxygen) diff --git a/proxygen/lib/http/HTTPHeaders.h b/proxygen/lib/http/HTTPHeaders.h index f773e9f2a..64a9e149a 100644 --- a/proxygen/lib/http/HTTPHeaders.h +++ b/proxygen/lib/http/HTTPHeaders.h @@ -209,7 +209,7 @@ class HTTPHeaders { * hdrs.removeByPredicate([&] (HTTPHeaderCode code, * const string& header, * const string& val) { - * return boost::regex_match(header, "^X-Fb-.*"); + * return std::regex_match(header, std::regex("^X-Fb-.*")); * }); * * return true only if one or more headers are removed. diff --git a/proxygen/lib/http/HTTPMessage.cpp b/proxygen/lib/http/HTTPMessage.cpp index be579ed2d..78f5d373c 100644 --- a/proxygen/lib/http/HTTPMessage.cpp +++ b/proxygen/lib/http/HTTPMessage.cpp @@ -697,7 +697,7 @@ void HTTPMessage::splitNameValuePieces( } StringPiece HTTPMessage::trim(StringPiece sp) { - // TODO: use a library function from boost? + // TODO: use a library trim function? for (; !sp.empty() && sp.front() == ' '; sp.pop_front()) { } for (; !sp.empty() && sp.back() == ' '; sp.pop_back()) { diff --git a/proxygen/lib/http/session/HTTP2PriorityQueue.h b/proxygen/lib/http/session/HTTP2PriorityQueue.h index 866b2092c..dcdbc92dd 100644 --- a/proxygen/lib/http/session/HTTP2PriorityQueue.h +++ b/proxygen/lib/http/session/HTTP2PriorityQueue.h @@ -215,8 +215,6 @@ class HTTP2PriorityQueue : public HTTP2PriorityQueueBase { void updateEnqueuedWeight(); private: - using link_mode = boost::intrusive::link_mode; - class Node : public BaseNode , public folly::HHWheelTimer::Callback { diff --git a/proxygen/lib/utils/test/GenericFilterTest.cpp b/proxygen/lib/utils/test/GenericFilterTest.cpp index 1c2f7f605..a29fafabd 100644 --- a/proxygen/lib/utils/test/GenericFilterTest.cpp +++ b/proxygen/lib/utils/test/GenericFilterTest.cpp @@ -20,7 +20,7 @@ using std::unique_ptr; namespace detail { -// This is defined in boost 1.53, but we only have 1.51 so far +// Helper to get a raw pointer from a unique_ptr template T* get_pointer(const unique_ptr& ptr) {