injectable-rs 0.1.0

A compile-time dependency injection framework for Rust using extractor-based DI
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Compile-fail test: unknown attribute in #[injectable(...)].
//!
//! Only `scope`, `has_post_construct`, and `has_pre_destruct` are
//! valid attributes for #[injectable] on a struct.

use injectable_rs::injectable;

#[injectable(bad_attribute)]
pub struct MyService;

fn main() {}