1.. _api_overview:
2
3API Overview
4############
5
6The table lists Zephyr's APIs and information about them, including their
7current :ref:`stability level <api_lifecycle>`.  More details about API changes
8between major releases are available in the :ref:`zephyr_release_notes`.
9
10The version column uses `semantic version <https://semver.org/>`_, and has the
11following expectations:
12
13 * Major version zero (0.y.z) is for initial development. Anything MAY
14   change at any time. The public API SHOULD NOT be considered stable.
15
16   * If minor version is up to one (0.1.z), API is considered
17     :ref:`experimental <api_lifecycle_experimental>`.
18   * If minor version is larger than one (0.y.z | y > 1), API is considered
19     :ref:`unstable <api_lifecycle_unstable>`.
20
21 * Version 1.0.0 defines the public API. The way in which the version number
22   is incremented after this release is dependent on this public API and how it
23   changes.
24
25   * APIs with major versions equal or larger than one (x.y.z | x >= 1 ) are
26     considered :ref:`stable <api_lifecycle_stable>`.
27   * All existing stable APIs in Zephyr will be start with version 1.0.0.
28
29 * Patch version Z (x.y.Z | x > 0) MUST be incremented if only backwards
30   compatible bug fixes are introduced. A bug fix is defined as an internal
31   change that fixes incorrect behavior.
32
33 * Minor version Y (x.Y.z | x > 0) MUST be incremented if new, backwards
34   compatible functionality is introduced to the public API. It MUST be
35   incremented if any public API functionality is marked as deprecated. It MAY
36   be incremented if substantial new functionality or improvements are
37   introduced within the private code. It MAY include patch level changes.
38   Patch version MUST be reset to 0 when minor version is incremented.
39
40 * Major version X (x.Y.z | x > 0) MUST be incremented if a compatibility
41   breaking change was made to the API.
42
43.. note::
44   Version for existing APIs are initially set based on the current state of the
45   APIs:
46
47    - 0.1.0 denotes an :ref:`experimental <api_lifecycle_experimental>` API
48    - 0.8.0 denote an :ref:`unstable <api_lifecycle_unstable>` API,
49    - and finally 1.0.0 indicates a :ref:`stable <api_lifecycle_stable>` APIs.
50
51   Changes to APIs in the future will require adapting the version following the
52   guidelines above.
53
54
55.. api-overview-table::
56