From 583aaa3b56eeb41576401bd7e0190a328ab76615 Mon Sep 17 00:00:00 2001 From: Moritz Schauer Date: Sun, 22 Jan 2023 06:30:48 +0100 Subject: [PATCH] Amend docstring about compat entries of weakdeps (#48206) --- doc/src/manual/code-loading.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/src/manual/code-loading.md b/doc/src/manual/code-loading.md index 6ff9128264161..d3806ee180f32 100644 --- a/doc/src/manual/code-loading.md +++ b/doc/src/manual/code-loading.md @@ -351,11 +351,15 @@ Since the primary environment is typically the environment of a project you're w ### [Package Extensions](@id man-extensions) -A package "extension" is a module that is automatically loaded when a specified set of other packages (its "extension dependencies") are loaded in the current Julia session. The extension dependencies of an extension are a subset of those packages listed under the `[weakdeps]` section of a Project file. Extensions are defined under the `[extensions]` section in the project file: +A package "extension" is a module that is automatically loaded when a specified set of other packages (its "extension dependencies") are loaded in the current Julia session. Extensions are defined under the `[extensions]` section in the project file. The extension dependencies of an extension are a subset of those packages listed under the `[weakdeps]` section of the project file. Those packages can have compat entries like other packages. ```toml name = "MyPackage" +[compat] +ExtDep = "1.0" +OtherExtDep = "1.0" + [weakdeps] ExtDep = "c9a23..." # uuid OtherExtDep = "862e..." # uuid