/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ext/node/build.rs
21 строка
501 B
Bartek Iwańczuk
feat(ext/node): add llhttp-based HTTPParser with native cppgc binding (#33202)
09 апр 2026, 10:34
Не верифицирован
09 апр 2026, 10:34
34ed78a
Код
Авторство
О чём код?
// Copyright 2018-2026 the Deno authors. MIT license. use std::env; use std::path::PathBuf; fn main() { println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap()); // Compile llhttp (Node.js HTTP/1.1 parser) let llhttp_dir = PathBuf::from("ops/llhttp/c"); cc::Build::new() .files([ llhttp_dir.join("llhttp.c"), llhttp_dir.join("http.c"), llhttp_dir.join("api.c"), ]) .include(&llhttp_dir) .std("c99") .warnings(false) .compile("llhttp"); }