-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add support for more targets #563
Comments
Earlier docs were built with the explicit |
@Disasm We stopped passing Thanks for pointing out .cargo/config, I wouldn't have noticed that. Would ignoring configuration in .cargo/config solve your issue? Or does your crate sometimes depend on that config to build? |
Also I suppose this is as good a place as any to talk about additional targets. I would like to support more targets, but it requires some significant refactors on our ends. Adapted from a chat I had on Discord: Targets are currently a little complicated. We have 5 targets that we build which are documented
Once #532 is merged, I think adding more targets might be interesting under the following conditions:
Note that build-scripts and proc-macros will still be broken when passed |
Just to clarify, you mean anything that could be |
I have a possible solution that might help by making new targets opt-in instead of opt-out. No promises, but I hope to have it implemented in the next 2 to 3 weeks. After that is merged I just need to add code that allows non-tier 1 targets to be added at runtime, which will be a fair amount of work but unlikely to break anything. |
That’s promising news. Thanks for the effort you’ve put into this! |
@rubberduck203 I'm running into some trouble trying to build
I run into the same trouble building with stable instead of nightly. |
That crate requires features from Try this crate, which doesn't rely on the std lib.. $ git clone https://github.com/rubberduck203/switch-hal.git && cd switch-hal
$ cargo +nightly doc --target thumbv7em-none-eabihf
Updating crates.io index
Checking nb v0.1.2
Checking void v1.0.2
Documenting nb v0.1.2
Documenting void v1.0.2
Checking embedded-hal v0.2.3
Documenting embedded-hal v0.2.3
Documenting switch-hal v0.3.2 (/Users/rubberduck/src/temp/switch-hal)
Finished dev [unoptimized + debuginfo] target(s) in 3.83s |
Crate name: stm32f3-discovery
Build failure link: https://docs.rs/crate/stm32f3-discovery/0.1.2/builds/212158
Additional details:
Crates targeting ARM Cortex-M processors fail to build because docs.rs currently doesn't support the
thumbv*
targets.This can be worked around by setting the default target to
x86_64-unknown-linux-gnu
per stm32-rs/stm32f3xx-hal#46.Possibly related to #343 (comment)
The text was updated successfully, but these errors were encountered: