pub fn project_options(input: &Path) -> Result<CompileOptions, DiscoveryError>Expand description
Root a directory project the way every project command should (#46): a
bynk.toml or a src/ subdir selects project mode, whose flat
[paths] include/exclude layout (v0.113, DECISION S) defaults to the
conventional roots that exist (src, tests) or the project root itself;
otherwise the legacy single-tree where <dir> is itself the root.
check, compile, test, and dev all route through this so the
conventional layout works the same from any of them.
#1077 (R2.3/T0.7 residue): reads and populates .sources(...) itself —
bynk-emit no longer discovers or reads project files on disk, so this is
now the one real place that walk happens for the live CLI path.
#1081 review: returns Result because that walk is real I/O against a
user-controlled bynk.toml (a missing include root, an unreadable
directory) — discovery::DiscoveryError, not a panic.