PenCall - The World's First Pen Polymorphic Function Call.
Pencall is a Rust library that simulates resource allocation and delivery with exponential release patterns. It provides a safe, formal interface for defining allocations and plugging in custom delivery providers.
- Register and activate allocations
- Doubling-release simulation model
- Delivery provider trait for lawful integrations
- Built-in safety caps and policy hooks
Run the included demo with:
cargo run --example basicThis will print release events to the console.
ReleaseEvent: ReleaseEvent { allocation_id: "demo1", release_time: ..., units: 1 }
ReleaseEvent: ReleaseEvent { allocation_id: "demo1", release_time: ..., units: 2 }
ReleaseEvent: ReleaseEvent { allocation_id: "demo1", release_time: ..., units: 4 }
...