package config

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

Install

Dune Dependency

Authors

Maintainers

Sources

config-0.0.3.tbz
sha256=6dc4427cb5f6ae8f2f9d04c9897d9a606242f9e0f6eaf90fca731883cd7b6053
sha512=a3f81bf8975f6f8d69c8c1b4cc041f37be19b311797573f960afaf21beac99292e255c87ee661f40be8e5f1aaf27a64754e0a6155ef0f9785024cea0c17f8eb9

CHANGES.md.html

0.0.3

  • Refactored expression evaluation – thanks @gpetiot :clap:

  • Support conditionally disabling match cases, function branches, module structure and signature items – thank @kfoxder :sparkles:

  • Updated cookbook with more examples

  • Improvements on nix setup – thanks @metame :rainbow:

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.