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

Allow non-tier-one targets to be built #633

Merged
merged 5 commits into from
Mar 17, 2020

Conversation

jyn514
Copy link
Member

@jyn514 jyn514 commented Mar 11, 2020

Closes #563.
Waiting on #632. Merged.

This uses rustup to install toolchains if they are not already installed. These toolchains will be removed on the next toolchain update, and will be downloaded again on request.

Only the last few commits are related to #563, all others are from #632.

This also removes the outdated x32 apple target
@jyn514 jyn514 changed the title [WIP] Allow non-tier-one targets to be built Allow non-tier-one targets to be built Mar 14, 2020
@jyn514
Copy link
Member Author

jyn514 commented Mar 14, 2020

r? @pietroalbini

@pietroalbini pietroalbini self-assigned this Mar 17, 2020
@pietroalbini
Copy link
Member

I didn't look at this PR too closely yet, but we'll also want to implement limits to avoid people building tons of targets. The limit should be overridable through the usual sandbox limits mechanism.

@jyn514
Copy link
Member Author

jyn514 commented Mar 17, 2020

Ah, good idea. Does 10 sounds like a reasonable limit? We currently build 6 so it's the same order of magnitude.

@pietroalbini
Copy link
Member

Yeah that sounds fine. We'll also need to update the issue template for sandbox limit increases.

@jyn514
Copy link
Member Author

jyn514 commented Mar 17, 2020

Added a default limit of 10 targets and updated /about and the issue template.

@pietroalbini
Copy link
Member

You didn't update the schema.

@jyn514
Copy link
Member Author

jyn514 commented Mar 17, 2020

I need to test locally that the schema change is right, one second.

src/db/migrate.rs Outdated Show resolved Hide resolved
Co-Authored-By: Pietro Albini <[email protected]>
@pietroalbini pietroalbini merged commit b184b8d into rust-lang:master Mar 17, 2020
@jyn514 jyn514 deleted the dynamic-targets branch March 17, 2020 18:20
bors bot added a commit to rust-embedded/cortex-m that referenced this pull request Aug 23, 2020
256: Add embedded targets to docs.rs r=jonas-schievink a=hug-dev

Some modules of this repo are gated by the various targets and hence docs.rs does not show the documentation for them! Like the Armv8-M ones for [example](#217 (comment)) and the `cmse` module.

docs.rs now allows building for specific target and since [this PR](rust-lang/docs.rs#633) even for targets available via `rustup`!

The `stm32f3_discovery` crate does it, look at ["Platform" on docs.rs](https://docs.rs/stm32f3-discovery/0.4.0/stm32f3_discovery/index.html).

So I think it would be very neat to have on `cortex-m` and I proposing to add the following targets. The first one will show by default, I choosed the latest and greatest for that 😄 

I tested locally with `cargo doc --target ...` for all of them.

Co-authored-by: Hugues de Valon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for more targets
2 participants