Skip to content

no_std support #316

Description

@theoparis

Is your feature request related to a problem? Please describe.

I know this project was just announced today, but I'd like to see #![no_std] support added, as I was looking to integrate zstd in my rust osdev project.

Describe the solution you'd like

The programs directory could be it's own crate and no_std support could be added to c2rust-lib. The dependency on the libc crate would have to made optional (as far as I can tell it's only used for size_t, malloc is already partially feature-gated).

Describe alternatives you've considered

So far I've only seen ruzstd which has limited compression levels and is probably slower. Alternatively I could use C bindings to zstd but I'd prefer a pure rust library like this one.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions