ladybird/Libraries/LibWeb/Rust/cbindgen.toml
Martin Chrástek 95f62e6879 LibWeb/Rust: Prepare build.rs for multi-config cbindgen generation
Split the single cbindgen::generate call into a multi-config setup
using cbindgen::Config::from_file and generate_with_config. Move
the namespace and export.include settings that were in cbindgen.toml
into the build.rs CSS config. No functional change — the generated
RustFFI.h is identical.

This prepares for adding a second cbindgen config for the
encoding-detection FFI symbols in a follow-up commit.
2026-05-23 11:57:33 +02:00

22 lines
406 B
TOML

language = "C++"
header = """/*
* Copyright (c) 2026-present, the Ladybird developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/"""
pragma_once = true
include_version = true
line_length = 120
tab_width = 4
no_includes = true
sys_includes = ["stdint.h", "stddef.h"]
usize_is_size_t = true
[parse]
parse_deps = false
[parse.expand]
all_features = false
[export.mangle]
rename_types = "PascalCase"