Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Depend on a no_std compatible version of chrono #60

Closed
@robomancer-or

Description

@robomancer-or

I'm running into a dependency conflict where I can't depend on uom because it depends on num-traits, which has been made no_std compatible since the most recent version of chrono. The problem is, the released version of chrono depends on a conflicting version of num-traits that requires std. Why cargo can't sort out conflicts of this sort is beyond me, but since it can't, would cortex-m-rt switching to the github version of chrono be permissible (at least until chrono gets their act together and cuts a no_std compatible release)?

To recreate the problem for yourself, all you have to do is start a blank no_std library project, add a dep for

uom = { git = "https://github.com/iliekturtles/uom", branch = "dev-num-std", default-features=false, features =["si", "f32"] }

verify that xargo can build it, then add a dep for cortex-m-rt = "*" and try to build again

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