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

Auto generate platforms crate #516

Merged
merged 219 commits into from Apr 23, 2022
Merged

Auto generate platforms crate #516

merged 219 commits into from Apr 23, 2022

Conversation

Shnatsel
Copy link
Member

@Shnatsel Shnatsel commented Mar 5, 2022

  • Implement an auto-generator for platforms crate data
  • Generate a new version of it, 3.0.0-alpha.1 using the generator
  • Add two new fields, target_endian and target_pointer_width
  • Mark the Platform struct #[non_exhaustive]
  • Update platforms crate tests not to depend on data that evolves over time
  • Add a script to re-generate the platforms crate (excluding the README.md)
  • Update the in-tree rustsec crate to use platforms 3.0
  • Remove hacky cfg tricks to report some of the properties of the current platform; superseded by current_platform crate

Closes #513

…te list of targets, sans the conversion to enum values and tiers
@tarcieri tarcieri reopened this Apr 16, 2022
@tarcieri
Copy link
Member

@Shnatsel can you check if I rebased correctly now? (or rebase and force push yourself)

@tarcieri
Copy link
Member

@Shnatsel okay, we're to an error I think you mentioned before. This advisory:

https://github.com/rustsec/advisory-db/blob/main/crates/time/RUSTSEC-2020-0071.md

...contains a list of bogus OSes. It doesn't like capital-R redox, and there's "rolaris" where ostensibly it should be "solaris".

I think we should just remove that OS list from that advisory? That's not how it's intended to be used.

@Shnatsel
Copy link
Member Author

Yeah, there's a bunch of bogus platforms there. We should change the advisory to conform to the actual list of platforms we support.

@Shnatsel
Copy link
Member Author

I've fixed the problematic advisory in rustsec/advisory-db#1222

@Shnatsel
Copy link
Member Author

CI is now green.

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.

Auto-generate the platforms crate
2 participants