Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field to specify minimum version of the Nirum compiler #237

Open
dahlia opened this issue Feb 20, 2018 · 0 comments
Open

Field to specify minimum version of the Nirum compiler #237

dahlia opened this issue Feb 20, 2018 · 0 comments
Labels
cat:lang Category: Language design cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) cmp:frontend Component: Compiler frontend (e.g., CLI, parser, AST) typ:enhance Type: Enhancement/new feature

Comments

@dahlia
Copy link
Member

dahlia commented Feb 20, 2018

A Nirum package may use recently introduced features of the compiler so that it requires the minimum version of the compiler. Although it could be achieved by simply adding a new field to package.toml manifest:

version = "1.0.0"
compiler_requires = ">= 0.3.0"

The syntax also could be unified to #26:

version = "1.0.0"

[dependencies]
"http://nirum.org/" = ">= 0.3.0"
@dahlia dahlia added typ:enhance Type: Enhancement/new feature cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) cat:lang Category: Language design cmp:frontend Component: Compiler frontend (e.g., CLI, parser, AST) labels Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:lang Category: Language design cmp:compiler Component: Compiler backend (e.g., annotation processors, code generators) cmp:frontend Component: Compiler frontend (e.g., CLI, parser, AST) typ:enhance Type: Enhancement/new feature
Projects
None yet
Development

No branches or pull requests

1 participant