Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make doc does not work, neither does cargo doc #1861

Open
icefoxen opened this issue Mar 1, 2018 · 1 comment
Open

make doc does not work, neither does cargo doc #1861

icefoxen opened this issue Mar 1, 2018 · 1 comment

Comments

@icefoxen
Copy link
Contributor

icefoxen commented Mar 1, 2018

Just making an issue for this, since I can't find one already.

cargo doc inconveniently does not have --features or --exclude flags, which means trivially working it into the current makefile's setup is difficult. Trying to build it on any one platform is going to have at least one backend that won't build 'cause it won't have Metal or DirectX or whatever.

Weirdly, you can do cargo build --exclude and it works just fine, it just builds a subset of the workspace's crates. And doing cargo doc in just the src/hal subdirectory seems to work fine. But how to make this play nice with docs.rs is something that is currently beyond me.

Related: rust-lang/cargo#4049 ?

I dunno, there might be a clever way around this but I can't think of it right now.

@scoopr
Copy link
Contributor

scoopr commented Apr 4, 2018

Even a documented workaround would be nice. I just commented out other bits from the workspace toml except hal and the backend I wanted, which worked. cargo doc --help says that there is --features flag, but that didn't seem to do anything, it still tried to go through all the backends.

@kvark kvark removed the api: hal label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants