← 输入框|github.com|刷新
Skip to content

Rust crates source code missing license #341

Closed

Description

@Owen-sz

I'm the package maintainer for framework system in Terra, and am working to get this upstreamed into Fedora but noticed the crates are separated into framework_lib and framework_tool, which means the LICENSE.md file in the root of this repo is not included in the crate source.

If the LICENSE file could be added to both crates, that would be great as it will be necessary for Fedora packaging. Should be able to symlink the license into each subfolder, and cargo publish will pull the base file into the crate archives.

Thanks!

Activity

  1. JohnAZoidberg commented on May 22, 2026

    @JohnAZoidberg
    Member

    Is it required to have the file?

    I already declare the license in the Cargo.toml for both library and tool:

    [package]
    license = "BSD-3-Clause"
    
  2. JohnAZoidberg commented on May 22, 2026

    @JohnAZoidberg
    Member

    crates.io shows the license metadata
    https://crates.io/crates/framework_lib

  3. Owen-sz commented on May 23, 2026

    @Owen-sz
    ContributorAuthor

    I don't believe it to be strictly necessary on crates.io, but it would make packaging using the crates.io source (which is how Fedora packaging would work) possible as the license requires it be distributed with redistribution of the project.

  4. JohnAZoidberg commented on Jun 2, 2026

    @JohnAZoidberg
    Member

    Hmm cargo doesn't like what I did:

    warning: only one of `license` or `license-file` is necessary
    `license` should be used if the package license can be expressed with a standard SPDX expression.
    `license-file` should be used if the package uses a non-standard license.
    See https://doc.rust-lang.org/cargo/reference/manifest.html#the-license-and-license-file-fields for more information.
    
  5. JohnAZoidberg commented on Jun 2, 2026

    @JohnAZoidberg
    Member

    Please try 0.6.4
    It should have the file

  6. Owen-sz commented on Jun 15, 2026

    @Owen-sz
    ContributorAuthor

    Looks good now, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions