#include "lix/libutil/error.hh"
#include "lix/libutil/json-fwd.hh"
#include "lix/libutil/types.hh"
#include <type_traits>
#include "deprecated-features.gen.inc"
Go to the source code of this file.
◆ Dep
Just because writing DeprecatedFeature::UrlLiterals is way too long
◆ DeprecatedFeature
The list of available deprecated features.
Reminder: New deprecated features should start out with a warning without throwing an error. See the developer documentation for details.
◆ documentDeprecatedFeatures()
| JSON nix::documentDeprecatedFeatures |
( |
| ) |
|
Compute the documentation of all deprecated features.
See doc/manual for how this information is used.
◆ operator<<()
| std::ostream & nix::operator<< |
( |
std::ostream & | str, |
|
|
const DeprecatedFeature & | feature ) |
Shorthand for str << showDeprecatedFeature(feature).
◆ parseDeprecatedFeature()
| const std::optional< DeprecatedFeature > nix::parseDeprecatedFeature |
( |
const std::string_view & | name | ) |
|
Parse a deprecated feature (enum value) from its name. Deprecated feature flag names are hyphenated and do not contain spaces.
◆ parseDeprecatedFeatures()
| DeprecatedFeatures nix::parseDeprecatedFeatures |
( |
const std::set< std::string > & | | ) |
|
Parse a set of strings to the corresponding set of deprecated features, ignoring (but warning for) any unknown feature.
◆ showDeprecatedFeature()
Show the name of a deprecated feature. This is the opposite of parseDeprecatedFeature().
◆ to_json()
Semi-magic conversion to and from json. See the nlohmann/json readme for more details.