Skip to content

Commit 583aaa3

Browse files
authored
Amend docstring about compat entries of weakdeps (#48206)
1 parent b47837e commit 583aaa3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/src/manual/code-loading.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,15 @@ Since the primary environment is typically the environment of a project you're w
351351

352352
### [Package Extensions](@id man-extensions)
353353

354-
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:
354+
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.
355355

356356
```toml
357357
name = "MyPackage"
358358

359+
[compat]
360+
ExtDep = "1.0"
361+
OtherExtDep = "1.0"
362+
359363
[weakdeps]
360364
ExtDep = "c9a23..." # uuid
361365
OtherExtDep = "862e..." # uuid

0 commit comments

Comments
 (0)