rust-ra-ap-hir-def 0.0.358-1
Package Information
| Description | Early name and import resolution for rust-analyzer - Rust source code Source code for Debianized Rust crate "ra_ap_hir_def" |
|---|---|
| Maintainer | Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> |
| Changed By | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
| Sponsor | tsimonq2@debian.org |
| Distribution | unstable |
| Architecture | any |
| VCS | git: https://salsa.debian.org/rust-team/debcargo-conf.git [src/ra-ap-hir-def] (browse) |
| Tracker | https://tracker.debian.org/pkg/rust-ra-ap-hir-def |
| Uploaded | 2 hours ago |
New Package Report
.changes
| Changed-By | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
|---|---|
| Architecture | source amd64 |
| Distribution | unstable |
| Date | Wed, 02 Dec 2026 13:34:08 -0600 |
| Source | rust-ra-ap-hir-def |
| Version | 0.0.358-1 |
Changelog
rust-ra-ap-hir-def (0.0.358-1) unstable; urgency=medium . * Package ra_ap_hir_def 0.0.358 from crates.io using debcargo 2.8.4
.dsc
| Package-List | librust-ra-ap-hir-def-dev deb rust optional arch=any |
|---|---|
| Section | rust |
| Priority | optional |
| Component | main |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: ra_ap_hir_def Upstream-Contact: rust-analyzer team Source: https://github.com/rust-lang/rust-analyzer Files: * Copyright: 2018-2026 rust-analyzer team License: MIT or Apache-2.0 Files: src/macro_expansion_tests/mbe/regression.rs Copyright: 2018-2026 rust-analyzer team 2015-2018 Peter Atashian <retep998@gmail.com> License: MIT or Apache-2.0 Comment: Test input includes macros from https://github.com/retep998/winapi-rs (MIT or Apache-2.0). Files: debian/* Copyright: 2026 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me> License: MIT or Apache-2.0 License: Apache-2.0 Debian systems provide the Apache 2.0 license in /usr/share/common-licenses/Apache-2.0 License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
DFSG Assistant LLM REVIEW 1 blocker, 0 important, 0 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 1 hour ago.
Report
DFSG NEW review for rust-ra-ap-hir-def version 0.0.358-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 0 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
The licensing itself is DFSG-compliant: the crate is dual-licensed MIT OR Apache-2.0 (Cargo.toml /usr/share/common-licenses/Apache-2.0 pointer and full MIT text are in debian/copyright), and no non-free terms exist anywhere in the tree. debian/copyright is not accurate about every file, though: it attributes all of src/ to "2018-2026 rust-analyzer team", while src/attrs/docs.rs explicitly contains functions copied verbatim from rust-lang/rust (holder: The Rust Project Developers), and src/macro_expansion_tests/mbe/regression.rs contains further rust-lang/rust macros and a proptest macro (Jason Lingle). Only the winapi-rs snippet has a dedicated holder stanza.
Packaging
Standard debcargo-generated Rust crate packaging of good quality: compat 13 with dh-sequence-cargo, build and test dependencies match the crate's feature graph, a DEP-3 patch relaxes two dependency versions, autopkgtest metadata exists (known-broken tests marked flaky), and Standards-Version 4.7.4 matches the current Policy release. The <!nocheck> annotations on cargo/rustc/libstd-rust-dev do not break a nocheck build because dh-cargo pulls cargo, which depends on rustc and libstd-rust-dev.
Issues
blocker licensing 1. debian/copyright omits The Rust Project Developers (and Jason Lingle) for third-party code copied into the shipped crate sources ◂
- Files:
debian/copyright:6-8,src/attrs/docs.rs:487-509,src/macro_expansion_tests/mbe/regression.rs:275,300,455,477,518,579 - Basis: checked, in the package or with a reference tool
- Evidence:
/// Copied verbatim from rustc's [beautify_doc_string]with[beautify_doc_string]: https://github.com/rust-lang/rust/blob/16a623ad.../compiler/rustc_ast/src/util/comments.rs#L38(and the same at L54 forget_horizontal_trim); in the test file,// From <https://github.com/rust-lang/rust/blob/...>five times and// From <https://github.com/AltSysrq/proptest/blob/...>; debian/copyrightFiles: *says onlyCopyright: 2018-2026 rust-analyzer team. - Problem: The MIT licence requires the copyright notice of the copied code to be preserved, and MIT/Apache-2.0 code from rust-lang/rust is held by The Rust Project Developers (Debian's own /usr/share/doc/rustc/copyright names that holder for compiler/*), while the proptest code is held by Jason Lingle. dh-cargo installs the whole crate source into librust-ra-ap-hir-def-dev under /usr/share/cargo/registry, so these files are shipped in the binary package in source form without their notices, and Policy 2.3 requires the holders to appear in debian/copyright. src/attrs/docs.rs is compiled as part of the library (pub mod attrs; pub mod docs;), making the omission of The Rust Project Developers a blocker, not a formality. The maintainer already added such a stanza for the winapi-rs snippet, but not for the rustc and proptest copies.
- Fix: Add the holders to debian/copyright: a stanza (or an extension of Files: *) for src/attrs/docs.rs and src/macro_expansion_tests/mbe/regression.rs with
Copyright: 2012-2025 The Rust Project Developers(years as appropriate) and, for the proptest macro at regression.rs:579,2017-2024 Jason Lingle, both underLicense: MIT or Apache-2.0.
Verified ◂
- Read all files under debian/: control, rules, changelog, copyright, copyright.debcargo.hint, debcargo.toml, patches/series and relax-deps.patch, tests/control, source/format, upstream/metadata.
- debian/copyright is DEP-5 with the exact 1.0 Format URL; its MIT text is complete and its Apache-2.0 pointer names /usr/share/common-licenses/Apache-2.0 correctly; the Files: * / regression.rs / debian/* stanza order is valid.
- The winapi-rs holder stanza is correct for the code in src/macro_expansion_tests/mbe/regression.rs: Peter Atashian, MIT or Apache-2.0, and the Comment explains the provenance.
- Grepped every .rs file under src/ for Copyright/(C)/©/SPDX/Licensed under/GPL/LGPL/BSD/ISC/Mozilla/public-domain wording: the only third-party provenance is the rustc copy in src/attrs/docs.rs and the rust-lang/rust and proptest snippets in src/macro_expansion_tests/mbe/regression.rs (reported). No file claims a licence other than MIT/Apache-2.0.
- The upstream tarball has no LICENSE/COPYING/NOTICE files and no built, minified, PDF or binary files; Cargo.toml, Cargo.toml.orig, Cargo.lock and .cargo_vcs_info.json are cargo/crates.io-generated members of the crate.
- The pre-review holder scan found no holder it could match that debian/copyright does not name; the omissions reported are visible only from the source comments, not from copyright lines.
- Dependencies: checked the named base crates against the reviewing system (e.g. librust-itertools-dev 0.14.0-2, librust-unicode-ident-dev 1.0.27-1, librust-salsa-dev 0.28.5+ds-2, librust-rustc-apfloat-dev 0.2.3-1, librust-la-arena-dev 0.3.1, librust-thin-vec-dev 0.2.21-1); librust-ra-ap-rustc-parse-format-0.166-dev is provided by librust-ra-ap-rustc-parse-format-dev 0.166.0-1.
- The <!nocheck> build dependencies are satisfied in a nocheck build through dh-sequence-cargo: dh-cargo depends on cargo, and cargo depends on rustc, which depends on libstd-rust-dev (apt-cache).
- dh-cargo's buildsystem (cargo.pm configure) deletes Cargo.lock before building, so the lock's itertools 0.15.0 entry does not conflict with the patched Cargo.toml requirement of 0.14; the override_dh_auto_test with
|| truematches debcargo.toml's test_is_broken for lib and lib+in-rust-tree. - At compat 13 dh skips the override_dh_auto_test target under DEB_BUILD_OPTIONS=nocheck, so the test wrapper cannot cause a nocheck FTBFS.
- Checked the patch: DEP-3 Description/Author/Forwarded/Last-Update present, and its two hunks match the current patched Cargo.toml (itertools 0.14, unicode-ident 1.0.24).
- Standards-Version 4.7.4 matches Policy 4.7.4.1 in its first two components; changelog version/distribution/date and Vcs-* fields are in order.
- uscan found upstream releases with
debian/watch; a newer upstream version is available (upstream0.0.369, packaged0.0.358), which is not a fault of the package. - Every pointer of
debian/copyrightto /usr/share/common-licenses names a file that is there (Apache-2.0).
Not confirmed ◂
- librust-ra-ap-base-db-0.0+default-dev, librust-ra-ap-cfg-0.0+default-dev/+syntax-dev/+tt-dev, librust-ra-ap-hir-expand-0.0+default-dev/+in-rust-tree-dev, librust-ra-ap-intern-0.0+default-dev, librust-ra-ap-span-0.0+default-dev, librust-ra-ap-stdx-0.0+default-dev, librust-ra-ap-syntax-0.0+default-dev, librust-ra-ap-syntax-bridge-0.0+default-dev, librust-ra-ap-tt-0.0+default-dev and librust-ra-ap-rustc-abi-0.166-dev were not in the reviewing system's package lists or NEW queues at review time; they are presumably part of the same ra-ap upload series.
- The package was not built, so the relaxed itertools 0.14 and unicode-ident 1.0.24 requirements were not compiled against the crate; only the patch text and the Cargo.toml/Cargo.lock were checked.
- Cargo.lock's full dependency graph was not compared with Debian's crate versions, since dh-cargo deletes the lock before building.
- Why the model asked for what a review has no use for. During this review it asked once for something outside the package and the reviewing system (another file of the sandbox, or a URL), or was given part of the review tooling's own configuration, and that was refused or withheld. A model does this when something it has read tells it to, so look in the package for text addressed to a reviewing program, and treat this report with suspicion. Refused:
read: "help://read/sources" is not a file of the package or of the reviewing system.
Proposed changes ◂
None.
Uploader's response to the LLM review
Fixed for the next revision: https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/1616 (lrc: no significant differences).
Please, accept this upload.
debian/copyright now credits The Rust Project Developers for the code from rustc and the proptest developers for the proptest macro (the proptest file names them, not Jason Lingle).
— Juan Manuel Méndez Rey (mendezr), 1 hour ago
Are you a maintainer or uploader of this package? Log in with Salsa to comment on the review.