Skip to content

Run rustdoc for target triple #261

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

Closed
nbdd0121 opened this issue May 10, 2021 · 0 comments · Fixed by #272
Closed

Run rustdoc for target triple #261

nbdd0121 opened this issue May 10, 2021 · 0 comments · Fixed by #272
Labels
• kbuild Related to building the kernel, `make`, `Kbuild`, `Kconfig` options...

Comments

@nbdd0121
Copy link
Member

Currently we run rustdoc with host triple. This works now because kernel crate does not re-export items from other crates.

If I try to add pub use build_assert::{build_assert, build_error} in #257, make rustdoc will generate:

error[E0461]: couldn't find crate `build_assert` with expected target triple x86_64-unknown-linux-gnu
  --> rust/kernel/prelude.rs:22:9
   |
22 | pub use build_assert::{build_error, build_assert};
   |         ^^^^^^^^^^^^
   |
   = note: the following crate versions were found:
           crate `build_assert`, target triple target-10667598549189129223: /home/gary/rust-for-linux/rust/libbuild_assert.rmeta
@ojeda ojeda added prio: high • kbuild Related to building the kernel, `make`, `Kbuild`, `Kconfig` options... labels May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
• kbuild Related to building the kernel, `make`, `Kbuild`, `Kconfig` options...
Development

Successfully merging a pull request may close this issue.

2 participants