rtci-interceptor-derive 0.1.0

Derive and attribute macros for the interceptor traits of a sans-I/O WebRTC stack
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented0 out of 2 items with examples
  • Size
  • Source code size: 30.5 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 72.7 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Brainwires/rtci
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • nightness

rtci-interceptor-derive

Procedural macros for rtci-interceptor: #[derive(Interceptor)] marks a struct as an interceptor and names the field holding the next one in the chain, and the #[interceptor] attribute on an impl block generates the trait implementation, forwarding every method the block does not define to that field.

Use

Depend on rtci-interceptor, which re-exports the macros; a crate that defines its own interceptors needs this crate only through it. The macros' documentation, and the interceptors in rtci-interceptor's sources, show the pattern.

The macros generate code only; they implement no protocol, and the generated code does no I/O.

Licence

Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.

This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.