Metadata-Version: 2.1
Name: cargo_workspace
Version: 1.1.1
Summary: Parse a cargo workspace and analyze its packages
Author-email: Oliver Tale-Yazdi <oliver@tasty.limo>
Project-URL: Homepage, https://github.com/ggwpez/py-cargo-workspace
Keywords: cargo,rust
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: test
Requires-Dist: pytest>=8.0.0; extra == "test"

# Cargo Workspace

Parse Rust Workspace files from a `Cargo.toml` file.

## Example

```python
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'crate at {crate.path} has name {crate.name}')
```

Note that this crate uses getter functions instead of the conventional 

### Metadata

The metadata of each crate is accessible like so:

```python
meta = crate.workspace.get('some.custom.key')

if meta not None:
	print(f'custom metadata found: {meta}')
```
