ptwm_core
ptwm_core::discovery
Filesystem discovery + index cache for installed extensions.
ptwm_core::discovery
Filesystem discovery + index cache for installed extensions.
ptwm_core::discovery
crates/ptwm-core/src/discovery/mod.rs:1mod discoveryFilesystem discovery + index cache for installed extensions.
Layout per extension bundle:
$PTWM_EXTENSION_PATH-or-XDG-dir/<author-fingerprint>/<name>@<version>/
manifest.toml
<contribution>.wasm
<contribution>.so / .dylib / .dll
signature.bin
Resolution order:
* $PTWM_EXTENSION_PATH (colon-separated) if set
* else: $XDG_DATA_HOME/ptwm/extensions/ then /usr/share/ptwm/extensions/
ptwm_core::discovery::cache_dir
crates/ptwm-core/src/discovery/mod.rs:92pub fn cache_dir() -> PathBufptwm_core::discovery::detect_flavors
crates/ptwm-core/src/discovery/mod.rs:118pub fn detect_flavors(bundle_dir: &Path) -> u8Detect which flavor artifacts exist in `bundle_dir`.
ptwm_core::discovery::DiscoveredContribution
crates/ptwm-core/src/discovery/mod.rs:27pub struct DiscoveredContributionptwm_core::discovery::FLAVOR_HOST
crates/ptwm-core/src/discovery/mod.rs:24pub const FLAVOR_HOSTptwm_core::discovery::FLAVOR_NATIVE
crates/ptwm-core/src/discovery/mod.rs:23pub const FLAVOR_NATIVEptwm_core::discovery::FLAVOR_WASM
crates/ptwm-core/src/discovery/mod.rs:22pub const FLAVOR_WASMBit-flag set of detected on-disk flavors for a discovered bundle.
ptwm_core::discovery::index_cache_path
crates/ptwm-core/src/discovery/mod.rs:102pub fn index_cache_path() -> PathBufptwm_core::discovery::IndexCache
crates/ptwm-core/src/discovery/mod.rs:179pub struct IndexCacheOn-disk index cache. Stores a snapshot of `(path, mtime, manifest)` so subsequent scans skip re-parsing when nothing changed.
ptwm_core::discovery::IndexEntry
crates/ptwm-core/src/discovery/mod.rs:184pub struct IndexEntryptwm_core::discovery::resolution_path
crates/ptwm-core/src/discovery/mod.rs:106pub fn resolution_path() -> Vec<PathBuf>ptwm_core::discovery::scan_all
crates/ptwm-core/src/discovery/mod.rs:139pub fn scan_all() -> Result<Vec<DiscoveredContribution>, ExtensionError>Walk the resolution path and parse every `manifest.toml` found.
ptwm_core::discovery::scan_all_cached
crates/ptwm-core/src/discovery/mod.rs:249pub fn scan_all_cached() -> Result<Vec<DiscoveredContribution>, ExtensionError>Scan with cache: read the cached index, re-parse only entries whose mtime advanced.
ptwm_core::discovery::system_extensions_dir
crates/ptwm-core/src/discovery/mod.rs:88pub fn system_extensions_dir() -> PathBufptwm_core::discovery::user_extensions_dir
crates/ptwm-core/src/discovery/mod.rs:74pub fn user_extensions_dir() -> PathBuf