Skip to content

Make svgbobdoc optional #22

@LukasKalbertodt

Description

@LukasKalbertodt

Using rlsf pulls in the svgbobdoc dependency, which is not super cheap as it has a bunch of dependencies on its own. Would you be open to making it optional? I've seen there is already this:

[features]
doc_cfg = ["svgbobdoc/enable"]

And that crate says this disables the transformation and disables a few dependencies, but it still pulls in

│   └── svgbobdoc v0.3.0 (proc-macro)
│       ├── base64 v0.13.1
│       ├── proc-macro2 v1.0.103 (*)
│       ├── quote v1.0.42 (*)
│       ├── syn v1.0.109 (*)
│       └── unicode-width v0.1.14

Maybe this should ideally be improved in svgbobdoc, but given that this crate is only using svgbobdoc::transform! in one place, it should be fairly easy to cfg it behind the feature flag somehow. I can create a PR if you want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions