Expand description
Shared Cargo metadata, AppContext, NvSdkRoot, target-directory, and artifact build helpers.
Re-exports§
pub use app_context::is_nv_sdk_root;pub use app_context::resolve_app_and_optional_sdk;pub use app_context::resolve_app_and_sdk;pub use app_context::resolve_sdk_root;pub use app_context::AppContext;pub use app_context::AppSelector;pub use app_context::NvSdkRoot;pub use artifact::build_artifact;pub use artifact::build_artifact_with_rustc_args;pub use artifact::build_artifact_with_siblings;pub use artifact::build_package_cdylib;pub use artifact::build_package_cdylib_in;pub use artifact::build_workspace_bin_in;pub use artifact::parse_cdylib_artifact_from_json;pub use artifact::run_cargo_json_command;pub use artifact::ArtifactKind;pub use artifact::BuildArtifactSpec;pub use artifact::BuiltCdylib;
Modules§
- app_
context AppContext&NvSdkRootresolution fornv build/nv run/nv dev.- artifact
- Cargo build/rustc invocation and
--message-format=json-render-diagnosticsartifact extraction. - sdk
- Packaged SDK manifest (
sdk-manifest.json), read-only cache path resolution, and SHA-256 verified prebuilt artifact resolution (libnv_runtime,nv-skia-shell,NvRuntime.xcframework,nv_accessibility_windows, AndroidjniLibs).
Structs§
- Cargo
Metadata - Parsed subset of
cargo metadata --format-version 1(with or without--no-deps). - Cargo
Package Info - Package metadata relevant to
nv(cdylib/bintargets, features,[package.metadata.nativeview]).
Functions§
- absolutize_
path - absolutize_
path_ from - dylib_
filename - Platform-specific dynamic library filename for a Rust library crate name (
foo_bar). - dylib_
path_ in - Expected compiled
cdylibpath undertarget_dir/<profile>/(used for pure path helpers). - exe_
filename - Platform-specific executable filename for a Cargo binary name.
- find_
package - Finds a package in
metaby name (preferring workspace members when duplicate names exist). - find_
workspace_ root - Resolves the enclosing Cargo workspace root.
- host_
target_ triple - Returns the active
rustchost target triple (cached once per process). - load_
cargo_ metadata - Runs
cargo metadata --no-deps --format-version 1. - load_
full_ cargo_ metadata_ in - Runs full
cargo metadata --format-version 1incwd, optionally filtered tofilter_platform. - parse_
cargo_ metadata - Parses
cargo metadata --format-version 1JSON output (both--no-depsand full graphs). - parse_
cargo_ target_ dir - Extracts
target_directoryfromcargo metadata --format-version 1JSON output. - preserve_
relative_ cargo_ target_ dir - preserve_
relative_ cargo_ target_ dir_ from - Preserves Cargo’s
cwd-relativeCARGO_TARGET_DIRsemantics when spawning a Cargo subprocess in a different working directory. - profile_
dir_ name - Cargo profile directory name (
"release"or"debug"). - resolve_
cargo_ target_ dir_ or_ fallback - Resolves the active Cargo target directory, falling back cleanly when outside a workspace.
- resolve_
target_ dir_ with_ env - Pure target-directory resolver:
- select_
cdylib_ package - Selects the target
cdylibpackage frommetagiven optional--packageand--manifest-path. - workspace_
root_ from_ meta - Resolves the enclosing Cargo workspace root using preloaded metadata when available.