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

Use json output from cargo-about #87

Merged
merged 3 commits into from
Apr 26, 2023
Merged

Conversation

lopopolo
Copy link
Member

Replace handlebars template and bespoke YAML munging with the --format json flag in cargo-about v0.5.6.

This significantly simplifies output parsing and also allows for the following enhancements:

  • Detect if crate URL is nil and fall back to homepage, repository URL, or documentation url.
  • Add crate description from crates.io to listing if present.
  • Move oniguruma and mruby external deps config to code instead of template.
  • Remove license text pre- and post-processing to address whitespace issues.

Replace handlebars template and bespoke YAML munging with the
`--format json` flag in cargo-about v0.5.6.

This significantly simplifies output parsing and also allows for the
following enhancements:

- Detect if crate URL is nil and fall back to homepage, repository URL,
  or documentation url.
- Add crate description from crates.io to listing if present.
- Move oniguruma and mruby external deps config to code instead of
  template.
- Remove license text pre- and post-processing to address whitespace
  issues.
@lopopolo lopopolo added C-quality Category: Refactoring, cleanup, and quality improvements. A-cargo-about Area: cargo-about installation and configuration. labels Apr 26, 2023
@lopopolo lopopolo merged commit 70734a7 into trunk Apr 26, 2023
@lopopolo lopopolo deleted the lopopolo/cargo-about-json-output branch April 26, 2023 20:10
@lopopolo lopopolo added the A-release Area: Gem / GitHub Actions releases and version bumps. label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cargo-about Area: cargo-about installation and configuration. A-release Area: Gem / GitHub Actions releases and version bumps. C-quality Category: Refactoring, cleanup, and quality improvements.
Development

Successfully merging this pull request may close these issues.

1 participant