Hi Jonas, Jérémy, Xavier, rust-swc-core is the last blocker for rollup 4 (https://bugs.debian.org/1092721). Could one of you do a team upload of 77.1.2+ds-2? The debdiff against 77.1.2+ds-1 is attached, and the review is in my fork, since merge requests are disabled on its repository: https://salsa.debian.org/mendezr/rust-swc-core/-/merge_requests/2
Jonas, it follows your patch layout, one commit per change, so you can cherry-pick from it if you prefer to upload it yourself. It builds against today's unstable, its 118 autopkgtests pass, and rust-microformats, the other user of these crates, still passes its tests. The full upload order for rollup 4, with the exact commits, is here: https://salsa.debian.org/mendezr/node-rollup/-/wikis/rollup-4-upload-status The six plugin MRs listed there can be uploaded now. Thanks, Juan
diff -Nru rust-swc-core-77.1.2+ds/debian/changelog rust-swc-core-77.1.2+ds/debian/changelog --- rust-swc-core-77.1.2+ds/debian/changelog 2026-08-28 17:17:32.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/changelog 2026-11-15 20:28:06.000000000 +0100 @@ -1,3 +1,30 @@ +rust-swc-core (77.1.2+ds-2) unstable; urgency=medium + + * Team upload. + * embed crates swc_compiler_base swc_ecma_codegen + swc_ecma_codegen_macros swc_ecma_hooks swc_ecma_minifier + swc_ecma_parser swc_ecma_transforms_base swc_ecma_transforms_macros + swc_ecma_transforms_optimization swc_ecma_utils, needed by rollup + v4; build-depend and depend on packages for crates arrayvec ascii + base64 compact_str dragonbox_ecma memchr num_cpus par-core petgraph + radix_fmt regex ryu-js seq-macro stacker; + depend (not only build-depend) on packages for crates globset regress + (Closes: #1150006) + * extend patch 2002_older_petgraph to cover crate + swc_ecma_transforms_optimization + * extend patch 2005_avoid_crate_testing to cover newly embedded crates + * add patch cherry-picked upstream to fix jsx_element serde test + * add autopkgtests for newly embedded crates + * fix copyright: indent license text continuation line + * update copyright info: add holder SWC contributors from LICENSE + * add patch cherry-picked upstream to use Lrc in JsWriter unit tests + * update copyright info: add License paragraphs for 0BSD BSD-2-Clause + FSFAP + * update copyright info: drop stanza for excluded packages/* + * update lintian overrides: use current context syntax + + -- Juan Manuel Méndez Rey <[email protected]> Sun, 15 Nov 2026 20:28:06 +0100 + rust-swc-core (77.1.2+ds-1) unstable; urgency=medium [ upstream ] diff -Nru rust-swc-core-77.1.2+ds/debian/control rust-swc-core-77.1.2+ds/debian/control --- rust-swc-core-77.1.2+ds/debian/control 2026-08-28 17:14:46.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/control 2026-11-15 20:28:06.000000000 +0100 @@ -10,7 +10,10 @@ librust-allocator-api2-0.2-dev, librust-anyhow-1-dev, librust-arbitrary-1-dev, + librust-arrayvec-0.7-dev, + librust-ascii-1-dev, librust-auto-impl-1-dev, + librust-base64-0.22-dev, librust-base64-simd-0.8-dev, librust-bitflags-2-dev, librust-bitvec-1-dev, @@ -25,6 +28,7 @@ librust-data-encoding-2-dev, librust-debugid-0.8-dev, librust-difference-2-dev, + librust-dragonbox-ecma-0.1-dev, librust-either-1-dev, librust-globset-0.4-dev, librust-hashbrown-0.16-dev, @@ -35,6 +39,7 @@ librust-lazy-static-1-dev, librust-lexical-7-dev, librust-lru-0.16-dev, + librust-memchr-2-dev, librust-miette-7-dev, librust-mimalloc-0.1-dev, librust-new-debug-unreachable-1-dev, @@ -42,27 +47,34 @@ librust-num-bigint-0.4-dev, librust-num-cpus-1-dev, librust-once-cell-1-dev, + librust-par-core-2-dev, librust-par-iter-2-dev, librust-parking-lot-0.12-dev, librust-path-clean-1-dev, librust-pathdiff-0.2-dev, + librust-petgraph-0.6-dev, librust-phf-0.11+phf-macros-dev, librust-pretty-assertions-1-dev, librust-proc-macro2-1-dev, librust-quote-1-dev, + librust-radix-fmt-1-dev, librust-rand-0.8-dev, + librust-regex-1-dev, librust-regress-0.10-dev, librust-relative-path-2-dev, librust-rustc-hash-2-dev, + librust-ryu-js-1-dev, librust-scoped-tls-1-dev, librust-scroll-0.13-dev, librust-semver-1-dev, + librust-seq-macro-0.3-dev, librust-serde-1-dev, librust-serde-json-1-dev, librust-shrink-to-fit-0.2-dev, librust-siphasher-1-dev, librust-smol-str-0.3-dev, librust-st-map-0.2-dev, + librust-stacker-0.1-dev, librust-string-cache-0.8-dev, librust-syn-2-dev, librust-termcolor-1-dev, @@ -147,7 +159,10 @@ librust-allocator-api2-0.2-dev, librust-anyhow-1-dev, librust-arbitrary-1-dev, + librust-arrayvec-0.7-dev, + librust-ascii-1-dev, librust-auto-impl-1-dev, + librust-base64-0.22-dev, librust-base64-simd-0.8-dev, librust-better-scoped-tls-dev, librust-bitflags-2-dev, @@ -158,10 +173,13 @@ librust-bytes-str-0.2-dev, librust-cbor4ii-1-dev, librust-chili-0.2-dev, + librust-compact-str-0.10-dev, librust-dashmap-6-dev, librust-data-encoding-2-dev, librust-debugid-0.8-dev, + librust-dragonbox-ecma-0.1-dev, librust-either-1-dev, + librust-globset-0.4-dev, librust-hashbrown-0.16-dev, librust-hstr-dev, librust-if-chain-1-dev, @@ -169,25 +187,35 @@ librust-is-macro-0.3-dev, librust-lexical-7-dev, librust-lru-0.16-dev, + librust-memchr-2-dev, librust-mimalloc-0.1-dev, librust-new-debug-unreachable-1-dev, librust-num-bigint-0.4-dev, + librust-num-cpus-1-dev, librust-once-cell-1-dev, + librust-par-core-2-dev, librust-par-iter-2-dev, librust-parking-lot-0.12-dev, librust-path-clean-1-dev, librust-pathdiff-0.2-dev, + librust-petgraph-0.6-dev, librust-phf-0.11+phf-macros-dev, librust-proc-macro2-1-dev, librust-quote-1-dev, + librust-radix-fmt-1-dev, + librust-regex-1-dev, + librust-regress-0.10-dev, librust-rustc-hash-2-dev, + librust-ryu-js-1-dev, librust-scroll-0.13-dev, librust-semver-1-dev, + librust-seq-macro-0.3-dev, librust-serde-1-dev, librust-serde-json-1-dev, librust-shrink-to-fit-0.2-dev, librust-siphasher-1-dev, librust-st-map-0.2-dev, + librust-stacker-0.1-dev, librust-syn-2-dev, librust-termcolor-1-dev, librust-thiserror-2-dev, @@ -218,6 +246,7 @@ librust-swc-common-26-dev (= ${rust:Version:librust-swc-common-dev}), librust-swc-common-26.0.0-dev (= ${rust:Version:librust-swc-common-dev}), librust-swc-common-dev (= ${rust:Version:librust-swc-common-dev}), + librust-swc-compiler-base-64.0.0-dev, librust-swc-config-6.0.0-dev, librust-swc-config-macro-1.0.1-dev, librust-swc-core-77+allocator-node-dev (= ${binary:Version}), @@ -242,7 +271,16 @@ librust-swc-css-utils-26.0.0-dev, librust-swc-css-visit-26.0.0-dev, librust-swc-ecma-ast-29.0.0-dev, + librust-swc-ecma-codegen-32.0.0-dev, + librust-swc-ecma-codegen-macros-2.0.2-dev, + librust-swc-ecma-hooks-1.0.0-dev, librust-swc-ecma-loader-27.0.0-dev, + librust-swc-ecma-minifier-61.0.4-dev, + librust-swc-ecma-parser-45.1.1-dev, + librust-swc-ecma-transforms-base-49.0.1-dev, + librust-swc-ecma-transforms-macros-1.0.1-dev, + librust-swc-ecma-transforms-optimization-52.0.0-dev, + librust-swc-ecma-utils-35.0.0-dev, librust-swc-ecma-visit-29.0.0-dev, librust-swc-eq-ignore-macros-1.0.1-dev, librust-swc-html-ast-26+default-dev (= ${rust:Version:librust-swc-html-ast-dev}), @@ -301,11 +339,16 @@ . This package contains the source for the Rust crates ast_nodes from_variant string_enum - swc_allocator swc_atoms swc_common swc_config swc_config_macro swc_core + swc_allocator swc_atoms swc_common swc_compiler_base + swc_config swc_config_macro swc_core swc_css swc_css_ast swc_css_codegen swc_css_codegen_macros swc_css_compat swc_css_lints swc_css_minifier swc_css_modules swc_css_parser swc_css_prefixer swc_css_utils swc_css_visit - swc_ecma_ast swc_ecma_loader swc_ecma_visit + swc_ecma_ast swc_ecma_codegen swc_ecma_codegen_macros swc_ecma_hooks + swc_ecma_loader swc_ecma_minifier swc_ecma_parser + swc_ecma_transforms_base swc_ecma_transforms_macros + swc_ecma_transforms_optimization + swc_ecma_utils swc_ecma_visit swc_eq_ignore_macros swc_html_ast swc_html_codegen swc_html_codegen_macros swc_html_parser swc_html_utils swc_html_visit diff -Nru rust-swc-core-77.1.2+ds/debian/copyright rust-swc-core-77.1.2+ds/debian/copyright --- rust-swc-core-77.1.2+ds/debian/copyright 2026-08-12 21:07:21.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/copyright 2026-11-15 20:28:06.000000000 +0100 @@ -22,6 +22,7 @@ Copyright: Microsoft 2017 The swc Project Developers + 2024 SWC contributors ê°ëì¤ <[email protected]> License-Grant: SWC is primarily distributed @@ -33,25 +34,6 @@ README.md Files: - packages/helpers/* - packages/types/* -Copyright: - ê°ëì¤ <[email protected]> -License-Grant: - license = "Apache-2.0/MIT" -License: Apache-2.0 or Expat -Reference: - packages/helpers/LICENSE - packages/helpers/package.json - packages/types/LICENSE - packages/types/package.json -Comment: - Code contains no explicit copyright statements. - Copyright assumed from author hints - in files <packages/helpers/package.json>. - and <packages/types/package.json>. - -Files: crates/hstr/src/wtf8/* Copyright: 2014 Simon Sapin <[email protected]> @@ -788,9 +770,48 @@ copyright is assumed to be held by the author, and license is assumed to be the same as main upstream license. +License: 0BSD + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + License: Apache-2.0 Reference: /usr/share/common-licenses/Apache-2.0 +License: BSD-2-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + * Redistributions of source code must retain the above + copyright notice, this list of conditions and the following + disclaimer. + . + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER âAS ISâ AND ANY + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF + THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + License: BSD-2-Clause-Views Redistribution and use in source and binary forms, with or without modification, @@ -1025,7 +1046,7 @@ OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. @@ -1134,6 +1155,11 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +License: FSFAP + Copying and distribution of this file, with or without modification, + are permitted in any medium without royalty provided the copyright + notice and this notice are preserved. + License: GPL-3+ Reference: /usr/share/common-licenses/GPL-3 diff -Nru rust-swc-core-77.1.2+ds/debian/patches/0001_ecma_ast_jsx_element_test_ctxt.patch rust-swc-core-77.1.2+ds/debian/patches/0001_ecma_ast_jsx_element_test_ctxt.patch --- rust-swc-core-77.1.2+ds/debian/patches/0001_ecma_ast_jsx_element_test_ctxt.patch 1970-01-01 01:00:00.000000000 +0100 +++ rust-swc-core-77.1.2+ds/debian/patches/0001_ecma_ast_jsx_element_test_ctxt.patch 2026-11-15 20:28:06.000000000 +0100 @@ -0,0 +1,19 @@ +Description: add missing ctxt field to jsx_element serde test + The test fixture lacks the ctxt field of the Ident, + so the test fails when feature serde is enabled. +Origin: upstream, https://github.com/swc-project/swc/commit/7dc1796987ab886b8f86e37e67da2c72aa734017 +Author: Gareth McSorley <[email protected]> +Applied-Upstream: https://github.com/swc-project/swc/pull/12439 +Last-Update: 2026-10-04 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/crates/swc_ecma_ast/src/expr.rs ++++ b/crates/swc_ecma_ast/src/expr.rs +@@ -1864,6 +1864,7 @@ + "end": 2, + "ctxt": 0 + }, ++ "ctxt": 0, + "value": "a", + "optional": false + }, diff -Nru rust-swc-core-77.1.2+ds/debian/patches/0002_codegen_test_lrc.patch rust-swc-core-77.1.2+ds/debian/patches/0002_codegen_test_lrc.patch --- rust-swc-core-77.1.2+ds/debian/patches/0002_codegen_test_lrc.patch 1970-01-01 01:00:00.000000000 +0100 +++ rust-swc-core-77.1.2+ds/debian/patches/0002_codegen_test_lrc.patch 2026-11-15 20:28:06.000000000 +0100 @@ -0,0 +1,97 @@ +Description: use Lrc in JsWriter unit tests + JsWriter takes a swc_common::sync::Lrc, which is Rc unless swc_common + feature concurrent is enabled. The tests passed std::sync::Arc, so they + only compiled when another crate in the build enabled that feature. +Origin: upstream, https://github.com/swc-project/swc/commit/70f5f6483f7f544dd4f375b4493dbd157aecaee4 +Author: Donny/ê°ëì¤ <[email protected]> +Bug: https://github.com/swc-project/swc/issues/12791 +Applied-Upstream: https://github.com/swc-project/swc/pull/12792 +Last-Update: 2026-11-15 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs ++++ b/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs +@@ -480,16 +480,14 @@ + + #[cfg(test)] + mod test { +- use std::sync::Arc; +- +- use swc_common::SourceMap; ++ use swc_common::{sync::Lrc, SourceMap}; + + use super::{compute_line_starts_from_bytes, JsWriter}; + use crate::text_writer::{BindingStorage, ScopeKind, WriteJs}; + + #[test] + fn changes_indent_str() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut output = Vec::new(); + let mut writer = JsWriter::new(source_map, "\n", &mut output, None); + writer.set_indent_str("\t"); +@@ -502,7 +500,7 @@ + + #[test] + fn collects_scopes_and_bindings() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut output = Vec::new(); + let mut scopes = vec![]; + let mut writer = +@@ -543,7 +541,7 @@ + + #[test] + fn hoisted_binding_targets_nearest_hoist_scope() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut output = Vec::new(); + let mut scopes = vec![]; + let mut writer = +@@ -579,7 +577,7 @@ + + #[test] + fn deduplicates_scope_variables_by_name() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut output = Vec::new(); + let mut scopes = vec![]; + let mut writer = +@@ -604,7 +602,7 @@ + + #[test] + fn tracks_position_for_ascii_without_newline() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut output = Vec::new(); + let mut srcmap = vec![]; + let mut writer = JsWriter::new(source_map, "\n", &mut output, Some(&mut srcmap)); +@@ -617,7 +615,7 @@ + + #[test] + fn tracks_position_for_crlf_and_unicode_tail() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut output = Vec::new(); + let mut srcmap = vec![]; + let mut writer = JsWriter::new(source_map, "\n", &mut output, Some(&mut srcmap)); +--- a/crates/swc_ecma_codegen/src/text_writer/semicolon.rs ++++ b/crates/swc_ecma_codegen/src/text_writer/semicolon.rs +@@ -139,15 +139,13 @@ + + #[cfg(test)] + mod tests { +- use std::sync::Arc; +- +- use swc_common::SourceMap; ++ use swc_common::{sync::Lrc, SourceMap}; + + use crate::text_writer::{basic_impl::JsWriter, BindingStorage, ScopeKind, WriteJs}; + + #[test] + fn forwards_scope_operations() { +- let source_map = Arc::new(SourceMap::default()); ++ let source_map = Lrc::new(SourceMap::default()); + let mut out = vec![]; + let mut scopes = vec![]; + { diff -Nru rust-swc-core-77.1.2+ds/debian/patches/2002_older_petgraph.patch rust-swc-core-77.1.2+ds/debian/patches/2002_older_petgraph.patch --- rust-swc-core-77.1.2+ds/debian/patches/2002_older_petgraph.patch 2026-08-12 19:18:39.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/patches/2002_older_petgraph.patch 2026-11-15 20:28:06.000000000 +0100 @@ -16,3 +16,14 @@ phf = "0.11.2" pretty_assertions = "1.3" proc-macro2 = "1.0.24" +--- a/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs ++++ b/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs +@@ -106,7 +106,7 @@ + /// + /// We use `u32` because [FastDiGraphMap] stores types as `(N, 1 bit)` so if + /// we use u32 it fits into the cache line of cpu. +- graph: GraphMap<u32, VarInfo, Directed, FxBuildHasher>, ++ graph: GraphMap<u32, VarInfo, Directed>, + /// Entrypoints. + entries: FxHashSet<u32>, + diff -Nru rust-swc-core-77.1.2+ds/debian/patches/2003_avoid_icu_properties.patch rust-swc-core-77.1.2+ds/debian/patches/2003_avoid_icu_properties.patch --- rust-swc-core-77.1.2+ds/debian/patches/2003_avoid_icu_properties.patch 2026-08-28 17:14:46.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/patches/2003_avoid_icu_properties.patch 2026-11-15 20:28:06.000000000 +0100 @@ -8,16 +8,13 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Cargo.toml +++ b/Cargo.toml -@@ -6,6 +6,14 @@ +@@ -6,6 +6,11 @@ "tools/generate-code", "tools/swc-releaser", ] +exclude = [ + "crates/swc", + "crates/swc_bundler", -+ "crates/swc_ecma_codegen", -+ "crates/swc_ecma_parser", -+ "crates/swc_ecma_transforms_base", + "crates/swc_typescript", +] resolver = "2" diff -Nru rust-swc-core-77.1.2+ds/debian/patches/2004_limit_crates.patch rust-swc-core-77.1.2+ds/debian/patches/2004_limit_crates.patch --- rust-swc-core-77.1.2+ds/debian/patches/2004_limit_crates.patch 2026-08-12 17:00:32.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/patches/2004_limit_crates.patch 2026-11-15 20:28:06.000000000 +0100 @@ -6,7 +6,7 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Cargo.toml +++ b/Cargo.toml -@@ -1,10 +1,12 @@ +@@ -1,10 +1,13 @@ [workspace] -members = [ - "xtask", @@ -16,6 +16,7 @@ - "tools/swc-releaser", +members = [ + "crates/swc_common", ++ "crates/swc_compiler_base", + "crates/swc_core", + "crates/swc_css", + "crates/swc_css_lints", diff -Nru rust-swc-core-77.1.2+ds/debian/patches/2005_avoid_crate_testing.patch rust-swc-core-77.1.2+ds/debian/patches/2005_avoid_crate_testing.patch --- rust-swc-core-77.1.2+ds/debian/patches/2005_avoid_crate_testing.patch 2026-08-28 17:14:46.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/patches/2005_avoid_crate_testing.patch 2026-11-15 20:28:06.000000000 +0100 @@ -95,8 +95,11 @@ +required-features = ["testing"] --- a/crates/swc_ecma_codegen/Cargo.toml +++ b/crates/swc_ecma_codegen/Cargo.toml -@@ -54,7 +54,14 @@ - swc_ecma_testing = { version = "27.0.0", path = "../swc_ecma_testing" } +@@ -51,11 +51,29 @@ + "sourcemap", + ] } + swc_ecma_parser = { version = "45.1.1", path = "../swc_ecma_parser" } +-swc_ecma_testing = { version = "27.0.0", path = "../swc_ecma_testing" } swc_malloc = { version = "1.2.5", path = "../swc_malloc" } swc_sourcemap = { workspace = true } -testing = { version = "27.0.0", path = "../testing" } @@ -111,9 +114,40 @@ [[test]] name = "tsrx" + required-features = ["__testing_tsrx"] ++ ++[[test]] ++name = "fixture" ++required-features = ["testing"] ++ ++[[example]] ++name = "gen" ++required-features = ["testing"] ++ ++[[example]] ++name = "sourcemap" ++required-features = ["testing"] --- a/crates/swc_ecma_parser/Cargo.toml +++ b/crates/swc_ecma_parser/Cargo.toml -@@ -74,3 +74,7 @@ +@@ -53,16 +53,15 @@ + pathdiff = { workspace = true } + pretty_assertions = { workspace = true } + serde_json = { workspace = true } +-walkdir = { workspace = true } + + cbor4ii = { workspace = true, features = ["use_std"] } ++swc_common = { version = "26.0.0", path = "../swc_common", features = ["tty-emitter"] } + swc_ecma_ast = { version = "29.0.0", path = "../swc_ecma_ast", features = [ + "serde-impl", + "encoding-impl", + ] } + swc_ecma_visit = { version = "29.0.0", path = "../swc_ecma_visit" } + swc_malloc = { version = "1.2.5", path = "../swc_malloc" } +-testing = { version = "27.0.0", path = "../testing" } + + [[example]] + name = "typescript" +@@ -74,3 +73,39 @@ [[example]] name = "perf" required-features = ["bench"] @@ -121,6 +155,38 @@ +[[test]] +name = "test262" +required-features = ["testing"] ++ ++[[test]] ++name = "comments" ++required-features = ["testing"] ++ ++[[test]] ++name = "errors" ++required-features = ["testing"] ++ ++[[test]] ++name = "flow" ++required-features = ["testing"] ++ ++[[test]] ++name = "js" ++required-features = ["testing"] ++ ++[[test]] ++name = "jsx" ++required-features = ["testing"] ++ ++[[test]] ++name = "span" ++required-features = ["testing"] ++ ++[[test]] ++name = "tsrx" ++required-features = ["testing"] ++ ++[[test]] ++name = "typescript" ++required-features = ["testing"] --- a/crates/swc_ecma_parser/src/lib.rs +++ b/crates/swc_ecma_parser/src/lib.rs @@ -155,7 +155,6 @@ @@ -359,3 +425,223 @@ +[[test]] +name = "lints" +required-features = ["testing"] +--- a/crates/swc_ecma_minifier/Cargo.toml ++++ b/crates/swc_ecma_minifier/Cargo.toml +@@ -74,13 +74,47 @@ + tracing = { workspace = true } + + [dev-dependencies] +-ansi_term = { workspace = true } + anyhow = { workspace = true } +-flate2 = { workspace = true } +-humansize = { workspace = true } + par-core = { workspace = true, features = ["chili"] } + pretty_assertions = { workspace = true } +-swc_ecma_testing = { version = "27.0.0", path = "../swc_ecma_testing" } + swc_malloc = { version = "1.2.5", path = "../swc_malloc" } +-testing = { version = "27.0.0", path = "../testing" } +-walkdir = { workspace = true } ++ ++[[test]] ++name = "compress" ++required-features = ["testing"] ++ ++[[test]] ++name = "eval" ++required-features = ["testing"] ++ ++[[test]] ++name = "exec" ++required-features = ["testing"] ++ ++[[test]] ++name = "format" ++required-features = ["testing"] ++ ++[[test]] ++name = "mangle" ++required-features = ["testing"] ++ ++[[test]] ++name = "size" ++required-features = ["testing"] ++ ++[[test]] ++name = "terser_exec" ++required-features = ["testing"] ++ ++[[example]] ++name = "compress" ++required-features = ["testing"] ++ ++[[example]] ++name = "minifier" ++required-features = ["testing"] ++ ++[[example]] ++name = "minify-all" ++required-features = ["testing"] +--- a/crates/swc_ecma_transforms_optimization/Cargo.toml ++++ b/crates/swc_ecma_transforms_optimization/Cargo.toml +@@ -19,7 +19,6 @@ + [features] + concurrent = ["swc_common/concurrent", "swc_ecma_transforms_base/concurrent"] + debug = [] +-es3 = ["swc_ecma_transforms_compat/es3"] + + [dependencies] + bytes-str = { workspace = true } +@@ -51,9 +50,27 @@ + swc_ecma_transforms_base = { version = "49.0.1", path = "../swc_ecma_transforms_base", features = [ + "inline-helpers", + ] } +-swc_ecma_transforms_compat = { version = "57.0.1", path = "../swc_ecma_transforms_compat" } +-swc_ecma_transforms_module = { version = "55.0.1", path = "../swc_ecma_transforms_module" } +-swc_ecma_transforms_proposal = { version = "49.0.0", path = "../swc_ecma_transforms_proposal" } +-swc_ecma_transforms_testing = { version = "53.0.0", path = "../swc_ecma_transforms_testing" } +-swc_ecma_transforms_typescript = { version = "55.0.1", path = "../swc_ecma_transforms_typescript" } +-testing = { version = "27.0.0", path = "../testing" } ++ ++[[test]] ++name = "const_modules" ++required-features = ["testing"] ++ ++[[test]] ++name = "fixture" ++required-features = ["testing"] ++ ++[[test]] ++name = "remove_imports_with_side_effects" ++required-features = ["testing"] ++ ++[[test]] ++name = "simplify" ++required-features = ["testing"] ++ ++[[test]] ++name = "simplify_dce" ++required-features = ["testing"] ++ ++[[test]] ++name = "simplify_inlining" ++required-features = ["testing"] +--- a/crates/swc_ecma_codegen/src/decl.rs ++++ b/crates/swc_ecma_codegen/src/decl.rs +@@ -240,6 +240,7 @@ + } + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use crate::tests::assert_min; + +--- a/crates/swc_ecma_codegen/src/expr.rs ++++ b/crates/swc_ecma_codegen/src/expr.rs +@@ -2,6 +2,7 @@ + /// + /// [ratel]:https://github.com/ratel-rust/ratel-core + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use crate::tests::assert_min; + +--- a/crates/swc_ecma_codegen/src/stmt.rs ++++ b/crates/swc_ecma_codegen/src/stmt.rs +@@ -635,6 +635,7 @@ + /// + /// [ratel]:https://github.com/ratel-rust/ratel-core + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use crate::tests::{assert_min, assert_pretty}; + +--- a/crates/swc_ecma_codegen/src/typescript.rs ++++ b/crates/swc_ecma_codegen/src/typescript.rs +@@ -1455,6 +1455,7 @@ + } + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use crate::tests::assert_min_typescript; + +--- a/crates/swc_ecma_minifier/src/compress/pure/strings.rs ++++ b/crates/swc_ecma_minifier/src/compress/pure/strings.rs +@@ -658,6 +658,7 @@ + } + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use swc_common::{FileName, Mark, SyntaxContext}; + use swc_ecma_ast::*; +--- a/crates/swc_ecma_minifier/src/compress/util/mod.rs ++++ b/crates/swc_ecma_minifier/src/compress/util/mod.rs +@@ -12,6 +12,7 @@ + use crate::util::ModuleItemExt; + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests; + + /// Creates `!e` where e is the expression passed as an argument. +--- a/crates/swc_ecma_minifier/src/metadata/mod.rs ++++ b/crates/swc_ecma_minifier/src/metadata/mod.rs +@@ -12,6 +12,7 @@ + use crate::{option::CompressOptions, usage_analyzer::marks::Marks}; + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests; + + /// This pass analyzes the comment and convert it to a mark. +--- a/crates/swc_ecma_transforms_optimization/src/inline_globals.rs ++++ b/crates/swc_ecma_transforms_optimization/src/inline_globals.rs +@@ -194,6 +194,7 @@ + } + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use swc_common::Mark; + use swc_ecma_transforms_testing::{test, Tester}; +--- a/crates/swc_ecma_transforms_optimization/src/json_parse.rs ++++ b/crates/swc_ecma_transforms_optimization/src/json_parse.rs +@@ -216,6 +216,7 @@ + } + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests { + use swc_ecma_transforms_testing::test; + +--- a/crates/swc_ecma_transforms_optimization/src/simplify/branch/mod.rs ++++ b/crates/swc_ecma_transforms_optimization/src/simplify/branch/mod.rs +@@ -18,6 +18,7 @@ + use tracing::{debug, trace}; + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests; + + /// Not intended for general use. Use [simplifier] instead. +--- a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs ++++ b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs +@@ -26,6 +26,7 @@ + use crate::debug::debug_assert_valid; + + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests; + + macro_rules! try_val { +--- a/crates/swc_ecma_codegen/src/lib.rs ++++ b/crates/swc_ecma_codegen/src/lib.rs +@@ -44,6 +44,7 @@ + mod scope_helpers; + mod stmt; + #[cfg(test)] ++#[cfg(feature = "testing")] + mod tests; + pub mod text_writer; + mod typescript; diff -Nru rust-swc-core-77.1.2+ds/debian/patches/series rust-swc-core-77.1.2+ds/debian/patches/series --- rust-swc-core-77.1.2+ds/debian/patches/series 2026-08-28 17:14:46.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/patches/series 2026-11-15 20:28:06.000000000 +0100 @@ -1,3 +1,5 @@ +0001_ecma_ast_jsx_element_test_ctxt.patch +0002_codegen_test_lrc.patch 1001_fence_tests.patch 1002_newer_cargo_metadata.patch 1002_newer_compact_str.patch diff -Nru rust-swc-core-77.1.2+ds/debian/source/lintian-overrides rust-swc-core-77.1.2+ds/debian/source/lintian-overrides --- rust-swc-core-77.1.2+ds/debian/source/lintian-overrides 2026-05-11 18:33:45.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/source/lintian-overrides 2026-11-15 20:28:06.000000000 +0100 @@ -1,5 +1,5 @@ # License is in Reference field (see bug#786450) -missing-license-paragraph-in-dep5-copyright debian/copyright apache-2\.0 * -missing-license-paragraph-in-dep5-copyright debian/copyright gpl-3\+ * -missing-license-text-in-dep5-copyright debian/copyright Apache-2\.0 * -missing-license-text-in-dep5-copyright debian/copyright GPL-3\+ * +missing-license-paragraph-in-dep5-copyright apache-2.0 [debian/copyright:*] +missing-license-paragraph-in-dep5-copyright gpl-3+ [debian/copyright:*] +missing-license-text-in-dep5-copyright Apache-2.0 [debian/copyright:*] +missing-license-text-in-dep5-copyright GPL-3+ [debian/copyright:*] diff -Nru rust-swc-core-77.1.2+ds/debian/tests/control rust-swc-core-77.1.2+ds/debian/tests/control --- rust-swc-core-77.1.2+ds/debian/tests/control 2026-08-28 17:13:36.000000000 +0200 +++ rust-swc-core-77.1.2+ds/debian/tests/control 2026-11-15 20:28:06.000000000 +0100 @@ -571,6 +571,16 @@ allow-stderr, Architecture: amd64 +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_compiler_base 64.0.0 + --all-targets +Features: + test-name=rust-swc_compiler_base:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_config 6.0.0 --all-targets Features: @@ -805,6 +815,36 @@ Restrictions: allow-stderr, +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_codegen 32.0.0 + --all-targets +Features: + test-name=rust-swc_ecma_codegen:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_codegen_macros 2.0.2 + --all-targets +Features: + test-name=rust-swc_ecma_codegen_macros:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_hooks 1.0.0 + --all-targets +Features: + test-name=rust-swc_ecma_hooks:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_loader 27.0.0 --all-targets Features: @@ -815,6 +855,68 @@ librust-swc-core-dev, Restrictions: allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_minifier 61.0.4 + --all-targets +Features: + test-name=rust-swc_ecma_minifier:default, +Depends: + dh-rust, + librust-pretty-assertions-1-dev, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_parser 45.1.1 + --all-targets +Features: + test-name=rust-swc_ecma_parser:default, +Depends: + dh-rust, + librust-pretty-assertions-1-dev, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_transforms_base 49.0.1 + --all-targets +Features: + test-name=rust-swc_ecma_transforms_base:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_transforms_macros 1.0.1 + --all-targets +Features: + test-name=rust-swc_ecma_transforms_macros:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_transforms_optimization 52.0.0 + --all-targets +Features: + test-name=rust-swc_ecma_transforms_optimization:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, + +Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_utils 35.0.0 + --all-targets +Features: + test-name=rust-swc_ecma_utils:default, +Depends: + dh-rust, + librust-swc-core-dev, +Restrictions: + allow-stderr, Test-Command: /usr/share/dh-rust/bin/cargo-auto-test swc_ecma_visit 29.0.0 --all-targets

