| Crates.io | canon-protocol |
| lib.rs | canon-protocol |
| version | 2.0.32 |
| created_at | 2025-08-24 17:44:01.162331+00 |
| updated_at | 2025-09-01 03:10:07.991414+00 |
| description | Core types and validation for the Canon Protocol specification format |
| homepage | https://canon-protocol.org |
| repository | https://github.com/canon-protocol/canon-cli |
| max_upload_size | |
| id | 1808630 |
| size | 44,763 |
Core types and validation for the Canon Protocol specification format.
This library provides the fundamental data structures and parsing logic for the Canon Protocol, including:
Add to your Cargo.toml:
[dependencies]
canon-protocol = "0.1"
Then use in your code:
use canon_protocol::{Dependency, CanonSpecification, CanonRepository};
// Parse a dependency URI
let dep = Dependency::parse("canon-protocol.org/type@1.0.0")?;
// Create a new repository configuration
let repo = CanonRepository::new();
Apache-2.0