Skip to main content

Module platform

Module platform 

Source
Expand description

Cross-platform plugin artifact support

This module provides platform detection and artifact type validation for cross-platform plugin packaging as specified in RFC-0003.

§Supported Platforms

  • Linux: .so (shared object)
  • Windows: .dll (dynamic link library)
  • macOS: .dylib (dynamic library)

§Naming Convention

Artifacts follow the pattern: <plugin-name>-v<version>-<target-triple>.tar.gz

Examples:

  • myplugin-v1.0.0-x86_64-unknown-linux-gnu.tar.gz
  • myplugin-v1.0.0-x86_64-pc-windows-gnu.tar.gz
  • myplugin-v1.0.0-x86_64-apple-darwin.tar.gz
  • myplugin-v1.0.0-aarch64-apple-darwin.tar.gz

Structs§

ArtifactMetadata
Information extracted from an artifact filename

Enums§

Platform
Supported platform types for plugin artifacts

Constants§

SUPPORTED_ARTIFACT_EXTENSIONS
All supported artifact extensions
SUPPORTED_ARTIFACT_FILENAMES
All supported artifact filenames

Functions§

get_valid_artifact_filenames
Get all valid artifact filenames for verification
is_valid_artifact_extension
Check if an extension is a valid artifact extension
is_valid_artifact_filename
Check if a filename is a valid plugin artifact
validate_platform_artifact
Validate that a path contains a valid artifact for the given platform