Skip to content

Version

rustac.sha

sha() -> str

Returns the SHA of the underlying rustac crate.

Returns:

  • str

    The git SHA that the underlying rustac crate was built from.

Examples:

>>> rustac.sha()
"4d6a60a3df1386922285191aba95a76ec704a8b4"

rustac.version

version(name: Literal['stac', 'stac-duckdb'] | None = None) -> str | None

Returns this package's version, or the version of an upstream crate.

Parameters:

  • name (Literal['stac', 'stac-duckdb'] | None, default: None ) –

    The name of the upstream crate whose version should be returned. Valid values are "stac" and "stac-duckdb". If not provided, this package's own version is returned.

Returns:

  • str | None

    The version, or None if the name is not recognized as an upstream.

Examples:

>>> rustac.version()
"0.2.0"
>>> rustac.version("stac")
"0.12.0"