PTWM
ptwm_core

ptwm_core::discovery

Filesystem discovery + index cache for installed extensions.

ptwm_core::discovery

Filesystem discovery + index cache for installed extensions.

rsmod

ptwm_core::discovery

crates/ptwm-core/src/discovery/mod.rs:1
mod discovery

Filesystem 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/
rsfn

ptwm_core::discovery::cache_dir

crates/ptwm-core/src/discovery/mod.rs:92
pub fn cache_dir() -> PathBuf
rsfn

ptwm_core::discovery::detect_flavors

crates/ptwm-core/src/discovery/mod.rs:118
pub fn detect_flavors(bundle_dir: &Path) -> u8

Detect which flavor artifacts exist in `bundle_dir`.

rstype

ptwm_core::discovery::DiscoveredContribution

crates/ptwm-core/src/discovery/mod.rs:27
pub struct DiscoveredContribution
rsconst

ptwm_core::discovery::FLAVOR_HOST

crates/ptwm-core/src/discovery/mod.rs:24
pub const FLAVOR_HOST
rsconst

ptwm_core::discovery::FLAVOR_NATIVE

crates/ptwm-core/src/discovery/mod.rs:23
pub const FLAVOR_NATIVE
rsconst

ptwm_core::discovery::FLAVOR_WASM

crates/ptwm-core/src/discovery/mod.rs:22
pub const FLAVOR_WASM

Bit-flag set of detected on-disk flavors for a discovered bundle.

rsfn

ptwm_core::discovery::index_cache_path

crates/ptwm-core/src/discovery/mod.rs:102
pub fn index_cache_path() -> PathBuf
rstype

ptwm_core::discovery::IndexCache

crates/ptwm-core/src/discovery/mod.rs:179
pub struct IndexCache

On-disk index cache. Stores a snapshot of `(path, mtime, manifest)` so subsequent scans skip re-parsing when nothing changed.

rstype

ptwm_core::discovery::IndexEntry

crates/ptwm-core/src/discovery/mod.rs:184
pub struct IndexEntry
rsfn

ptwm_core::discovery::resolution_path

crates/ptwm-core/src/discovery/mod.rs:106
pub fn resolution_path() -> Vec<PathBuf>
rsfn

ptwm_core::discovery::scan_all

crates/ptwm-core/src/discovery/mod.rs:139
pub fn scan_all() -> Result<Vec<DiscoveredContribution>, ExtensionError>

Walk the resolution path and parse every `manifest.toml` found.

rsfn

ptwm_core::discovery::scan_all_cached

crates/ptwm-core/src/discovery/mod.rs:249
pub fn scan_all_cached() -> Result<Vec<DiscoveredContribution>, ExtensionError>

Scan with cache: read the cached index, re-parse only entries whose mtime advanced.

rsfn

ptwm_core::discovery::system_extensions_dir

crates/ptwm-core/src/discovery/mod.rs:88
pub fn system_extensions_dir() -> PathBuf
rsfn

ptwm_core::discovery::user_extensions_dir

crates/ptwm-core/src/discovery/mod.rs:74
pub fn user_extensions_dir() -> PathBuf