Hello Debian Rust team,
I am working on packaging VirusTotal's yara-x (ITP #1154199, RFS #1154450)
— I work on yara-x upstream and would like to maintain it properly in
Debian, ideally within debcargo-conf (possibly co-maintained with
pkg-security-team, as Samuel Henrique suggested).
Following feedback on the RFS about Policy §4.13, I inspected the actual
Linux CLI dependency tree (`cargo tree -p yara-x-cli -e normal --target
x86_64-unknown-linux-gnu`) and cross-checked it against sid (including
semver-suffixed packages like `librust-nom-7-dev`, `librust-sha2-0.10-dev`,
`librust-toml-0.8-dev`, `librust-syn-2-dev`, etc.).
Out of 273 crates needed for the Linux CLI binary:
- Most are already satisfied in sid (including versioned crates).
- 15 crates are missing from sid:
1. 6 crates from `wasmtime` 48.0.10 (`wasmtime`, `wasmtime-environ`,
`wasmtime-internal-component-util`, `wasmtime-internal-core`,
`wasmtime-internal-cranelift`,
`wasmtime-internal-versioned-export-macros`), while sid currently has
the `wasmtime` 36 / `cranelift` 0.123 stack (`librust-cranelift-dev`,
`librust-pulley-interpreter-dev`,
`librust-wasmtime-internal-unwinder-dev`).
2. 9 standalone crates: `ascii_tree`, `core_detect`, `intaglio`, `md2`,
`multiversion_no_op`, `simd_cesu8`, `tinyzip`, `toml_write`, and
`walrus-macro`.
- ~29 remaining semver mismatches, mostly tied to `wasm-tools`/`walrus`
(`wasmparser`/`wasm-encoder` 0.239 vs 0.245/0.254, `walrus` 0.24 vs 0.29,
`gimli` 0.32 vs 0.33/0.34), plus a few newer 1.0/0.x crates (`anstream`
1.0, `base64` 0.23, `chardetng` 1.0, `rowan` 0.17, `roxmltree` 0.21) or
crates where sid moved ahead (`convert_case` 0.11, `signal-hook` 0.4,
`winnow` 1).
Checking `apt-cache rdepends` on `librust-cranelift-dev` and
`librust-wasmparser-dev`, the only reverse dependencies in sid appear to
be `librust-gimli-dev` and `librust-walrus-dev`, so updating that stack
would not seem to break a large set of packages.
To get familiar with your workflow before writing, I ran through packaging
`ascii_tree` 0.1.1 locally with `debcargo` (setting `collapse_features = true`
in `debcargo.toml`, resolving the missing-year copyright in an overlay, and
adding a small `debian/patches/` fix for a broken rustdoc example so
`dh-cargo` tests pass).
Before opening any MRs in `debcargo-conf`, I wanted to ask for your advice:
- Is updating the `wasmtime`/`cranelift`/`wasm-tools` stack from 36 to 48
(and exposing `librust-wasmtime-dev`) feasible or planned in `debcargo-conf`?
- For the few crates where `yara-x` pins an older version than sid
(`convert_case` 0.10 vs 0.11, `signal-hook` 0.3 vs 0.4, `winnow` 0.7 vs 1),
do you generally prefer patching `yara-x` to match sid (I can also help
test/upstream those bumps)?
- If the path looks viable, should I start submitting MRs in `debcargo-conf`
for the 9 missing standalone crates (starting with `ascii_tree`)?
Any guidance would be very welcome — thank you!
Best regards,
Javier Ramirez Molina