Skip to content

Support set_boxed_logger in no_std environments with alloc #681

@TymanWasTaken

Description

@TymanWasTaken

I am writing a logging backend targeting https://vexide.dev, a project to support rust on a VEX V5 brain (an armv7a-none-eabihf processor), which provides alloc support without the rust standard library.

The log library docs mention the ability to use a Box to make dealing with runtime configuration easier, but it only supports this when the std feature is enabled, meaning it cannot be used on this platform. Would it be possible to modify the library to use alloc instead, allowing use of boxed loggers on some no_std platforms with alloc?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions