deep-bind 0.1.0

A macro for using threadlocals to deeply bind contextual values
Documentation
1
2
3
4
5
6
7
8
use crate::contextual;

#[derive(Clone)]
pub(super) struct MyStruct(pub(super) u8);

contextual! {
    pub(super) FromAnotherFile(OTHER): MyStruct = MyStruct(42);
}