Skip to content
This repository was archived by the owner on Aug 11, 2025. It is now read-only.
This repository was archived by the owner on Aug 11, 2025. It is now read-only.

Add support for stack allocation of injectables #10

@HampusMat

Description

@HampusMat

Support for stack allocation of Injectables could probably be implemented.

Stack allocation is to be possible if the interface is a concrete type.

This will require

  • Container functions like get to be able to return either a heap allocated value (like Box) or a stack allocated value.
  • The generated resolve method of Injectables to figure out whether dependencies should be used as heap or stack values
  • Very likely even more

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA feature requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions