Skip to main content

Module install

Module install 

Source
Expand description

Install routines from local projects, crates.io, or GitHub releases.

Parses path:, crate:, and gh: install specs, builds or downloads cdylibs, validates the plugin ABI, writes descriptor.json, and optionally runs cotis_plugin_finish_installation.

§Version naming

SourceCache version directoryRoutine name
path:Always "dev"cdylib stem or alias
crate:Crate version stringcdylib stem (alias ignored)
gh:Release tag_namerepo name or alias

§Overwrite

Unless overwrite is true, install fails if the target plugin file already exists. Use -f / --overwrite / --fo on the CLI, or update / reinstall which always overwrite.

Enums§

InstallSpec
Parsed install source for install.

Functions§

install
Install a routine into the cotis-cli cache.
normalize_cdylib_stem
Normalizes --cdylib-name / --dll-name: trim and strip a trailing platform suffix if present.
parse_install_spec
Parse an install spec string into InstallSpec.