Description
While I understand that this is partially a PEBCAK issue, I'm putting it up anyway because it's probably caused/causing someone else grief too.
I wanted to publish a new crate - I'm new to rust/cargo so didn't realize the license was a required field. So tried to publish w/o a license, got the nice warning:
warning: manifest has no description, license, license-file, documentation, homepage or repository. See http://doc.crates.io/manifest.html#package-metadata for more info.
R'd TFM:
This is a string description of the license for this package. Currently crates.io will validate the license provided against a whitelist of known license identifiers from http://spdx.org/licenses/. Multiple licenses can be separated with a
/.
Yay, that's simple enough. Went to http://spdx.org/licenses/, grabbed the listed identifier for LGPL 3.0: LGPL-3.0-or-later
, put it in my Cargo.toml
, and boom:
error: api errors: unknown license or other term: LGPL-3.0-or-later; see http://opensource.org/licenses for options, and http://spdx.org/licenses/ for their identifiers
So, um...yeah. Cargo doesn't seem to like the -or-later
. Either the documentation, or the application, needs an update.