OxL Справочник OxL
РусскийEnglish

error no-entry-point

error Стандарт: [§2.4]

В программе нет точки входа.

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#

oxl✓ проверяется в CI
// 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#

oxl✓ проверяется в CI
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.

See also#

OxL 1.0.0-beta · Версия документации 1.0.0-beta© OxwaldLink · сгенерировано из Стандарта, исходников std и руководства