Cargo Workspace
Parse Rust Workspace files from a Cargo.toml file.
Example
from cargo_workspace import Workspace
# Path can be a file or directory:
workspace = Workspace.from_path('Cargo.toml')
for crate in workspace.crates:
print(f'Dependencies of {crate.name}:')
for dep in crate.dependencies:
print(f' - {dep.name}')
Metadata
The metadata of each crate is accessible as well:
meta = crate.workspace.get('some.custom.key')
if meta not None:
print(f'custom metadata found: {meta}')
Metadata
Release files for cargo-workspace 1.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| cargo_workspace-1.2.8.tar.gz | 8.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cargo_workspace-1.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / cargo_workspace-1.2.8.tar.gz
| Download URL | cargo_workspace-1.2.8.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b631feb168460f6918a7ffb2184162e7436a760c820a43f1ed062b9d39fa2e4
|
|
BLAKE2b-256 checksum How to use checksums |
35acb1edf35cda18025eb3404f454a613038cb501aa240404dc5beea6e65dd76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / cargo_workspace-1.2.8-py3-none-any.whl
| Download URL | cargo_workspace-1.2.8-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a7235405752333734fedc1d15426a9c6e44df26d083c5b63e5232e1ade5cab3
|
|
BLAKE2b-256 checksum How to use checksums |
0d3ef368dff61c996e82b51be20a42271f63b507427fa743275fd8a48e65754a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for cargo-workspace 1.2.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.