PkgVersion.jl

Access `version`, `uuid`, etc. in `Project.toml`
Author KlausC
Popularity
12 Stars
Updated Last
12 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.