Module ds.parsers.cargo_toml

Cargo.toml parser.

Functions

def loads(s: str, /, *, parse_float: ParseFloat = builtins.float) ‑> dict[str, typing.Any]

Parse TOML from a string.

def parse_workspace(config: Config, key: str = 'workspace') ‑> Dict[pathlib.Path, bool]
def parse_tasks(config: Config, key: str = 'workspace.metadata.scripts')

Tasks are not officially defined Cargo.toml.

However, we'll look at: - workspace.metadata.scripts - package.metadata.scripts