From 810f8313f1adac5dba9855914327fcd262f36cba Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Tue, 1 Sep 2026 21:39:47 +0000 Subject: [PATCH] Relicense zlog, ztracing, and ztracing_macro under Apache-2.0 (#63573) Relicenses `zlog`, `ztracing`, and `ztracing_macro` from GPL-3.0-or-later to Apache-2.0. GPUI depends on `ztracing`, which depends on `zlog`, so these crates have to be non-copyleft for GPUI to ship as a permissively licensed project. - Switched the `license` field to `Apache-2.0` in all three manifests. - Added the `LICENSE-APACHE` symlink to `zlog`, and dropped the `LICENSE-GPL` symlinks from all three. `ztracing` and `ztracing_macro` already carried both symlinks; now the on-disk license matches the manifest. - Declared `license = "Apache-2.0"` for `gpui_util`, which had a `LICENSE-APACHE` symlink but no `license` field. `script/check-licenses` doesn't catch that, since it only inspects symlinks. No source changes; none of these crates carry GPL headers or in-source license references. Checked the rest of the subtree while here: the only first-party crates reachable from `ztracing` via `cargo tree -e normal` are `collections`, `gpui_util`, `zlog`, and `ztracing_macro`, all Apache-2.0 now. Third-party deps (`tracing`, `tracing-subscriber`, `chrono`, `log`, `anyhow`, `tracy-client`) are MIT/Apache. `script/check-licenses` passes. Release Notes: - N/A --- crates/gpui_shared_string/Cargo.toml | 1 + crates/gpui_util/Cargo.toml | 1 + crates/zlog/Cargo.toml | 2 +- crates/zlog/LICENSE-APACHE | 1 + crates/zlog/LICENSE-GPL | 1 - crates/ztracing/Cargo.toml | 2 +- crates/ztracing/LICENSE-GPL | 1 - crates/ztracing_macro/Cargo.toml | 2 +- crates/ztracing_macro/LICENSE-GPL | 1 - 9 files changed, 6 insertions(+), 6 deletions(-) create mode 120000 crates/zlog/LICENSE-APACHE delete mode 120000 crates/zlog/LICENSE-GPL delete mode 120000 crates/ztracing/LICENSE-GPL delete mode 120000 crates/ztracing_macro/LICENSE-GPL diff --git a/crates/gpui_shared_string/Cargo.toml b/crates/gpui_shared_string/Cargo.toml index e1e975a550..36ce41ac7f 100644 --- a/crates/gpui_shared_string/Cargo.toml +++ b/crates/gpui_shared_string/Cargo.toml @@ -3,6 +3,7 @@ name = "gpui_shared_string" version = "0.1.0" publish.workspace = true edition.workspace = true +license = "Apache-2.0" [lib] path = "gpui_shared_string.rs" diff --git a/crates/gpui_util/Cargo.toml b/crates/gpui_util/Cargo.toml index cad692b04d..06810be206 100644 --- a/crates/gpui_util/Cargo.toml +++ b/crates/gpui_util/Cargo.toml @@ -3,6 +3,7 @@ name = "gpui_util" version = "0.1.0" publish.workspace = true edition.workspace = true +license = "Apache-2.0" [dependencies] log.workspace = true diff --git a/crates/zlog/Cargo.toml b/crates/zlog/Cargo.toml index 2799592c8e..46f2cff324 100644 --- a/crates/zlog/Cargo.toml +++ b/crates/zlog/Cargo.toml @@ -3,7 +3,7 @@ name = "zlog" version = "0.1.0" edition.workspace = true publish.workspace = true -license = "GPL-3.0-or-later" +license = "Apache-2.0" [lints] workspace = true diff --git a/crates/zlog/LICENSE-APACHE b/crates/zlog/LICENSE-APACHE new file mode 120000 index 0000000000..1cd601d0a3 --- /dev/null +++ b/crates/zlog/LICENSE-APACHE @@ -0,0 +1 @@ +../../LICENSE-APACHE \ No newline at end of file diff --git a/crates/zlog/LICENSE-GPL b/crates/zlog/LICENSE-GPL deleted file mode 120000 index 89e542f750..0000000000 --- a/crates/zlog/LICENSE-GPL +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE-GPL \ No newline at end of file diff --git a/crates/ztracing/Cargo.toml b/crates/ztracing/Cargo.toml index 81d3fc0d09..e823785acd 100644 --- a/crates/ztracing/Cargo.toml +++ b/crates/ztracing/Cargo.toml @@ -3,7 +3,7 @@ name = "ztracing" version = "0.1.0" edition.workspace = true publish.workspace = true -license = "GPL-3.0-or-later" +license = "Apache-2.0" [lints] workspace = true diff --git a/crates/ztracing/LICENSE-GPL b/crates/ztracing/LICENSE-GPL deleted file mode 120000 index 89e542f750..0000000000 --- a/crates/ztracing/LICENSE-GPL +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE-GPL \ No newline at end of file diff --git a/crates/ztracing_macro/Cargo.toml b/crates/ztracing_macro/Cargo.toml index dbd7adce5f..5420bc6063 100644 --- a/crates/ztracing_macro/Cargo.toml +++ b/crates/ztracing_macro/Cargo.toml @@ -3,7 +3,7 @@ name = "ztracing_macro" version = "0.1.0" edition.workspace = true publish.workspace = true -license = "GPL-3.0-or-later" +license = "Apache-2.0" [lib] proc-macro = true diff --git a/crates/ztracing_macro/LICENSE-GPL b/crates/ztracing_macro/LICENSE-GPL deleted file mode 120000 index 89e542f750..0000000000 --- a/crates/ztracing_macro/LICENSE-GPL +++ /dev/null @@ -1 +0,0 @@ -../../LICENSE-GPL \ No newline at end of file