How to update the version after removal of a licence

I want to remove the licence: Unlicense from my library (probably sleepy during editing :disappointed: )

  • How to update my version number?
  • And should I yank the current version(s)?

According to rust semver :

"Changing the license of an open source crate is an incompatible change: users of your crate who have strict restrictions on what licenses are acceptable may be broken by the change. Consider the license to be part of your API."

Current situation:

  • license = "Unlicense OR MIT OR Apache-2.0" (Cargo.toml)
  • version = "1.0.0+doc" (Cargo.toml)
  • There is NO licence file for Unlicense.
  • There is NO mention of Unlicense in the README.

New situation:

  • license = "MIT OR Apache-2.0" (Cargo.toml)
  • version = "2.0.0" (Cargo.toml) OR version = "1.1.0" OR something else ???
  • all older versions yanked ???

Given all three licenses are permissive, I personally would remove the Unlicense from the manifest and release 2.0.0. Never tried this before though—I don't know whether crates.io permits changes to the license field between versions, but I expect it does.

Thanx for the help.
Just published my crate with a modified licence field.
No errors or warnings were reported during the process.

1 Like

it sure does. in the database, there's no license column in the crates table, the license column is actually in the versions table:

I happened to notice this the other day, when I was doing some analysis of the database dump:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.