build-system/cargo: Using autoload for (json) module.

This allows to avoid the `with-extensions` everywhere.

* guix/build/cargo-build-system.scm: Using autoload for (json)
module.

Change-Id: Iecf4ba8cfeed4b838a815288a59d35416b41553e
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2026-01-17 00:09:51 +01:00 committed by Sharlatan Hellseher
parent 09767a7729
commit 3f1012e46e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -24,6 +24,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (guix build cargo-build-system)
#:autoload (json parser) (json->scm)
#:use-module ((guix build gnu-build-system) #:prefix gnu:)
#:use-module ((guix build utils) #:hide (delete))
#:use-module (ice-9 binary-ports)
@ -38,7 +39,6 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
#:use-module (srfi srfi-43)
#:use-module (json)
#:export (%standard-phases
cargo-build))