Skip to content

Commit 8640496

Browse files
committed
libgit2-sys: Switch to new bundled llhttp HTTP parser
1 parent 449c6be commit 8640496

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

libgit2-sys/build.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ The build is now aborting. To disable, unset the variable or use `LIBGIT2_NO_VEN
8989
add_c_files(&mut cfg, "libgit2/src/libgit2/transports");
9090
add_c_files(&mut cfg, "libgit2/src/libgit2/streams");
9191

92-
// Always use bundled http-parser for now
93-
cfg.include("libgit2/deps/http-parser")
94-
.file("libgit2/deps/http-parser/http_parser.c");
92+
// Always use bundled HTTP parser (llhttp) for now
93+
cfg.include("libgit2/deps/llhttp");
94+
add_c_files(&mut cfg, "libgit2/deps/llhttp");
9595

9696
// external/system xdiff is not yet supported
9797
cfg.include("libgit2/deps/xdiff");
@@ -150,6 +150,7 @@ The build is now aborting. To disable, unset the variable or use `LIBGIT2_NO_VEN
150150
features.push_str("#define INCLUDE_features_h\n");
151151
features.push_str("#define GIT_THREADS 1\n");
152152
features.push_str("#define GIT_TRACE 1\n");
153+
features.push_str("#define GIT_HTTPPARSER_BUILTIN 1\n");
153154

154155
if !target.contains("android") {
155156
features.push_str("#define GIT_USE_NSEC 1\n");

0 commit comments

Comments
 (0)