Skip to content

How to build the documentation using cargo xbuild?  #38

@gnzlbg

Description

@gnzlbg

I am using xargo doc to build documentation. What's the corresponding cargo-xbuild command for that ?

Activity

phil-opp

phil-opp commented on Jul 2, 2019

@phil-opp
Member

It doesn't exist yet since nobody needed it so far. But it should be relatively simple to add by creating a new binary in src/bin. Do you want to create a pull request?

Nils-TUD

Nils-TUD commented on Jul 2, 2019

@Nils-TUD

As an intermediate solution, you can also use the normal cargo doc for it:

export RUSTFLAGS="--sysroot <sysroot>"
export RUSTDOCFLAGS=$RUSTFLAGS
cargo doc --target <target>
gnzlbg

gnzlbg commented on Jul 2, 2019

@gnzlbg
Author

Thanks, I'll stick to xargo for the time being - not sure when I'll have time to create a PR.

phil-opp

phil-opp commented on Jul 2, 2019

@phil-opp
Member

@gnzlbg Sure! Let's keep this issue open, maybe someone has time to implement it.

added a commit that references this issue on Jul 8, 2019
7c1f5d8
added a commit that references this issue on Jul 9, 2019
f7904f4
gnzlbg

gnzlbg commented on Jul 9, 2019

@gnzlbg
Author

@phil-opp wow thank you! I'll see if I can get libc using this instead of xargo. The work of migrating to cargo-xbuild is happening as part of: rust-lang/libc#1376

phil-opp

phil-opp commented on Jul 9, 2019

@phil-opp
Member

Thank @Aehmlo for that, I only pushed the merge button :D.

I'll see if I can get libc using this instead of xargo. The work of migrating to cargo-xbuild is happening as part of: rust-lang/libc#1376

Oh wow, I didn't expect that. Let me know if you have any problems!

gnzlbg

gnzlbg commented on Jul 9, 2019

@gnzlbg
Author

Thank you @Aehmlo !

Let me know if you have any problems!

All green - it just worked.

phil-opp

phil-opp commented on Jul 9, 2019

@phil-opp
Member

Perfect, great to hear that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @gnzlbg@phil-opp@Nils-TUD

      Issue actions

        How to build the documentation using cargo xbuild? · Issue #38 · rust-osdev/cargo-xbuild