Control: tags -1 patch Hello,
Please see the attached debdiff. It builds okay on my end. I'll let you take care of the upload. Best regards, Simon Quigley [email protected]
diff -Nru rust-cid-npm-0.0~git20200813.59cf068/debian/changelog rust-cid-npm-0.0~git20200813.59cf068/debian/changelog --- rust-cid-npm-0.0~git20200813.59cf068/debian/changelog 2023-10-09 13:34:50.000000000 -0500 +++ rust-cid-npm-0.0~git20200813.59cf068/debian/changelog 2026-09-11 15:19:33.000000000 -0500 @@ -1,3 +1,10 @@ +rust-cid-npm (0.0~git20200813.59cf068-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Build against cid 0.11 and rust-unixfs 0.6 (Closes: #1143697). + + -- Simon Quigley <[email protected]> Fri, 11 Sep 2026 15:19:33 -0500 + rust-cid-npm (0.0~git20200813.59cf068-2) unstable; urgency=medium * Fix compilation with updated libraries (Closes: #1042177) diff -Nru rust-cid-npm-0.0~git20200813.59cf068/debian/control rust-cid-npm-0.0~git20200813.59cf068/debian/control --- rust-cid-npm-0.0~git20200813.59cf068/debian/control 2023-08-30 09:05:33.000000000 -0500 +++ rust-cid-npm-0.0~git20200813.59cf068/debian/control 2026-09-11 15:12:27.000000000 -0500 @@ -5,8 +5,8 @@ dh-cargo (>= 25), cargo:native, rustc:native, - librust-rust-unixfs-dev, - librust-cid-dev, + librust-rust-unixfs-dev (>= 0.6), + librust-cid-dev (>= 0.11), librust-console-error-panic-hook-dev, Maintainer: Jochen Sprickerhof <[email protected]> Uploaders: Hans-Christoph Steiner <[email protected]> diff -Nru rust-cid-npm-0.0~git20200813.59cf068/debian/patches/0005-Build-against-cid-0.11-and-unixfs-0.6.patch rust-cid-npm-0.0~git20200813.59cf068/debian/patches/0005-Build-against-cid-0.11-and-unixfs-0.6.patch --- rust-cid-npm-0.0~git20200813.59cf068/debian/patches/0005-Build-against-cid-0.11-and-unixfs-0.6.patch 1969-12-31 18:00:00.000000000 -0600 +++ rust-cid-npm-0.0~git20200813.59cf068/debian/patches/0005-Build-against-cid-0.11-and-unixfs-0.6.patch 2026-09-11 15:17:20.000000000 -0500 @@ -0,0 +1,65 @@ +Description: Build against cid 0.11 and rust-unixfs 0.6 +Author: Simon Quigley <[email protected]> +Origin: vendor +Forwarded: no +Last-Update: 2026-09-11 +--- +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -25,8 +25,8 @@ default = ["console_error_panic_hook"] + + [dependencies] + wasm-bindgen = "0.2.63" +-cid = "0.10.1" +-rust-unixfs = "0.4.0" ++cid = "0.11" ++rust-unixfs = "0.6" + libc = "^0.2.73" + + +--- a/src/bin/main.rs ++++ b/src/bin/main.rs +@@ -7,7 +7,7 @@ + //! rust_cid_npm test.txt + //! ``` + +-use cid::Cid; ++use cid::{Cid, Version}; + use rust_unixfs::file::adder::FileAdder; + + use std::error::Error; +@@ -35,7 +35,10 @@ fn main() { + + fn run(config: Config) -> Result<String, Box<dyn Error>> { + +- let mut adder = FileAdder::default(); ++ // rust-unixfs 0.6 defaults to CIDv1 + raw leaves; keep classic UnixFS CIDv0. ++ let mut adder = FileAdder::builder() ++ .with_cid_version(Version::V0) ++ .build(); + + let mut stats = Stats::default(); + +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -6,7 +6,7 @@ + //! To run, simply `cd` into that directory and run `npm start` + //! Node App adapted from [this `wasm-pack` template](https://github.com/rustwasm/create-wasm-app) + +-use cid::Cid; ++use cid::{Cid, Version}; + use rust_unixfs::file::adder::FileAdder; + + use wasm_bindgen::prelude::*; +@@ -21,7 +21,10 @@ static ALLOC: wee_alloc::WeeAlloc = wee_ + pub fn get_cid(bytes: Vec<u8>) -> String { + + let mut stats = Stats::default(); +- let mut adder = FileAdder::default(); ++ // rust-unixfs 0.6 defaults to CIDv1 + raw leaves; keep classic UnixFS CIDv0. ++ let mut adder = FileAdder::builder() ++ .with_cid_version(Version::V0) ++ .build(); + + let mut total = 0; + while total < bytes.len() { diff -Nru rust-cid-npm-0.0~git20200813.59cf068/debian/patches/series rust-cid-npm-0.0~git20200813.59cf068/debian/patches/series --- rust-cid-npm-0.0~git20200813.59cf068/debian/patches/series 2023-08-28 06:56:19.000000000 -0500 +++ rust-cid-npm-0.0~git20200813.59cf068/debian/patches/series 2026-09-11 15:12:00.000000000 -0500 @@ -2,3 +2,4 @@ 0002-Name-binary-ipfs_cid.patch 0003-Fix-stdout-err-output.patch 0004-Update-to-new-rust-unixfs-and-cid-version.patch +0005-Build-against-cid-0.11-and-unixfs-0.6.patch
OpenPGP_signature.asc
Description: OpenPGP digital signature

