changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/lib/skel/comp/cargo.lisp

changeset 663: cc89b337384b
parent: e6c6713c17ff
author: Richard Westhaver <ellis@rwest.io>
date: Sat, 21 Sep 2024 22:58:22 -0400
permissions: -rw-r--r--
description: skel upgrades, added skel/net
1 ;;; lib/skel/comp/cargo.lisp --- Cargo.toml Components
2 
3 ;; Cargo.toml skel components.
4 
5 ;;; Commentary:
6 
7 ;; (:sk-rust-system "Cargo.toml")
8 
9 ;;; Code:
10 (in-package :skel/comp/cargo)
11 
12 (defparameter *default-cargo-manifest* "Cargo.toml")
13 (defparameter *cargo-manifest-extension* "toml")
14 
15 (defclass sk-rust-system (sk-mod)
16  ())
17 
18 (defclass sk-rust-component (sk-component)
19  (type value))
20 
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)))))
24 
25 (defun parse-sk-rust-system (path)
26  path)
27 
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)))
31 
32 (defmethod sk-compile ((self sk-rust-system) &key &allow-other-keys))
33 
34 (defmethod sk-write-file ((self sk-rust-system) &key path))
35 
36 (defmethod sk-read-file ((self sk-rust-system) path))