# Project.toml -- How to specify package dependencies

**URL:** <https://discourse.julialang.org/t/project-toml-how-to-specify-package-dependencies/16659>\
**Category:** General Usage\
**Created:** [October 23, 2018, 12:13am UTC](https://discourse.julialang.org/t/project-toml-how-to-specify-package-dependencies/16659 "2018-10-23T00:13:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielc/32/220_2.png) [@danielc](https://discourse.julialang.org/u/danielc)\
**Post date:** [October 23, 2018, 12:13am UTC](https://discourse.julialang.org/t/project-toml-how-to-specify-package-dependencies/16659/1 "2018-10-23T00:13:23Z")

</div>

Hello all,

I’m making progress on my first Julia package. Here’s what I have in my `Project.toml` file:

```julia
[compat]
julia = "1.0"

```

Does anyone know how to specify that a package should work on either Julia 0.7 or Julia 1.0 ? I tried a few random guesses but they were all wrong.

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [October 23, 2018, 12:53am UTC](https://discourse.julialang.org/t/project-toml-how-to-specify-package-dependencies/16659/2 "2018-10-23T00:53:54Z")

</div>

> Similar to other package managers, the Julia package manager respects [semantic versioning](https://semver.org/) (semver). As an example, a version specifier is given as e.g. `1.2.3` is therefore assumed to be compatible with the versions `[1.2.3 - 2.0.0)` where `)` is a non-inclusive upper bound. More specifically, a version specifier is either given as a **caret specifier** , e.g. `^1.2.3` or a **tilde specifier** `~1.2.3` . Caret specifiers are the default and hence `1.2.3 == ^1.2.3` . The difference between a caret and tilde is described in the next section. The intersection of multiple version specifiers can be formed by comma separating indiviual version specifiers.

[https://docs.julialang.org/en/v1/stdlib/Pkg/index.html#Version-specifier-format-1](https://docs.julialang.org/en/v1/stdlib/Pkg/index.html#Version-specifier-format-1)

---

<div class="post-metadata">

**Author:** ![danielc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/danielc/32/220_2.png) [@danielc](https://discourse.julialang.org/u/danielc)\
**Post date:** [October 23, 2018, 12:58am UTC](https://discourse.julialang.org/t/project-toml-how-to-specify-package-dependencies/16659/3 "2018-10-23T00:58:05Z")

</div>

Thanks!
