Skip to content

Commit 52943f8

Browse files
committed
docs
1 parent e3ec238 commit 52943f8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/src/registries.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,35 @@ are the following files: `Compat.toml`, `Deps.toml`, `Package.toml`,
9999
and `Versions.toml`.
100100
The formats of these files are described below.
101101

102+
### Registry Package.toml
103+
104+
The `Package.toml` file contains basic metadata about the package, such as its name, UUID, repository URL, and optional tags.
105+
106+
#### Package tags
107+
108+
The `[tags]` table in `Package.toml` provides a location for metadata about the package that doesn't fit into the other registry files. This is an extensible framework for adding package-level metadata.
109+
110+
#### Deprecated packages
111+
112+
One use of the `[tags]` table is to mark packages as deprecated using `[tags.deprecated]`. Deprecated packages will:
113+
- Show as `[deprecated]` in package status output
114+
- Be excluded from tab-completion suggestions
115+
- Still be installable and usable
116+
117+
The `[tags.deprecated]` table can contain arbitrary metadata fields. Common fields include:
118+
119+
```toml
120+
name = "MyPackage"
121+
uuid = "..."
122+
repo = "..."
123+
124+
[tags.deprecated]
125+
reason = "This package is no longer maintained"
126+
alternative = "ReplacementPackage"
127+
```
128+
129+
The specific fields within `[tags.deprecated]` are not currently used by Pkg itself, but are stored to allow other tools and registries to utilize this metadata.
130+
102131
### Registry Compat.toml
103132

104133
The `Compat.toml` file has a series of blocks specifying version

0 commit comments

Comments
 (0)