From 934a5c58bfc6b4e45ec2e71fec9026eff3c602dc Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Fri, 19 Jun 2026 11:42:16 -0300 Subject: [PATCH] chore: declare MIT license metadata for all crates 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 #524. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Carlos Alexandro Becker --- src/Cargo.toml | 1 + src/backends/appcontainer/common/Cargo.toml | 1 + src/backends/bubblewrap/common/Cargo.toml | 1 + src/backends/hyperlight/common/Cargo.toml | 1 + src/backends/isolation_session/bindings/Cargo.toml | 1 + src/backends/isolation_session/common/Cargo.toml | 1 + src/backends/lxc/common/Cargo.toml | 1 + src/backends/nanvix/binaries/Cargo.toml | 1 + src/backends/nanvix/build_common/Cargo.toml | 1 + src/backends/nanvix/common/Cargo.toml | 1 + src/backends/nanvix/runner/Cargo.toml | 1 + src/backends/seatbelt/common/Cargo.toml | 1 + src/backends/windows_sandbox/common/Cargo.toml | 1 + src/backends/windows_sandbox/daemon/Cargo.toml | 1 + src/backends/windows_sandbox/guest/Cargo.toml | 1 + src/backends/wslc/common/Cargo.toml | 1 + src/core/generated/base_container_specification/Cargo.toml | 1 + src/core/lxc/Cargo.toml | 1 + src/core/mxc_build_common/Cargo.toml | 1 + src/core/mxc_darwin/Cargo.toml | 1 + src/core/mxc_pty/Cargo.toml | 1 + src/core/wxc/Cargo.toml | 1 + src/core/wxc_common/Cargo.toml | 1 + src/host/wxc_host_prep/Cargo.toml | 1 + src/host/wxc_winhttp_proxy_shim/Cargo.toml | 1 + src/testing/fuzz/Cargo.toml | 1 + src/testing/linux_test_proxy/Cargo.toml | 1 + src/testing/wxc_e2e_tests/Cargo.toml | 1 + src/testing/wxc_test_driver/Cargo.toml | 1 + src/testing/wxc_test_proxy/Cargo.toml | 1 + src/testing/wxc_ui_probe/Cargo.toml | 1 + src/tools/mxc_diagnostic_console/Cargo.toml | 1 + 32 files changed, 32 insertions(+) diff --git a/src/Cargo.toml b/src/Cargo.toml index 1cadc4f69..d1b569cc8 100644 --- a/src/Cargo.toml +++ b/src/Cargo.toml @@ -47,6 +47,7 @@ strip = "debuginfo" [workspace.package] version = "0.7.0" edition = "2021" +license = "MIT" [workspace.dependencies] windows = { version = "0.62", features = [ diff --git a/src/backends/appcontainer/common/Cargo.toml b/src/backends/appcontainer/common/Cargo.toml index a96228104..a38b2bdbe 100644 --- a/src/backends/appcontainer/common/Cargo.toml +++ b/src/backends/appcontainer/common/Cargo.toml @@ -2,6 +2,7 @@ name = "appcontainer_common" version.workspace = true edition.workspace = true +license.workspace = true [features] # Compile-time gate for Tier 2 (AppContainer + BFS via bfscfg.exe). diff --git a/src/backends/bubblewrap/common/Cargo.toml b/src/backends/bubblewrap/common/Cargo.toml index 606bf1678..ff50d74b0 100644 --- a/src/backends/bubblewrap/common/Cargo.toml +++ b/src/backends/bubblewrap/common/Cargo.toml @@ -2,6 +2,7 @@ name = "bwrap_common" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] wxc_common = { workspace = true } diff --git a/src/backends/hyperlight/common/Cargo.toml b/src/backends/hyperlight/common/Cargo.toml index 076ec1a0d..943ac4369 100644 --- a/src/backends/hyperlight/common/Cargo.toml +++ b/src/backends/hyperlight/common/Cargo.toml @@ -2,6 +2,7 @@ name = "hyperlight_common" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] wxc_common = { workspace = true } diff --git a/src/backends/isolation_session/bindings/Cargo.toml b/src/backends/isolation_session/bindings/Cargo.toml index 2ac13b471..ed4ccee0c 100644 --- a/src/backends/isolation_session/bindings/Cargo.toml +++ b/src/backends/isolation_session/bindings/Cargo.toml @@ -2,6 +2,7 @@ name = "isolation_session_bindings" version.workspace = true edition.workspace = true +license.workspace = true publish = false [dependencies] diff --git a/src/backends/isolation_session/common/Cargo.toml b/src/backends/isolation_session/common/Cargo.toml index 42524e650..97bd7a2b8 100644 --- a/src/backends/isolation_session/common/Cargo.toml +++ b/src/backends/isolation_session/common/Cargo.toml @@ -2,6 +2,7 @@ name = "isolation_session_common" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] wxc_common = { workspace = true } diff --git a/src/backends/lxc/common/Cargo.toml b/src/backends/lxc/common/Cargo.toml index ac102eea6..5bf54ca70 100644 --- a/src/backends/lxc/common/Cargo.toml +++ b/src/backends/lxc/common/Cargo.toml @@ -2,6 +2,7 @@ name = "lxc_common" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] wxc_common = { workspace = true } diff --git a/src/backends/nanvix/binaries/Cargo.toml b/src/backends/nanvix/binaries/Cargo.toml index c2e1f8767..8b71c06e3 100644 --- a/src/backends/nanvix/binaries/Cargo.toml +++ b/src/backends/nanvix/binaries/Cargo.toml @@ -2,6 +2,7 @@ name = "nanvix_binaries" version.workspace = true edition.workspace = true +license.workspace = true description = "Build-time download of NanVix binaries from GitHub releases" links = "nanvix_binaries" diff --git a/src/backends/nanvix/build_common/Cargo.toml b/src/backends/nanvix/build_common/Cargo.toml index 0705fb650..30f31a2bd 100644 --- a/src/backends/nanvix/build_common/Cargo.toml +++ b/src/backends/nanvix/build_common/Cargo.toml @@ -2,6 +2,7 @@ name = "nanvix_build_common" version.workspace = true edition.workspace = true +license.workspace = true description = "Build-time helpers for staging NanVix micro-VM binaries (build-only; never linked into runtime)" [dependencies] diff --git a/src/backends/nanvix/common/Cargo.toml b/src/backends/nanvix/common/Cargo.toml index 45ee0cbe5..264a1c287 100644 --- a/src/backends/nanvix/common/Cargo.toml +++ b/src/backends/nanvix/common/Cargo.toml @@ -2,6 +2,7 @@ name = "nanvix_common" version.workspace = true edition.workspace = true +license.workspace = true description = "Shared constants and configuration types for NanVix micro-VM binaries" [dependencies] diff --git a/src/backends/nanvix/runner/Cargo.toml b/src/backends/nanvix/runner/Cargo.toml index 0c774b44e..081942e21 100644 --- a/src/backends/nanvix/runner/Cargo.toml +++ b/src/backends/nanvix/runner/Cargo.toml @@ -2,6 +2,7 @@ name = "nanvix_runner" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] wxc_common = { workspace = true, features = ["microvm"] } diff --git a/src/backends/seatbelt/common/Cargo.toml b/src/backends/seatbelt/common/Cargo.toml index aa7f1529c..378e6fda1 100644 --- a/src/backends/seatbelt/common/Cargo.toml +++ b/src/backends/seatbelt/common/Cargo.toml @@ -2,6 +2,7 @@ name = "seatbelt_common" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] # Provides ExecutionRequest, ContainerPolicy, SeatbeltConfig, Logger, and diff --git a/src/backends/windows_sandbox/common/Cargo.toml b/src/backends/windows_sandbox/common/Cargo.toml index ec54f9fd7..1fbb07d9b 100644 --- a/src/backends/windows_sandbox/common/Cargo.toml +++ b/src/backends/windows_sandbox/common/Cargo.toml @@ -2,6 +2,7 @@ name = "windows_sandbox_common" version.workspace = true edition.workspace = true +license.workspace = true [dependencies] wxc_common = { workspace = true } diff --git a/src/backends/windows_sandbox/daemon/Cargo.toml b/src/backends/windows_sandbox/daemon/Cargo.toml index b1b29faf2..17f25b63e 100644 --- a/src/backends/windows_sandbox/daemon/Cargo.toml +++ b/src/backends/windows_sandbox/daemon/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_windows_sandbox_daemon" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "wxc-windows-sandbox-daemon" diff --git a/src/backends/windows_sandbox/guest/Cargo.toml b/src/backends/windows_sandbox/guest/Cargo.toml index 53cd125a9..e2da48c3e 100644 --- a/src/backends/windows_sandbox/guest/Cargo.toml +++ b/src/backends/windows_sandbox/guest/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_windows_sandbox_guest" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "wxc-windows-sandbox-guest" diff --git a/src/backends/wslc/common/Cargo.toml b/src/backends/wslc/common/Cargo.toml index 5e3677252..a86dc108d 100644 --- a/src/backends/wslc/common/Cargo.toml +++ b/src/backends/wslc/common/Cargo.toml @@ -2,6 +2,7 @@ name = "wslc_common" version.workspace = true edition.workspace = true +license.workspace = true [features] default = [] diff --git a/src/core/generated/base_container_specification/Cargo.toml b/src/core/generated/base_container_specification/Cargo.toml index c6e44ac90..6765005ee 100644 --- a/src/core/generated/base_container_specification/Cargo.toml +++ b/src/core/generated/base_container_specification/Cargo.toml @@ -2,6 +2,7 @@ name = "sandbox_spec" version.workspace = true edition.workspace = true +license.workspace = true publish = false description = "Generated FlatBuffers bindings for SandboxSpec" diff --git a/src/core/lxc/Cargo.toml b/src/core/lxc/Cargo.toml index 7f7baba63..0dea3fafa 100644 --- a/src/core/lxc/Cargo.toml +++ b/src/core/lxc/Cargo.toml @@ -2,6 +2,7 @@ name = "lxc" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "lxc-exec" diff --git a/src/core/mxc_build_common/Cargo.toml b/src/core/mxc_build_common/Cargo.toml index e26dac0fb..d26d1b744 100644 --- a/src/core/mxc_build_common/Cargo.toml +++ b/src/core/mxc_build_common/Cargo.toml @@ -2,6 +2,7 @@ name = "mxc_build_common" version.workspace = true edition.workspace = true +license.workspace = true description = "Shared build-time helpers for embedding Windows VersionInfo in MXC binaries" [target.'cfg(windows)'.dependencies] diff --git a/src/core/mxc_darwin/Cargo.toml b/src/core/mxc_darwin/Cargo.toml index 0658d5a08..67d0d03bb 100644 --- a/src/core/mxc_darwin/Cargo.toml +++ b/src/core/mxc_darwin/Cargo.toml @@ -2,6 +2,7 @@ name = "mxc_darwin" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "mxc-exec-mac" diff --git a/src/core/mxc_pty/Cargo.toml b/src/core/mxc_pty/Cargo.toml index 88c7a3b18..cba91f420 100644 --- a/src/core/mxc_pty/Cargo.toml +++ b/src/core/mxc_pty/Cargo.toml @@ -2,6 +2,7 @@ name = "mxc_pty" version.workspace = true edition.workspace = true +license.workspace = true # Unix-only at runtime: mxc_pty wraps `openpty` + `pre_exec` (TIOCSCTTY, # setsid) + sigwait-style helpers, none of which have a sensible Windows diff --git a/src/core/wxc/Cargo.toml b/src/core/wxc/Cargo.toml index 54bed8199..13eee1aea 100644 --- a/src/core/wxc/Cargo.toml +++ b/src/core/wxc/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "wxc-exec" diff --git a/src/core/wxc_common/Cargo.toml b/src/core/wxc_common/Cargo.toml index 2166dd4ce..368303748 100644 --- a/src/core/wxc_common/Cargo.toml +++ b/src/core/wxc_common/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_common" version.workspace = true edition.workspace = true +license.workspace = true [features] microvm = ["dep:nanvix_common", "dep:uuid"] diff --git a/src/host/wxc_host_prep/Cargo.toml b/src/host/wxc_host_prep/Cargo.toml index 74d331847..d2b49f597 100644 --- a/src/host/wxc_host_prep/Cargo.toml +++ b/src/host/wxc_host_prep/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_host_prep" version.workspace = true edition.workspace = true +license.workspace = true # Binary name uses hyphens (`wxc-host-prep`) to match the rest of the MXC # CLI surface (`wxc-exec`, `lxc-exec`, `mxc-exec-mac`). diff --git a/src/host/wxc_winhttp_proxy_shim/Cargo.toml b/src/host/wxc_winhttp_proxy_shim/Cargo.toml index b7eb60173..28e5dd16b 100644 --- a/src/host/wxc_winhttp_proxy_shim/Cargo.toml +++ b/src/host/wxc_winhttp_proxy_shim/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_winhttp_proxy_shim" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "winhttp-proxy-shim" diff --git a/src/testing/fuzz/Cargo.toml b/src/testing/fuzz/Cargo.toml index ad3ffaab3..bcdda08b9 100644 --- a/src/testing/fuzz/Cargo.toml +++ b/src/testing/fuzz/Cargo.toml @@ -3,6 +3,7 @@ name = "mxc_fuzz" version = "0.0.0" publish = false edition = "2021" +license = "MIT" [package.metadata] cargo-fuzz = true diff --git a/src/testing/linux_test_proxy/Cargo.toml b/src/testing/linux_test_proxy/Cargo.toml index 18e8ef75c..e8d0a2248 100644 --- a/src/testing/linux_test_proxy/Cargo.toml +++ b/src/testing/linux_test_proxy/Cargo.toml @@ -2,6 +2,7 @@ name = "linux_test_proxy" version = "0.1.0" edition.workspace = true +license.workspace = true [[bin]] name = "linux-test-proxy" diff --git a/src/testing/wxc_e2e_tests/Cargo.toml b/src/testing/wxc_e2e_tests/Cargo.toml index 7b528adca..3e5a5b45d 100644 --- a/src/testing/wxc_e2e_tests/Cargo.toml +++ b/src/testing/wxc_e2e_tests/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_e2e_tests" version.workspace = true edition.workspace = true +license.workspace = true publish = false description = "End-to-end integration tests for MXC" diff --git a/src/testing/wxc_test_driver/Cargo.toml b/src/testing/wxc_test_driver/Cargo.toml index 8fa9bd811..7a9bf08ef 100644 --- a/src/testing/wxc_test_driver/Cargo.toml +++ b/src/testing/wxc_test_driver/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_test_driver" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "wxc-test-driver" diff --git a/src/testing/wxc_test_proxy/Cargo.toml b/src/testing/wxc_test_proxy/Cargo.toml index 6096cbfbc..c10f7f271 100644 --- a/src/testing/wxc_test_proxy/Cargo.toml +++ b/src/testing/wxc_test_proxy/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_test_proxy" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "wxc-test-proxy" diff --git a/src/testing/wxc_ui_probe/Cargo.toml b/src/testing/wxc_ui_probe/Cargo.toml index 13d8e3e87..8cc5204d2 100644 --- a/src/testing/wxc_ui_probe/Cargo.toml +++ b/src/testing/wxc_ui_probe/Cargo.toml @@ -2,6 +2,7 @@ name = "wxc_ui_probe" version = "0.1.0" edition.workspace = true +license.workspace = true [[bin]] name = "wxc-ui-probe" diff --git a/src/tools/mxc_diagnostic_console/Cargo.toml b/src/tools/mxc_diagnostic_console/Cargo.toml index c5de5978c..541678e82 100644 --- a/src/tools/mxc_diagnostic_console/Cargo.toml +++ b/src/tools/mxc_diagnostic_console/Cargo.toml @@ -2,6 +2,7 @@ name = "mxc_diagnostic_console" version.workspace = true edition.workspace = true +license.workspace = true [[bin]] name = "mxc-diagnostic-console"