Specifying dependencies for Julia packages

We can tell when a package depends on another by examining the using or import keywords in the source files; however, the Julia runtime environment is designed to be more explicit by tracking the dependencies. Such information is stored in the Project.toml file in the package directory. In addition, a Manifest.toml file in the same directory contains more information about the complete dependency tree. These files are written in the TOML file format. Although it is easy enough to edit these files by hand, the Pkg package manager's command-line interface (CLI) could be used to manage dependencies more easily.

To add a new dependent package, you just need to carry out the following steps:

  1. Start the ...

Get Hands-On Design Patterns and Best Practices with Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.