Parse a cargo workspace and analyze its packages
Project description
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'crate at {crate.path()} has name {crate.name()}')
Note that this crate uses getter functions instead of the conventional
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cargo_workspace-1.1.0.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for cargo_workspace-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93991aeb8ee65606534b7ea3582c1a76f691c6f3e8b085156876c3ed5ddad857 |
|
MD5 | a64ad2af9457516ef5cda249715c4a8a |
|
BLAKE2b-256 | 9de379d70722605d1aa2b8704d5cd101363c15063f9f94d377239b121f0436d6 |