Mercurial > core / lisp/lib/skel/comp/cargo.lisp
changeset 559: |
e6c6713c17ff |
parent: |
f68a5996a2b1
|
child: |
cc89b337384b |
author: |
Richard Westhaver <ellis@rwest.io> |
date: |
Fri, 26 Jul 2024 19:28:10 -0400 |
permissions: |
-rw-r--r-- |
description: |
update component loading |
1 ;;; lib/skel/comp/cargo.lisp --- Cargo.toml Components 3 ;; Cargo.toml skel components. 7 ;; (:sk-rust-system "Cargo.toml") 10 (in-package :skel/comp/cargo) 12 (defparameter *default-cargo-manifest* "Cargo.toml") 13 (defparameter *cargo-manifest-extension* "toml") 15 (defclass sk-rust-system (sk-module) 18 (defclass sk-rust-component (sk-component) 21 (defmethod print-object ((object sk-rust-system) stream) 22 (print-unreadable-object (object stream :type t) 23 (format stream ":ID ~A" (format-sxhash (obj/id:id object))))) 25 (defun parse-sk-rust-system (path) 28 (defmethod sk-load-component ((kind (eql :rust-system)) (form pathname) &optional (path *default-pathname-defaults*)) 29 (declare (ignore kind)) 30 (parse-sk-rust-system (merge-pathnames form path))) 32 (defmethod sk-compile ((self sk-rust-system) &key &allow-other-keys)) 34 (defmethod sk-write-file ((self sk-rust-system) &key path)) 36 (defmethod sk-read-file ((self sk-rust-system) path))