rust-astgen 0.28.7+ds-1
Package Information
| Description | write the abstract syntax tree of Rust projects as JSON rust_ast_gen loads a Rust project with the libraries of rust-analyzer and writes the syntax tree of each source file as a JSON file, with the types and method names that rust-analyzer resolves. joern's Rust frontend (rust2cpg) reads these files to build its code property graph. This package also provides RustNodeSyntax.scala, the Scala classes that describe the syntax nodes, in /usr/share/rust-astgen. |
|---|---|
| Maintainer | Juan Manuel Méndez Rey <juan.mendezr@proton.me> |
| 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/mendezr/rust-astgen.git (browse) |
| Closes | #1156211 |
| Tracker | https://tracker.debian.org/pkg/rust-astgen |
| Uploaded | 1 hour 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 23:29:58 +0100 |
| Source | rust-astgen |
| Version | 0.28.7+ds-1 |
Changelog
rust-astgen (0.28.7+ds-1) unstable; urgency=medium . * Initial release. (Closes: #1156211)
.dsc
| Section | rust |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | rust-astgen deb rust optional arch=any |
debian/copyright
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: rust-astgen Upstream-Contact: https://github.com/joernio/astgen-monorepo/issues Source: https://github.com/joernio/astgen-monorepo Files-Excluded: * Files-Included: LICENSE rust-astgen/.gitignore rust-astgen/Cargo.toml rust-astgen/README.md rust-astgen/TODO.md rust-astgen/crates rust-astgen/src rust-astgen/tests Comment: astgen-monorepo holds the AST generators of all joern frontends; this package builds only rust-astgen. Cargo.lock, the .gitattributes and scala_tests (an sbt project) are left out: the build uses the Debian crates and generates RustNodeSyntax.scala itself. Files: * Copyright: 2026 Xavier Pinho 2026 maltek 2026 Max Leuthäuser License: Apache-2.0 Comment: The top-level LICENSE of astgen-monorepo is Apache-2.0; the sources have no headers. The holders are the authors of every commit to rust-astgen up to tag rust-astgen/v0.28.7. Files: rust-astgen/crates/scala_bindings_gen/rust.ungram Copyright: 2018-2026 rust-analyzer team License: Apache-2.0 or Expat Comment: Copied from rust-analyzer, identical to the file in ra_ap_syntax 0.0.358. Files: debian/* Copyright: 2026 Juan Manuel Méndez Rey <juan.mendezr@proton.me> License: Apache-2.0 License: Apache-2.0 On Debian systems, the full text of the Apache License, Version 2.0 can be found in /usr/share/common-licenses/Apache-2.0. License: Expat 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 0 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 0 hours ago.
Report
DFSG NEW review for rust-astgen version 0.28.7+ds-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: Yes - Packaging is of good quality: Yes
- Issues: 0 blocker, 0 important, 0 minor
- debian/watch: version 5
- debian/copyright: machine-readable
- Scan before the review: nothing found
Licensing
debian/copyright is DEP-5 and matches the tree: the catch-all stanza gives Apache-2.0 for the upstream rust-astgen sources, whose only licence text is the top-level Apache-2.0 LICENSE (no source file carries a copyright or licence header); rust.ungram has its own stanza for the rust-analyzer copy with Apache-2.0 or Expat, and the full Expat text is included; debian/* is Apache-2.0. The prescan found no holder that the file omits. Files-Excluded: */Files-Included is mk-origtargz's documented 'keep only these' idiom and its list matches the unpacked +ds tree, so the repacking is described consistently. Nothing non-free or unlicensed was found.
Packaging
Reasonably packaged: debhelper compat 14, dh-cargo driven directly because the Cargo manifest is in rust-astgen/, test-only dependencies correctly marked <!nocheck> (dh skips the dh_auto_test override under nocheck at this level), a DEP-3 patch that removes a build.rs whose only job was copying rust.ungram, an autopkgtest that exercises the installed binary and the generated Scala file, and Standards-Version 4.7.4 current against Policy 4.7.4.1. The crate version requirements are all satisfied by the versions in the archive. The only open point is whether the companion rust-ra-ap-* crate uploads needed by the build are all in NEW.
Issues
None.
Verified ◂
- debian/copyright: Format 1.0;
Files: *-> Apache-2.0 with Xavier Pinho, maltek, Max Leuthäuser;rust-astgen/crates/scala_bindings_gen/rust.ungram-> Apache-2.0 or Expat with the full Expat text;debian/*-> Apache-2.0; the Apache-2.0 stanza points at /usr/share/common-licenses/Apache-2.0. - Grepped all 70 upstream files for Copyright/(C)/©/SPDX/Licensed under/Permission is hereby granted/GNU/Apache/Mozilla/public domain/All rights reserved: only the top-level Apache-2.0 LICENSE matched; no per-file notices exist, so the catch-all stanza plus the rust.ungram stanza cover the tree.
- The prescan's author check reported every holder it found as named in debian/copyright (the three upstream authors, the rust-analyzer team, and the Debian maintainer); it listed no built, minified, PDF, binary or non-free-wording files needing an entry.
- Files-Excluded: * with a Files-Included list is supported by mk-origtargz (mk-origtargz(1) names both stanzas and the
--include-fileoption); the list covers exactly the tree present (LICENSE plus rust-astgen/), and debian/README.source explains the +ds repack, so this is not an inaccurate exclusion list. - The patch in debian/patches has DEP-3 headers (Description, Author, Forwarded, Last-Update), deletes only scala_bindings_gen/build.rs, and the in-tree rust.ungram is what main.rs includes with include_str!, so the generated RustNodeSyntax.scala is reproducible (--include-date false).
- debian/rules: compat 14, dh-cargo wrapper used for the subdirectory manifest; the wrapper adds --target $(DEB_HOST_RUST_TYPE), so the RELEASE path used at install is the one cargo writes; test-only Build-Depends (ra-ap-test-fixture, temp-dir, rust-src) are <!nocheck> and are not used by the release build.
- Checked with apt-cache that the crate versions required by the Cargo.toml files are available: clap 4.6.10, anyhow 1.0.104, serde 1.0.229, serde-json 1.0.154, log 0.4.35, env_logger 0.11.12, dunce 1.0.5, heck 0.5.0, ungrammar 1.16.1, temp-dir 0.2.0, time 0.3.55; librust-ra-ap-rustc-parse-format-dev 0.166.0-1 is in the archive and source rust-ra-ap-hir-def 0.0.358-1 is in NEW (its librust-ra-ap-hir-def-dev satisfies the +default alias once accepted).
- debian/tests/control and debian/tests/json: the autopkgtest runs the installed rust_ast_gen on a scratch crate, checks the JSON node kinds and the installed /usr/share/rust-astgen/RustNodeSyntax.scala; Depends list the tools it uses (cargo, rustc, rust-src, python3).
- Read all files under debian/ (control, rules, changelog, copyright, README.source, gbp.conf, source/format, patches/series and the patch, tests/control and tests/json, the man page and manpages file), every Cargo.toml, README.md and TODO.md; grepped the Rust sources rather than reading every line. Standards-Version 4.7.4 and Policy 4.7.4.1 agree in their first two components.
- uscan found upstream releases with
debian/watch; a newer upstream version is available (upstream0.28.8, packaged0.28.7+ds), 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 ◂
- The remaining librust-ra-ap-* Build-Depends (hir, hir-ty, syntax, ide-db, load-cargo, project-model, vfs, and test-fixture, 0.0.358) were not found in the archive or in the NEW queue by apt-cache at review time; only rust-ra-ap-hir-def is in NEW. If those companion crate uploads are not accepted, the build cannot resolve ra_ap_* and will fail.
- The three upstream copyright holders and the statement that they are 'the authors of every commit to rust-astgen up to tag rust-astgen/v0.28.7' could not be checked against upstream's git history; only the unpacked tree was available.
Proposed changes ◂
None.
Uploader's response to the LLM review
The review found no issues, so no response is needed.