README

marianoguerra/wax/feature does not have a README file

#
Feature

pub(all) enum Feature {
CustomDescriptors
CompactImportSection
} derive(Compare, Eq,
Debug
)

A proposal this toolchain knows about.

#
Feature::description

fn Feature::description(self : Feature) -> String

#
Feature::enabled_by_default

fn Feature::enabled_by_default(self : Feature) -> Bool

Whether the feature is on when nobody has said otherwise.

Every proposal here is experimental, so: no.

#
Feature::name

fn Feature::name(self : Feature) -> String

The command-line and diagnostic name.

#
Set

A resolved configuration: what is enabled, and what has been used.

One per module, since usage is per-module.

#
Set::declare_feature

fn Set::declare_feature(self : Set, f : Feature) -> Unit

Turn a feature on because the module declares it.

Not declare: that is a MoonBit keyword.

Check explicitly_disabled first: declaring what the command line turned off is a conflict, not an override.

#
Set::explicitly_disabled

fn Set::explicitly_disabled(self : Set, f : Feature) -> Bool

Was this feature turned off explicitly, rather than merely being off?

#
Set::is_enabled

fn Set::is_enabled(self : Set, f : Feature) -> Bool

#
Set::mark_used

fn Set::mark_used(self : Set, f : Feature) -> Unit

Record that a feature is used -- whether or not it is enabled.

#
Set::used_features

fn Set::used_features(self : Set) -> Array[Feature]

What has been used, in all order so output is stable.

#
all

let all : Array[Feature]

Every known feature, in the order everything reports them.

#
configure

fn configure(specs : Array[(Feature, Bool)]) -> Set

Take the defaults and apply specs over them; later entries win.

#
default

fn default() -> Set

A fresh set from the installed configuration, nothing used yet.

#
of_name

fn of_name(s : String) -> Feature?

#
parse_spec

fn parse_spec(s : String) -> Result[(Feature, Bool), String]

Parse a command-line spec: NAME, NAME=on or NAME=off.

#
set_config

fn set_config(specs : Array[(Feature, Bool)]) -> Unit

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io