Skip to main content

Module toml_config

Module toml_config 

Source
Expand description

js2rust.toml configuration types and loading logic.

Single source of truth for TOML configuration, shared by:

  • js2rust-bridge (build.rs path)
  • js2rust-bridge-macro (proc-macro path)

Both crates previously duplicated these types and the loading function. Now they both delegate here.

Structs§

BuildSection
[build] section — controls build.rs behavior.
HostFnToml
A single [[host_functions]] entry.
Js2rustConfig
Root structure of js2rust.toml.
ProjectSection
[project] section.

Functions§

pascal_case
Convert snake_case to PascalCase.