# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "injectables" version = "0.1.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A procedural macro library that enables field injection between Rust structs through #[injectable] and #[inject_fields] attributes. The library handles visibility rules, generic type resolution, and detects circular dependencies during compile time to ensure safe composition. This enables a declarative approach to struct composition where fields from one or more source structs can be automatically injected into target structs while respecting Rust's ownership and visibility rules." documentation = "https://docs.rs/injectables" readme = "README.md" keywords = [ "proc-macro", "injection", "field-injection", ] categories = [ "development-tools", "rust-patterns", ] license = "MIT OR Apache-2.0" repository = "https://github.com/paulxtiseo/injectables" [lib] name = "injectables" path = "src/lib.rs" proc-macro = true [[example]] name = "example_basic_usage" path = "examples/example_basic_usage.rs" [[example]] name = "example_generics_injection" path = "examples/example_generics_injection.rs" [[example]] name = "example_multiple_injection_and_visibility" path = "examples/example_multiple_injection_and_visibility.rs" [[example]] name = "example_nested_injection" path = "examples/example_nested_injection.rs" [[test]] name = "compilation_test_runner" path = "tests/compilation_test_runner.rs" [dependencies.lazy_static] version = "1.4" [dependencies.proc-macro2] version = "1.0" features = ["span-locations"] [dependencies.quote] version = "1.0" [dependencies.syn] version = "2.0" features = [ "full", "extra-traits", ] [dev-dependencies.trybuild] version = "1.0"