Stream: helpdesk (published)

Topic: ✔ Do I need to add standard libraries as project dependen...


view this post on Zulip G Gundam (Dec 14 2024 at 09:37):

While I was working on a library, I decided I wanted UUIDs, so I added Random and UUIDs as dependencies, and I saw that their versions were v1.11.0, and I thought, "Oh, they're part of the standard library".

Do I need to add them to my project, or can I just assume they're available and use them?

view this post on Zulip Mason Protter (Dec 14 2024 at 10:05):

You should add them to your Project.toml.

view this post on Zulip G Gundam (Dec 14 2024 at 10:05):

Thanks for confirming.

view this post on Zulip Notification Bot (Dec 14 2024 at 10:05):

G Gundam has marked this topic as resolved.

view this post on Zulip Mosè Giordano (Dec 14 2024 at 10:39):

G Gundam said:

While I was working on a library, I decided I wanted UUIDs, so I added Random and UUIDs as dependencies, and I saw that their versions were v1.11.0, and I thought, "Oh, they're part of the standard library".

Standard libraries don't necessarily follow Julia's version number.

G Gundam said:

Do I need to add them to my project, or can I just assume they're available and use them?

Standard libraries can be (and have been) removed, so you should really add all packages that you use in an environment to project, regardless of whether they're standard libraries or not, if you care about reusing the environment at a later point in time, which should be the whole reason why you're using an environment in the first place


Last updated: Dec 28 2024 at 04:38 UTC