From 5864a0bac6fef40c5b96d4ad8b2b9be85095648f Mon Sep 17 00:00:00 2001 From: "Alejandro R. Mosteo" Date: Fri, 24 Jul 2020 17:02:48 +0100 Subject: [PATCH] Updated templates to new manifest format --- templates/skeleton.toml | 33 ++++++++++++++++++++++----------- templates/unavailable.toml | 4 +++- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/templates/skeleton.toml b/templates/skeleton.toml index 1e21d844..1aa69434 100644 --- a/templates/skeleton.toml +++ b/templates/skeleton.toml @@ -1,9 +1,12 @@ -[general] - ## ## Mandatory properties follow, uncommented. Fill 'em all! ## +name = "my_crate_name" + +## The release version stored in this manifest, following semantic versioning rules: https://semver.org +version = "0.1" + description = "One-liner describing the project (72 chars max)" ## See possible licenses at https://github.com/alire-project/alire/blob/master/doc/catalog-format-spec.rst#general-info @@ -20,7 +23,9 @@ maintainers-logins = ["user1", "user2"] ## ## Long description, can be multi-line using """ """ as delimiters -# long-description = "" +# long-description = """ +# A very very long Markup text can be given here. +#""" ## Executables built (must not include any relative path) # executables = [] @@ -36,15 +41,21 @@ maintainers-logins = ["user1", "user2"] ## A website with further information # website = "url" -############ -# RELEASES # -############ +## +## ORIGIN: this is where your sources are found +## -['1.0'] -origin = "https://URL_TO_ARCHIVE.tar.gz.or.zip" -origin-hashes = ["sha512:hexadecimal-hash-goes-here"] +[origin] +url = "https://URL_TO_ARCHIVE.tar.gz.or.zip" +hashes = ["sha512:hexadecimal-hash-goes-here"] -## Dependencies needed by this release: -# ['1.0'.depends-on] +## Alternatively, a git/hg/svn repository and commit can be given. +## In that case, hashes cannot be provided: +# url = "git+https://URL/to/repo" +# commit = "3cb3d3f892fb73bbfd60296e177049fde92f3bb1" + +## Dependencies needed by this release. Dependencies must be given +## as a TOML array of tables, each table containing a dependency. +# [[depends-on]] # libfoo = "^1.0" # ... diff --git a/templates/unavailable.toml b/templates/unavailable.toml index 0fb647e3..05513090 100644 --- a/templates/unavailable.toml +++ b/templates/unavailable.toml @@ -1,8 +1,10 @@ -[general] description = "Knowingly unavailable dependency template" + long-description = "This is a placeholder for an unsupported crate. Please contact the maintainer if you want to take over packaging and maintenance of this crate." + maintainers = ["alejandro@mosteo.com"] maintainers-logins = ["mosteo"] + licenses = [] tags = []