PkgVersion.jl

Access `version`, `uuid`, etc. in `Project.toml`
Author KlausC
Popularity
13 Stars
Updated Last
6 Months Ago
Started In
January 2020

PkgVersion.jl

Build Status Coverage Status

Provide macros to access fields version, uuid, authors in `Project.toml at compile time.

Usage

module MyModule
using Tar
using PkgVersion

const VERSION = PkgVersion.@Version 0
const UUID = PkgVersion.@Uuid 
const AUTHOR = PkgVersion.@Author "unknown@nowhere"

const VERSION_TAR = PkgVersion.Version(Tar)  

end

Notes

File Project.toml must be readable in package directory.

Author returns the first string of field authors.

Required Packages

No packages found.