Skip to content

Use tracing rather than println? #344

@stevefan1999-personal

Description

@stevefan1999-personal
          @kevinmehall Umm the test failed because it was running under `no_std` context, and indeed there is no `println` macro. Wonder if we should also take this out too and instead of printing to the console, let's put them all together into a `Vec<String>` or let's even structuralize it. And then we could print it out altogether in the end. This could also help external compiler tracing, but I would like to keep this into another PR.

Originally posted by @stevefan1999-personal in #338 (comment)

This mean we should use https://docs.rs/tracing/latest/tracing/#crate-feature-flags. Of course, this could mean it will have to pull in a very huge dependency...

Since most of the peg usage already implied the need of an allocator, I think this is pretty fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions