aspect-runtime 0.1.0

Runtime utilities for aspect-oriented programming in Rust
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented3 out of 9 items with examples
  • Size
  • Source code size: 12.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.77 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • yijunyu/aspect-rs
    13 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • yijunyu

aspect-runtime

Runtime utilities for aspect-oriented programming in Rust.

This crate provides runtime support for aspects, including:

  • Global aspect registry for managing aspect-pointcut bindings
  • Dynamic aspect application based on pointcut patterns
  • Aspect ordering and composition

Example

use aspect_runtime::registry::global_registry;
use aspect_core::pointcut::Pointcut;
use std::sync::Arc;

// Register an aspect globally
let pointcut = Pointcut::parse("execution(pub fn *(..))").unwrap();
// global_registry().register(Arc::new(my_aspect), pointcut, 0, Some("logger".into()));