--- Begin Message ---
Package: release.debian.org
Severity: normal
Tags: trixie
User: [email protected]
Usertags: pu
Hi,
This introduces rust-cbindgen-web to trixie, like we did in the past
(#1114821). Our approach is the same, rename it, only provide
bin:cbindgen-web, and use vendored dependencies.
I have uploaded the package to NEW. Attached is the filtered debdiff
(which excludes debian/vendor/).
Cheers,
Emilio
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/cbindgen.manpages
rust-cbindgen-web-0.29.4+dfsg/debian/cbindgen.manpages
--- rust-cbindgen-0.29.4+dfsg/debian/cbindgen.manpages 2026-07-27
20:00:15.000000000 +0200
+++ rust-cbindgen-web-0.29.4+dfsg/debian/cbindgen.manpages 1970-01-01
01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-debian/cbindgen.1
-
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/cbindgen-web.manpages
rust-cbindgen-web-0.29.4+dfsg/debian/cbindgen-web.manpages
--- rust-cbindgen-0.29.4+dfsg/debian/cbindgen-web.manpages 1970-01-01
01:00:00.000000000 +0100
+++ rust-cbindgen-web-0.29.4+dfsg/debian/cbindgen-web.manpages 2026-07-27
20:00:15.000000000 +0200
@@ -0,0 +1,2 @@
+debian/cbindgen.1
+
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/changelog
rust-cbindgen-web-0.29.4+dfsg/debian/changelog
--- rust-cbindgen-0.29.4+dfsg/debian/changelog 2026-07-27 20:00:15.000000000
+0200
+++ rust-cbindgen-web-0.29.4+dfsg/debian/changelog 2026-08-17
09:17:38.000000000 +0200
@@ -1,3 +1,14 @@
+rust-cbindgen-web (0.29.4+dfsg-1~deb13u1) trixie; urgency=medium
+
+ * Non-maintainer upload.
+ * Backport to trixie as rust-cbindgen-web.
+ * Only build the cbindgen binary. Since we're vendoring the dependencies,
+ we can't easily ship a librust-cbindgen-web-dev package as its
+ dependencies won't be available.
+ * Vendor dependencies, they are not available in trixie.
+
+ -- Emilio Pozuelo Monfort <[email protected]> Mon, 17 Aug 2026 09:17:38 +0200
+
rust-cbindgen (0.29.4+dfsg-1) unstable; urgency=medium
* Package cbindgen 0.29.4 from crates.io using debcargo 2.8.2
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/control
rust-cbindgen-web-0.29.4+dfsg/debian/control
--- rust-cbindgen-0.29.4+dfsg/debian/control 2026-07-27 20:00:15.000000000
+0200
+++ rust-cbindgen-web-0.29.4+dfsg/debian/control 2026-08-05
15:21:50.000000000 +0200
@@ -1,36 +1,12 @@
-Source: rust-cbindgen
+Source: rust-cbindgen-web
Section: utils
Build-Depends: debhelper-compat (= 13),
dh-sequence-cargo,
help2man,
- librust-serial-test-dev,
cython3,
- librust-pretty-assertions-dev
Build-Depends-Arch: cargo:native,
rustc:native (>= 1.74),
libstd-rust-dev,
- librust-clap-4+default-dev (>= 4.3),
- librust-heck-0.5+default-dev,
- librust-indexmap-2+default-dev (>= 2.1.0),
- librust-log-0.4+default-dev,
- librust-proc-macro2-1+default-dev (>= 1.0.60),
- librust-quote-1+default-dev,
- librust-serde-1+derive-dev (>= 1.0.103),
- librust-serde-1+std-dev (>= 1.0.103),
- librust-serde-json-1+default-dev,
- librust-syn-2+clone-impls-dev (>= 2.0.85),
- librust-syn-2+extra-traits-dev (>= 2.0.85),
- librust-syn-2+fold-dev (>= 2.0.85),
- librust-syn-2+full-dev (>= 2.0.85),
- librust-syn-2+parsing-dev (>= 2.0.85),
- librust-syn-2+printing-dev (>= 2.0.85),
- librust-tempfile-3+default-dev,
- librust-toml+parse-dev (<< 2),
- librust-toml+parse-dev (>= 0.9),
- librust-toml+serde-dev (<< 2),
- librust-toml+serde-dev (>= 0.9),
- librust-toml+std-dev (<< 2),
- librust-toml+std-dev (>= 0.9)
Maintainer: Debian Rust Maintainers
<[email protected]>
Uploaders:
Sylvestre Ledru <[email protected]>
@@ -41,53 +17,7 @@
X-Cargo-Crate: cbindgen
X-Cargo-Crate-Version: 0.29.4
-Package: librust-cbindgen-dev
-Architecture: any
-Multi-Arch: same
-Depends:
- ${misc:Depends},
- librust-clap-4+default-dev (>= 4.3),
- librust-heck-0.5+default-dev,
- librust-indexmap-2+default-dev (>= 2.1.0),
- librust-log-0.4+default-dev,
- librust-proc-macro2-1+default-dev (>= 1.0.60),
- librust-quote-1+default-dev,
- librust-serde-1+derive-dev (>= 1.0.103),
- librust-serde-1+std-dev (>= 1.0.103),
- librust-serde-json-1+default-dev,
- librust-syn-2+clone-impls-dev (>= 2.0.85),
- librust-syn-2+extra-traits-dev (>= 2.0.85),
- librust-syn-2+fold-dev (>= 2.0.85),
- librust-syn-2+full-dev (>= 2.0.85),
- librust-syn-2+parsing-dev (>= 2.0.85),
- librust-syn-2+printing-dev (>= 2.0.85),
- librust-tempfile-3+default-dev,
- librust-toml+parse-dev (<< 2),
- librust-toml+parse-dev (>= 0.9),
- librust-toml+serde-dev (<< 2),
- librust-toml+serde-dev (>= 0.9),
- librust-toml+std-dev (<< 2),
- librust-toml+std-dev (>= 0.9)
-Provides:
- librust-cbindgen+clap-dev (= ${binary:Version}),
- librust-cbindgen+default-dev (= ${binary:Version}),
- librust-cbindgen+unstable-ir-dev (= ${binary:Version}),
- librust-cbindgen-0-dev (= ${binary:Version}),
- librust-cbindgen-0+clap-dev (= ${binary:Version}),
- librust-cbindgen-0+default-dev (= ${binary:Version}),
- librust-cbindgen-0+unstable-ir-dev (= ${binary:Version}),
- librust-cbindgen-0.29-dev (= ${binary:Version}),
- librust-cbindgen-0.29+clap-dev (= ${binary:Version}),
- librust-cbindgen-0.29+default-dev (= ${binary:Version}),
- librust-cbindgen-0.29+unstable-ir-dev (= ${binary:Version}),
- librust-cbindgen-0.29.4-dev (= ${binary:Version}),
- librust-cbindgen-0.29.4+clap-dev (= ${binary:Version}),
- librust-cbindgen-0.29.4+default-dev (= ${binary:Version}),
- librust-cbindgen-0.29.4+unstable-ir-dev (= ${binary:Version})
-Description: Generating C bindings to Rust code - Rust source code
- Source code for Debianized Rust crate "cbindgen"
-
-Package: cbindgen
+Package: cbindgen-web
Architecture: any
Section: utils
Depends:
@@ -100,6 +30,8 @@
${cargo:Suggests}
Provides:
${cargo:Provides}
+Conflicts: cbindgen
+Replaces: cbindgen
Built-Using: ${cargo:Built-Using}
Static-Built-Using: ${cargo:Static-Built-Using}
Description: Generates C bindings from Rust code
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/patches/series
rust-cbindgen-web-0.29.4+dfsg/debian/patches/series
--- rust-cbindgen-0.29.4+dfsg/debian/patches/series 2026-07-27
20:00:15.000000000 +0200
+++ rust-cbindgen-web-0.29.4+dfsg/debian/patches/series 2026-08-05
15:21:50.000000000 +0200
@@ -1,3 +1,4 @@
use-cython3-for-tests.patch
fix-tests-permission-denied.patch
relax-dep.diff
+vendor-deps-config.patch
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/patches/vendor-deps-config.patch
rust-cbindgen-web-0.29.4+dfsg/debian/patches/vendor-deps-config.patch
--- rust-cbindgen-0.29.4+dfsg/debian/patches/vendor-deps-config.patch
1970-01-01 01:00:00.000000000 +0100
+++ rust-cbindgen-web-0.29.4+dfsg/debian/patches/vendor-deps-config.patch
2026-08-05 15:21:50.000000000 +0200
@@ -0,0 +1,8 @@
+--- /dev/null
++++ b/.cargo/config
+@@ -0,0 +1,5 @@
++[source.crates-io]
++replace-with = "vendored-sources"
++
++[source.vendored-sources]
++directory = "vendor"
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/rules
rust-cbindgen-web-0.29.4+dfsg/debian/rules
--- rust-cbindgen-0.29.4+dfsg/debian/rules 2026-07-27 20:00:15.000000000
+0200
+++ rust-cbindgen-web-0.29.4+dfsg/debian/rules 2026-08-05 15:21:50.000000000
+0200
@@ -2,11 +2,17 @@
%:
dh $@ --buildsystem cargo
+execute_before_dh_auto_configure:
+ cp -a debian/vendor/ .
+
+execute_after_dh_clean:
+ rm -rf vendor/
+
override_dh_auto_test:
dh_auto_test -- test --all
override_dh_installman:
- help2man debian/cbindgen/usr/bin/cbindgen > debian/cbindgen.1
+ help2man debian/cbindgen-web/usr/bin/cbindgen > debian/cbindgen.1
dh_installman -O--buildsystem=cargo
execute_after_dh_testdir:
diff -Nru rust-cbindgen-0.29.4+dfsg/debian/source/include-binaries
rust-cbindgen-web-0.29.4+dfsg/debian/source/include-binaries
--- rust-cbindgen-0.29.4+dfsg/debian/source/include-binaries 1970-01-01
01:00:00.000000000 +0100
+++ rust-cbindgen-web-0.29.4+dfsg/debian/source/include-binaries
2026-08-05 15:21:50.000000000 +0200
@@ -0,0 +1,8 @@
+debian/vendor/unicode-ident/tests/fst/xid_continue.fst
+debian/vendor/unicode-ident/tests/fst/xid_start.fst
+debian/vendor/pretty_assertions/examples/standard_assertion.png
+debian/vendor/pretty_assertions/examples/pretty_assertion.png
+debian/vendor/pretty_assertions/examples/pretty_assertion_v0_6_1.png
+debian/vendor/windows_i686_msvc/lib/windows.0.52.0.lib
+debian/vendor/windows_aarch64_msvc/lib/windows.0.52.0.lib
+debian/vendor/windows_x86_64_msvc/lib/windows.0.52.0.lib
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/pretty_assertions/examples/pretty_assertion.png
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/pretty_assertions/examples/pretty_assertion.png
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/pretty_assertions/examples/pretty_assertion_v0_6_1.png
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/pretty_assertions/examples/pretty_assertion_v0_6_1.png
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/pretty_assertions/examples/standard_assertion.png
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/pretty_assertions/examples/standard_assertion.png
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/unicode-ident/tests/fst/xid_continue.fst
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/unicode-ident/tests/fst/xid_continue.fst
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/unicode-ident/tests/fst/xid_start.fst
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/unicode-ident/tests/fst/xid_start.fst
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/windows_aarch64_msvc/lib/windows.0.52.0.lib
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/windows_aarch64_msvc/lib/windows.0.52.0.lib
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/windows_i686_msvc/lib/windows.0.52.0.lib
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/windows_i686_msvc/lib/windows.0.52.0.lib
differ
Binary files
/tmp/wZ8E1cYwGn/rust-cbindgen-0.29.4+dfsg/debian/vendor/windows_x86_64_msvc/lib/windows.0.52.0.lib
and
/tmp/HA9mlhSYzh/rust-cbindgen-web-0.29.4+dfsg/debian/vendor/windows_x86_64_msvc/lib/windows.0.52.0.lib
differ
--- End Message ---