/
githubmirror
/
servo
Обзор
Документация
Войти
/
githubmirror
/
servo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/capi/lib.rs
18 строк
571 B
Mukilan Thiyagarajan
servo_capi: Introduce `servo_capi` crate to expose a C API for Servo. (#44984)
11 июн 2026, 08:17
Не верифицирован
11 июн 2026, 08:17
46bf6cb
Код
Авторство
О чём код?
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ unsafe extern "C" { fn run_c_api_tests() -> i32; fn run_c_integration_tests() -> i32; } pub fn c_api_tests() { let result = unsafe { run_c_api_tests() }; assert_eq!(result, 0, "C API tests failed"); } pub fn c_integration_tests() { let result = unsafe { run_c_integration_tests() }; assert_eq!(result, 0, "C integration tests failed"); }