package config

  1. Overview
  2. Docs
Ergonomic, lightweight conditional compilation through attributes

Install

Dune Dependency

Authors

Maintainers

Sources

config-0.0.2.tbz
sha256=0bbbb6d19efef2071663152808f94c6a469530be19a2f28174cfc54245147f04
sha512=453be389faaed410c2fdce448201d62e146e7ad81db13774a690f8e79764f81000d5d838a44e397cb5262aafe7b29b74eac8470cb6dfeea6f39bd6697648a73c

CHANGES.md.html

Changes

0.0.2

  • Fix single var configuration failing – thanks @metame 👏

  • Support conditionally disabling all structure-items

  • Support conditionally disabling variant constructors and record fields

  • Add better docs for the Config language, and a small cookbook

  • Support cfg and config for use in Melange v3 and future version

0.0.1

Initial release with support for:

  • Not, Any, and All expressions in the boolean language

  • Checking for environment variables

  • Providing target_os, target_arch, and target_env

  • Support disabling module expressions

  • Supports disabling entire modules with a single top-level annotation

OCaml

Innovation. Community. Security.