Skip to main content

try_project_options

Function try_project_options 

Source
pub fn try_project_options(
    input: &Path,
) -> Result<CompileOptions, ProjectOptionsError>
Expand description

project_options, but a malformed bynk.toml is an error rather than a silent fall-back to the conventional layout — the one input a user hand-edits that the compiler otherwise reads without checking, after which a cascade of bynk.uses.unknown_target errors points at units that plainly exist on disk.

#1890: project mode also reads [workers] compatibility_flags into the options, so every CLI build (bynkc compile, bynk dev/deploy, which all come through here) writes the project’s flags into wrangler.toml.