Skip to content

heapless on const generics: status #102

Closed
@burrbull

Description

@burrbull

I tried to port heapless types from GenericArray to usize const generics.
Here is branch.

Today I managed to compile it in release mode.
For testing you can use: cargo test --release.

Issues:

  • In debug mode compile fails.
  • Queue doesn't work. Fails on type inference. I think the problem is in the interaction of default types and const generics. pub struct Consumer<'a, T, U = usize, C = MultiCore, const N: usize>
  • I don't know how to set PowerOfTwo restriction for indexmap.

Everything else is pretty good.

rustc 1.37.0-nightly (8aa42ed7c 2019-06-24)

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