Skip to main content

Module app_context

Module app_context 

Source
Expand description

AppContext & NvSdkRoot resolution for nv build / nv run / nv dev.

Structs§

AppContext
Resolved NV app crate metadata including transitive [package.metadata.nativeview] host_module names and transitive non-dev path-dependency package directories.
AppSelector
Selector identifying which NV app crate to build, run, or watch.
NvSdkRoot
Resolved NV SDK root (either a packaged read-only SDK containing sdk-manifest.json or a local monorepo checkout containing hosts/ and packages/core/abi).

Functions§

collect_host_modules
Walks the resolved Cargo dependency graph from root_pkg_id and collects all unique sorted [package.metadata.nativeview] host_module tokens across reachable packages.
collect_transitive_path_deps
Walks non-dev path_deps transitively from root_manifest_dir across meta.packages and returns canonicalized dependency package directories (excluding root_manifest_dir itself).
is_nv_sdk_root
Returns true when dir looks like a valid NV SDK root (either a packaged SDK containing sdk-manifest.json or a local monorepo checkout containing hosts/ and packages/core/abi).
resolve_app_and_optional_sdk
Resolves AppContext and an optional NvSdkRoot (never failing when no SDK is installed, so standalone [features] web apps work with zero NV_SDK_ROOT).
resolve_app_and_sdk
Resolves both AppContext and NvSdkRoot from CLI selector, optional --sdk-root, cwd, and optional --filter-platform triple.
resolve_app_target_directory
Resolves the effective Cargo target_directory for an app:
resolve_sdk_root
Resolves NvSdkRoot via precedence: