Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-sync with internal repository (#338)
The internal and external repositories are out of sync. This Pull Request attempts to brings them back in sync by patching the GitHub repository. Please carefully review this patch. You must disable ShipIt for your project in order to merge this pull request. DO NOT IMPORT this pull request. Instead, merge it directly on GitHub using the MERGE BUTTON. Re-enable ShipIt after merging. Co-authored-by: Facebook Community Bot <6422482+facebook-github-bot@users.noreply.github.com>
- Loading branch information
1 parent
cd499d1
commit cfc16e7
Showing
228 changed files
with
8,763 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/usr/bin/env dotslash | ||
|
||
{ | ||
"name": "buck2", | ||
"platforms": { | ||
"macos-aarch64": { | ||
"size": 23110012, | ||
"hash": "blake3", | ||
"digest": "2e534798cfa67c02357b9edc410ea0b65984af42aecab22f077f8b8b69b635ed", | ||
"format": "zst", | ||
"path": "buck2-aarch64-apple-darwin", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-aarch64-apple-darwin.zst" | ||
} | ||
] | ||
}, | ||
"linux-aarch64": { | ||
"size": 25625575, | ||
"hash": "blake3", | ||
"digest": "9b87f3af61a3aeaa78051c780c7c2ed5a19d5bffdabd2386a7a5925af3da9069", | ||
"format": "zst", | ||
"path": "buck2-aarch64-unknown-linux-musl", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-aarch64-unknown-linux-musl.zst" | ||
} | ||
] | ||
}, | ||
"macos-x86_64": { | ||
"size": 25044637, | ||
"hash": "blake3", | ||
"digest": "aaf132b70d317c7e3e8573de5f73783c8325a96badd539805bf56dcaf0e0a285", | ||
"format": "zst", | ||
"path": "buck2-x86_64-apple-darwin", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-x86_64-apple-darwin.zst" | ||
} | ||
] | ||
}, | ||
"windows-x86_64": { | ||
"size": 20557271, | ||
"hash": "blake3", | ||
"digest": "a750d714cedca0369f62ae3e6c6cd3bf6d8c65f2f79d53f5dce10e27fcc1c9a5", | ||
"format": "zst", | ||
"path": "buck2-x86_64-pc-windows-msvc.exe", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-x86_64-pc-windows-msvc.exe.zst" | ||
} | ||
] | ||
}, | ||
"linux-x86_64": { | ||
"size": 26368190, | ||
"hash": "blake3", | ||
"digest": "486cb1458f356863331cdeacb2491afb60e3d78e4fda33adb4112dfca7dc63dd", | ||
"format": "zst", | ||
"path": "buck2-x86_64-unknown-linux-musl", | ||
"providers": [ | ||
{ | ||
"url": "https://github.com/facebook/buck2/releases/download/2024-04-15/buck2-x86_64-unknown-linux-musl.zst" | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") | ||
|
||
oncall("traffic_protocols") | ||
|
||
mvfst_cpp_library( | ||
name = "constants", | ||
srcs = [ | ||
"QuicConstants.cpp", | ||
], | ||
headers = [ | ||
"QuicConstants.h", | ||
], | ||
deps = [ | ||
"//folly/lang:assume", | ||
], | ||
exported_deps = [ | ||
"//folly/chrono:clock", | ||
"//folly/io:iobuf", | ||
"//quic/common/third-party:better_enums", | ||
], | ||
) | ||
|
||
mvfst_cpp_library( | ||
name = "exception", | ||
srcs = [ | ||
"QuicException.cpp", | ||
], | ||
headers = [ | ||
"QuicException.h", | ||
], | ||
deps = [ | ||
"//fizz/record:record", | ||
], | ||
exported_deps = [ | ||
":constants", | ||
"//folly:optional", | ||
"//folly:range", | ||
"//quic/common:variant", | ||
], | ||
external_deps = [ | ||
"glog", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Copyright 2017 Facebook | ||
|
||
""" build mode definitions for quic """ | ||
|
||
load("@fbcode//:BUILD_MODE.bzl", get_parent_modes = "get_empty_modes") | ||
load("@fbcode_macros//build_defs:create_build_mode.bzl", "extend_build_modes") | ||
|
||
_extra_cflags = [ | ||
] | ||
|
||
_common_flags = [ | ||
"-Wextra-semi", | ||
"-Wformat", | ||
"-Wformat-security", | ||
"-Wunused-function", | ||
"-Wunused-parameter", | ||
"-Wunused-variable", | ||
"-Wsign-compare", | ||
"-Wtype-limits", | ||
"-Wunused-value", | ||
# TODO this seems to break trunk (https://fb.workplace.com/groups/askbuck/permalink/4366767820038466/) | ||
# Re-enable after investigating the issue | ||
# "-Wno-module-import-in-extern-c", | ||
] | ||
|
||
_extra_clang_flags = _common_flags + [ | ||
"-Wconstant-conversion", | ||
# Default value for clang (3.4) is 256, change it to GCC's default value | ||
# (https://fburl.com/23278774). | ||
"-ftemplate-depth=900", | ||
"-Wmismatched-tags", | ||
# Only check shadowing with Clang: gcc complains about constructor | ||
# argument shadowing | ||
"-Wshadow", | ||
"-Wunused-exception-parameter", | ||
"-Wheader-hygiene", | ||
"-Wall", | ||
"-Wextra", | ||
] | ||
|
||
_extra_gcc_flags = _common_flags + [ | ||
"-Wall", | ||
] | ||
|
||
_modes = extend_build_modes( | ||
get_parent_modes(), | ||
c_flags = _extra_cflags, | ||
clang_flags = _extra_clang_flags, | ||
gcc_flags = _extra_gcc_flags, | ||
cxx_modular_headers = True, | ||
) | ||
|
||
def get_modes(): | ||
""" Return modes for this file """ | ||
return _modes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
load("@fbcode//quic:defs.bzl", "mvfst_cpp_library") | ||
|
||
oncall("traffic_protocols") | ||
|
||
mvfst_cpp_library( | ||
name = "quic_batch_writer", | ||
srcs = [ | ||
"QuicBatchWriter.cpp", | ||
"QuicBatchWriterFactory.cpp", | ||
"QuicGsoBatchWriters.cpp", | ||
], | ||
headers = [ | ||
"QuicBatchWriter.h", | ||
"QuicBatchWriterFactory.h", | ||
"QuicGsoBatchWriters.h", | ||
], | ||
exported_deps = [ | ||
"//folly:network_address", | ||
"//folly:portability", | ||
"//folly/io:iobuf", | ||
"//quic:constants", | ||
"//quic/common/events:eventbase", | ||
"//quic/common/udpsocket:quic_async_udp_socket", | ||
"//quic/state:quic_state_machine", | ||
], | ||
) | ||
|
||
mvfst_cpp_library( | ||
name = "transport", | ||
srcs = [ | ||
"IoBufQuicBatch.cpp", | ||
"QuicPacketScheduler.cpp", | ||
"QuicTransportBase.cpp", | ||
"QuicTransportFunctions.cpp", | ||
], | ||
headers = [ | ||
"IoBufQuicBatch.h", | ||
"QuicPacketScheduler.h", | ||
"QuicSocket.h", | ||
"QuicTransportBase.h", | ||
"QuicTransportFunctions.h", | ||
], | ||
deps = [ | ||
":loop_detector_callback", | ||
"//folly:chrono", | ||
"//folly:scope_guard", | ||
"//quic/common:socket_util", | ||
"//quic/common:time_util", | ||
"//quic/congestion_control:pacer", | ||
"//quic/happyeyeballs:happyeyeballs", | ||
"//quic/logging:qlogger_constants", | ||
"//quic/loss:loss", | ||
"//quic/state:ack_frequency_functions", | ||
"//quic/state:ack_handler", | ||
"//quic/state:pacing_functions", | ||
"//quic/state:simple_frame_functions", | ||
"//quic/state/stream:stream", | ||
], | ||
exported_deps = [ | ||
":quic_batch_writer", | ||
"//folly:exception_wrapper", | ||
"//folly:expected", | ||
"//folly:maybe_managed_ptr", | ||
"//folly:optional", | ||
"//folly:portability", | ||
"//folly/io:iobuf", | ||
"//folly/io/async:async_transport_certificate", | ||
"//folly/lang:assume", | ||
"//quic:constants", | ||
"//quic:exception", | ||
"//quic/client:state_and_handshake", | ||
"//quic/codec:codec", | ||
"//quic/codec:pktbuilder", | ||
"//quic/codec:pktrebuilder", | ||
"//quic/codec:types", | ||
"//quic/common:looper", | ||
"//quic/common:network_data", | ||
"//quic/common:small_collections", | ||
"//quic/common/events:eventbase", | ||
"//quic/common/events:quic_timer", | ||
"//quic/common/udpsocket:quic_async_udp_socket", | ||
"//quic/congestion_control:bandwidth", | ||
"//quic/congestion_control:congestion_controller_factory", | ||
"//quic/congestion_control:copa", | ||
"//quic/congestion_control:cubic", | ||
"//quic/congestion_control:newreno", | ||
"//quic/flowcontrol:flow_control", | ||
"//quic/handshake:transport_parameters", | ||
"//quic/observer:socket_observer_container", | ||
"//quic/observer:socket_observer_types", | ||
"//quic/state:quic_connection_stats", | ||
"//quic/state:quic_priority_queue", | ||
"//quic/state:quic_state_machine", | ||
"//quic/state:quic_stream_utilities", | ||
"//quic/state:retransmission_policy", | ||
"//quic/state:state_functions", | ||
"//quic/state:stats_callback", | ||
"//quic/state:stream_functions", | ||
], | ||
exported_external_deps = [ | ||
"boost", | ||
], | ||
) | ||
|
||
mvfst_cpp_library( | ||
name = "loop_detector_callback", | ||
headers = ["LoopDetectorCallback.h"], | ||
exported_deps = [ | ||
"//quic:constants", | ||
], | ||
) | ||
|
||
mvfst_cpp_library( | ||
name = "stream_async_transport", | ||
srcs = [ | ||
"QuicStreamAsyncTransport.cpp", | ||
], | ||
headers = [ | ||
"QuicStreamAsyncTransport.h", | ||
], | ||
deps = [ | ||
"//folly/io:iobuf", | ||
"//quic/common/events:folly_eventbase", | ||
], | ||
exported_deps = [ | ||
":transport", | ||
"//folly/io/async:async_transport", | ||
"//quic/common/events:eventbase", | ||
], | ||
) |
Oops, something went wrong.