PkgVersion.jl

Access `version`, `uuid`, etc. in `Project.toml`
Author KlausC
Popularity
8 Stars
Updated Last
1 Year Ago
Started In
January 2020

PkgVersion.jl

Build Status Codecov

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 TarVersion = PkgVersion.Version(Tar)  

end
Notes

File Project.toml must exist readable.

Author returns the first string of field authors.

Required Packages

No packages found.