[](https://docs.rs/moq-pattern/)
[](https://crates.io/crates/moq-pattern)
[](https://github.com/moq-dev/moq/blob/main/LICENSE-MIT)
# moq-pattern
Exact path patterns for [Media over QUIC](https://moq.dev): grammar, matching, and set algebra.
A pattern describes a set of broadcast paths. This crate provides a shared grammar
for tokens, origin scopes, announce interests, and wildcard advertisements. Integrating
patterns into those consumers is separate work.
Literal paths stay coordinates; `moq-net`'s `Path` and `@moq/net`'s path module keep
construction, joins, and prefix operations.
`moq-net` and `moq-auth` re-export these types. The TypeScript twin is
[`@moq/pattern`](https://www.npmjs.com/package/@moq/pattern).
```bash
cargo add moq-pattern
```
See [docs.rs/moq-pattern](https://docs.rs/moq-pattern) for the grammar, the CAT/C4M common
subset, and the literal-path rollout.