error no-entry-point
В программе нет точки входа.
What it means#
A program is a package that contains at least one of fn main(), a cluster declaration or a service declaration (§2.4). A package with none of them can be a library but cannot be run.
Example#
// src/main.oxl: the package declares no main, cluster or service // <- no-entry-point
pub fn helper() -> i32 { 1 }error
no-entry-point
How to fix#
pub fn helper() -> i32 { 1 }
fn main() {
print("{helper()}")
}Add fn main(), a cluster or a service. If the package is meant to be used as a dependency, build it as a library instead of running it.