You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo new banana
Created library `banana` project
$ cargo publish
Updating registry `https://github.com/rust-lang/crates.io-index`
warning: manifest has no description, license, license-file, documentation, homepage or repository.
...
error: api errors: missing or empty metadata fields: description, license. Please see http://doc.crates.io/manifest.html#package-metadata for how to upload metadata
# add
# description = "this is a banana"
# license = "TBA"
$ cargo publish
Updating registry `https://github.com/rust-lang/crates.io-index`
warning: manifest has no documentation, homepage or repository.
…
error: api errors: unknown license or other term: TBA; see http://opensource.org/licenses for options, and http://spdx.org/licenses/ for their identifiers
# From the error above assume non-OSI license cannot be used T_T
The errors should make it clear what all the alternatives/valid values are. For example nowhere it is stated (other than in documentation), that license = "custom" is a valid option.