arx.native_config
arx.native_config
Source: packages/arx/src/arx/native_config.py
title: Typed declarative native package configuration.Functions
toml_native_value(value: str | tuple[str, ...]) -> str
title: Quote native TOML values without invalid Unicode surrogate escapes.
parameters:
value:
type: str | tuple[str, Ellipsis]
returns:
type: strClasses
NativeArtifactConfig
title: One package-relative native build input.
attributes:
kind:
type: NativeArtifactKind
path:
type: str
include_dirs:
type: tuple[str, Ellipsis]NativeFeatureConfig
title: Native artifacts and system libraries for one local feature.
attributes:
artifacts:
type: tuple[NativeArtifactConfig, Ellipsis]
libraries:
type: tuple[str, Ellipsis]NativeConfig
title: Versioned native features and exact module bindings.
attributes:
version:
type: int
features:
type: Mapping[str, NativeFeatureConfig]
modules:
type: Mapping[str, tuple[str, Ellipsis]]Methods
from_data(cls, data: Mapping[str, object]) -> NativeConfig
title: Build typed records after whole-manifest schema validation.
parameters:
data:
type: Mapping[str, object]
returns:
type: NativeConfigto_data(self) -> dict[str, object]
title: Serialize native configuration for validation and persistence.
returns:
type: dict[str, object]append_toml(self, lines: list[str]) -> None
title: Write a canonical native table without build-script hooks.
parameters:
lines:
type: list[str]