needle icon indicating copy to clipboard operation
needle copied to clipboard

Compile-time safe Swift dependency injection framework

Results 58 needle issues
Sort by recently updated
recently updated
newest added

`@MainActor` annotated dependencies, produce uncompilable code To support all actor annotations, I think the solution here is to make the getters for those dependencies `async`, to support just `@MainActor`, we...

## Motivation needle generate error when use Swift version 5.5 dependency project. ``` error: Unknown error: The loaded '_InternalSwiftSyntaxParser' library is from a toolchain that is not compatible with this...

Are you sure that the builds can legally be licensed under the Apache license? https://github.com/uber/needle/blob/master/Makefile#L49 copies parts of the proprietary XCode binary so I have my doubts if that is...

``` final class SomeComponent: Component { func foo() async -> Bar { ... } } ```

Hi! First of all thanks for this awesome library. I'm using [Mint](https://github.com/yonaskolb/Mint) to install my Swift build tools. I would love to do the same for needle. However, since the...

Is the Cocoapods meant to be used in macOS project? I am now [forking this project](https://github.com/TabooSun/needle/blob/579e1a736ede4233cb7ceda3a33bceaf46d7a23d/NeedleFoundation.podspec#L14) to add macOS support... Can this be supported natively?

Hi, I am trying to create components depending on the preprocessor condition: `#if MODULE_TEST var testComponent: TestComponentProtocol { get } #endif ` But NeedleGenerated generates this component even if MODULE_TEST...

Here is an example of a component ``` class ABCComponent: Component{ var a: AProtocol { A(b) } var b: BProtocol { B(c) } var c: CProtocol { C(a) } ```...

Some developers like to use `typealias` to change a component's name. We should support this.

Not planned

Hello @rudro @neakor and others, Firstly, thanks for creating this wonderful DI library that has certainly benefited many many devs and many many companies like ours. We recently started using...