Function: projectile--cargo-workspace-patterns
projectile--cargo-workspace-patterns is a byte-compiled function
defined in projectile.el.
Signature
(projectile--cargo-workspace-patterns FILE)
Documentation
Return the [workspace] members declared by the Cargo manifest at FILE.
exclude entries are removed, so a fuzzing crate the workspace keeps out
of the build is not reported as a member.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defun projectile--cargo-workspace-patterns (file)
"Return the `[workspace]' members declared by the Cargo manifest at FILE.
`exclude' entries are removed, so a fuzzing crate the workspace keeps out
of the build is not reported as a member."
(let* ((text (projectile--file-contents file))
(members (projectile--toml-string-array text "members"))
(excluded (projectile--toml-string-array text "exclude")))
(seq-remove (lambda (m) (member m excluded)) members)))