mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-09-18 02:06:36 +03:00
Summary: This is an API break, but it should mostly be a manageable one. We want to be able to compile mvfst internally without exceptions, and folly::Optional is one dependency that makes this challenging. Additionally, we already have an imported secondary optional type for performance/struct size reasons, tiny-optional. This second optional interface is mostly compatible in an API sense (including the use of std::nullopt) with std::optional. Thus our approach is to remove the dependency on folly::Optional, and offer a quic::Optional instead. The next diff will properly vendor tiny-optional so that quic::Optional is an independent version of it. Reviewed By: sharmafb, kvtsoy Differential Revision: D74133131 fbshipit-source-id: 715f8bb5043ba3bb876cacfe54236887e0686b30
50 lines
875 B
Python
50 lines
875 B
Python
load("@fbcode//quic:defs.bzl", "mvfst_cpp_library")
|
|
|
|
# Common library
|
|
|
|
oncall("traffic_protocols")
|
|
|
|
mvfst_cpp_library(
|
|
name = "priority_queue",
|
|
headers = [
|
|
"PriorityQueue.h",
|
|
],
|
|
exported_deps = [
|
|
"//quic/common:optional",
|
|
],
|
|
exported_external_deps = [
|
|
"glog",
|
|
],
|
|
)
|
|
|
|
mvfst_cpp_library(
|
|
name = "round_robin",
|
|
srcs = [
|
|
"RoundRobin.cpp",
|
|
],
|
|
headers = [
|
|
"RoundRobin.h",
|
|
],
|
|
exported_deps = [
|
|
":priority_queue",
|
|
"//quic:config",
|
|
"//quic/common:optional",
|
|
],
|
|
)
|
|
|
|
mvfst_cpp_library(
|
|
name = "http_priority_queue",
|
|
srcs = [
|
|
"HTTPPriorityQueue.cpp",
|
|
],
|
|
headers = [
|
|
"HTTPPriorityQueue.h",
|
|
],
|
|
exported_deps = [
|
|
":priority_queue",
|
|
":round_robin",
|
|
"//folly:cpp_attributes",
|
|
"//quic:config",
|
|
],
|
|
)
|