20222022 Ericsson AB. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. erl_features Cons T Åhs 1 2022-05-02 B erl_features.xml
erl_features Feature support.

This module contains functions for supporting features that can be enabled/disabled in Erlang. It should be considered as mostly for internal use, although there are some functions that might be useful when writing tools.

Return all known features.

Return a list of all known features. This list will include features that have been removed (status rejected) and features that are no longer configurable (status permanent).

Return all configurable features.

Return a list of all configurable features, that is, features with status experimental or approved. These are the features that can be enabled or disabled.

Return information about the given feature.

Return a map containing information about the given feature.

Return list of currently enabled features.

Return a list of the features that are currently enabled. Note that the set of enabled is set during startup and can then not be changed.

Return features used by a module or beam file.

Return the list of features enabled when compiling the module. The module need not be loaded, but is found if it exists in the loadpath. If not all features used by the module are enabled in the runtime, loading the module is not allowed.