package wax-lib
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=cc19989d0db930d9300d7356c8f127309424a82767dd3c91ffd19a0bfd20e3a6
sha512=14ff9219dc6c4e8855c3cb895bd1af6fd81d1c521afefe1e7f69208a2e37abc7ec0946f188198a26780aa405fd43a526b938158334a019f7a5d991d8efc437c3
doc/wax-lib.utils/Wax_utils/Feature/index.html
Module Wax_utils.FeatureSource
Optional language features / WebAssembly proposals.
A feature is enabled or disabled (per its default, overridden on the command line). Validation queries is_enabled / require to accept or reject a construct, and mark_used / used track which features a module actually exercises.
Whether the feature is on when it is not mentioned on the command line.
A resolved configuration: which features are enabled, together with a mutable record of which have been used. Create one per module (usage is per-module).
configure specs takes each feature's default and applies specs over it (later entries win).
Install a process-wide default configuration (like the warning policy), read by default. Intended to be called once, from the command line.
A fresh set using the configuration installed by set_config (the built-in defaults if none), nothing used yet.
Whether the configuration set was built from explicitly disables t (an -X name=off spec), as opposed to t merely being off by default. A module declaring t against such a configuration is a conflict.
Enable t in set: the module declares (with a #![feature = "…"] attribute or (@feature "…") annotation) that it uses t. Check explicitly_disabled first to report a conflict with the command line.
Record that t is used (whether or not it is enabled). Idempotent.