Skip to content

chore: declare MIT license metadata for all crates#538

Open
caarlos0 wants to merge 1 commit into
microsoft:mainfrom
caarlos0:crate-license
Open

chore: declare MIT license metadata for all crates#538
caarlos0 wants to merge 1 commit into
microsoft:mainfrom
caarlos0:crate-license

Conversation

@caarlos0

@caarlos0 caarlos0 commented Jun 19, 2026

Copy link
Copy Markdown

📖 Description

Adds explicit license metadata to every crate in the Rust workspace.

  • src/Cargo.toml — sets license = "MIT" on [workspace.package].
  • All 30 workspace member crates — add license.workspace = true so they inherit the workspace license.
  • src/testing/fuzz/Cargo.toml (mxc_fuzz) — gets a direct license = "MIT" because it is excluded from the workspace and cannot inherit from [workspace.package].

This is a pure metadata change: license lines only, no functional or build-behavior changes. Each crate's existing line endings (LF, and CRLF for wxc_common, base_container_specification, and mxc_diagnostic_console) were preserved.

🔗 References

Extracts the crate-license metadata changes from #524 into a standalone PR.

🔍 Validation

  • cargo metadata --no-deps resolves license = "MIT" for all 30 workspace members; none missing.
  • All 32 Cargo.toml files parse as valid TOML.
  • git diff confirms 32 insertions, 0 deletions — every added line is a license declaration.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

Add `license = "MIT"` to the workspace package and `license.workspace =
true` to every member crate so each crate carries explicit license
metadata. The workspace-excluded `mxc_fuzz` crate gets a direct
`license = "MIT"` since it cannot inherit from `[workspace.package]`.

Ports the crate-license metadata from microsoft/mxc PR microsoft#524.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 19, 2026 14:51
@caarlos0 caarlos0 requested a review from a team as a code owner June 19, 2026 14:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds explicit MIT license metadata across the Rust workspace so each crate’s published metadata is consistent and centrally managed via [workspace.package] inheritance.

Changes:

  • Set license = "MIT" in src/Cargo.toml under [workspace.package].
  • Added license.workspace = true to all workspace member crates to inherit the workspace license.
  • Added a direct license = "MIT" to the excluded src/testing/fuzz crate (mxc_fuzz) since it cannot inherit from the workspace.
Show a summary per file
File Description
src/Cargo.toml Declares workspace-wide license = "MIT" for inheritance.
src/backends/appcontainer/common/Cargo.toml Inherits workspace license metadata.
src/backends/bubblewrap/common/Cargo.toml Inherits workspace license metadata.
src/backends/hyperlight/common/Cargo.toml Inherits workspace license metadata.
src/backends/isolation_session/bindings/Cargo.toml Inherits workspace license metadata.
src/backends/isolation_session/common/Cargo.toml Inherits workspace license metadata.
src/backends/lxc/common/Cargo.toml Inherits workspace license metadata.
src/backends/nanvix/binaries/Cargo.toml Inherits workspace license metadata.
src/backends/nanvix/build_common/Cargo.toml Inherits workspace license metadata.
src/backends/nanvix/common/Cargo.toml Inherits workspace license metadata.
src/backends/nanvix/runner/Cargo.toml Inherits workspace license metadata.
src/backends/seatbelt/common/Cargo.toml Inherits workspace license metadata.
src/backends/windows_sandbox/common/Cargo.toml Inherits workspace license metadata.
src/backends/windows_sandbox/daemon/Cargo.toml Inherits workspace license metadata.
src/backends/windows_sandbox/guest/Cargo.toml Inherits workspace license metadata.
src/backends/wslc/common/Cargo.toml Inherits workspace license metadata.
src/core/generated/base_container_specification/Cargo.toml Inherits workspace license metadata.
src/core/lxc/Cargo.toml Inherits workspace license metadata.
src/core/mxc_build_common/Cargo.toml Inherits workspace license metadata.
src/core/mxc_darwin/Cargo.toml Inherits workspace license metadata.
src/core/mxc_pty/Cargo.toml Inherits workspace license metadata.
src/core/wxc/Cargo.toml Inherits workspace license metadata.
src/core/wxc_common/Cargo.toml Inherits workspace license metadata.
src/host/wxc_host_prep/Cargo.toml Inherits workspace license metadata.
src/host/wxc_winhttp_proxy_shim/Cargo.toml Inherits workspace license metadata.
src/testing/fuzz/Cargo.toml Declares direct license = "MIT" for excluded fuzz crate.
src/testing/linux_test_proxy/Cargo.toml Inherits workspace license metadata.
src/testing/wxc_e2e_tests/Cargo.toml Inherits workspace license metadata.
src/testing/wxc_test_driver/Cargo.toml Inherits workspace license metadata.
src/testing/wxc_test_proxy/Cargo.toml Inherits workspace license metadata.
src/testing/wxc_ui_probe/Cargo.toml Inherits workspace license metadata.
src/tools/mxc_diagnostic_console/Cargo.toml Inherits workspace license metadata.

Copilot's findings

  • Files reviewed: 31/32 changed files
  • Comments generated: 0

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.

3 participants