Skip to content

Support parsing non-strings #173

Open
@flokli

Description

@flokli

Description

Nixcpp doesn't fail to parse .nix files that contain non-UTF8 characters, however rnix doesn't allow this (as you have to pass in a &str, and you can't construct this from a non-UTF8 string)

Ideally we could pass any AsRef<[u8]>. Things like the bstr crate make this less annoying to interact with.

Considered alternatives

Explicitly documenting why it's a non-goal.

Additional context

https://git.snix.dev/snix/snix/issues/124

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions