Skip to content

Expose mdbook as a Library #2954

@UebelAndre

Description

@UebelAndre

Problem

Howdy, I would like to include the mdbook binary in some tooling and due to rust-lang/cargo#9096 not yet being stabilized, getting access to the mdbook binary is pretty tricky after the 0.5.0 release and requires additional infrastructure or extra complex scripting to make sure it's available.

Proposed Solution

Would it be acceptable by the maintainers to make src/main.rs into a library where the only public function is main?

Notes

This used to work prior to the 0.5.0 release but now the existing tooling would require a nightly toolchain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: Enhancement or feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions