Skip to content

Use license to specify MIT license instead of license-file in Cargo.toml#464

Merged
anakrish merged 1 commit into
microsoft:mainfrom
unexge:push-tztrlypurlks
Aug 22, 2025
Merged

Use license to specify MIT license instead of license-file in Cargo.toml#464
anakrish merged 1 commit into
microsoft:mainfrom
unexge:push-tztrlypurlks

Conversation

@unexge

@unexge unexge commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Since Regorus is MIT-licensed, it would be better to specify license = "MIT" rather than using licene-file to point to the MIT license file. Some tools don't support parsing of license-file, for example crates.io classifies Regorus' license as "non-standard":

 $ curl -s https://crates.io/api/v1/crates/regorus/0.4.0 | jq .version.license
 "non-standard"

Using license would provide better compatibility with various tools.


There was a previous discussion regarding using multiple-licenses: https://github.com/microsoft/regorus/pull/105/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542R6, @anakrish would be happy to hear your thoughts on whether using license would be better here or if you still prefer keeping license-file.

Since Regorus is MIT-licensed, it would be better to specify `license = "MIT"` rather than using `licene-file` to point to the MIT license file.
Some tools do not support parsing of `license-file`, for example crates.io classifies Regorus' license as "non-standard":

     $ curl -s https://crates.io/api/v1/crates/regorus/0.4.0 | jq .version.license
     "non-standard"

Using `license` would provide better compatability with various tools.

Signed-off-by: Burak Varlı <burakvar@amazon.co.uk>

@anakrish anakrish left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Rationale: The current license file specifies MIT and this change provides a better way to express the same license.

If there is a need to make it multi-license due to some code we are using, we could always move that code to a separate crate and have Regorus depend on it, retaining the MIT license.

@anakrish anakrish merged commit a53c7c8 into microsoft:main Aug 22, 2025
33 checks passed
@unexge unexge deleted the push-tztrlypurlks branch August 22, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants