1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 03:23:16 +02:00

Documentation: list experimental features in manual

Lists all current experimental features in the `nix.conf` manual.
This commit is contained in:
Noah Snelson 2023-03-27 17:12:49 -07:00
parent 56dc6ed841
commit d1d1ae7a3b
3 changed files with 81 additions and 17 deletions

View file

@ -10,8 +10,8 @@ namespace nix {
/**
* The list of available experimental features.
*
* If you update this, dont forget to also change the map defining their
* string representation in the corresponding `.cc` file.
* If you update this, dont forget to also change the map defining their string
* representation and documentation in the corresponding `.cc` file as well.
**/
enum struct ExperimentalFeature
{
@ -36,6 +36,7 @@ using Xp = ExperimentalFeature;
const std::optional<ExperimentalFeature> parseExperimentalFeature(
const std::string_view & name);
std::string_view showExperimentalFeature(const ExperimentalFeature);
std::string getExperimentalFeaturesList();
std::ostream & operator<<(
std::ostream & str,