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

Update changelog and rustdocs for BuildpackReference changes #677

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Sep 20, 2023

A few small tweaks:

  • BuildpackReference is only publicly exported at the root of the libcnb-test crate, so end users can't use it via the build_config module - so the build_config:: references have been removed.
  • The new BuildpackReference::WorkspaceBuildpack variant supports only libcnb.rs and composite buildpacks, not eg bash buildpacks, so the "any buildpack" reference in the changelog has been clarified to "any libcnb.rs or composite buildpack". Similarly, the rustdocs for BuildpackReference has been updated to mention composite buildpacks too, rather than only libcnb.rs buildpacks.
  • The "Rust workspace" references have been changed to "Cargo workspace" since it's Cargo not Rust that has the concept of a workspace: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
  • The rustdocs for .buildpacks() has been updated to include an example of using the new variant, and made to be consistent ordering wise with the example in the libcnb-test README.
  • The two changelog entries under "Added" have been consolidated, since they are covering the same newly added variant.

GUS-W-14160805.

@edmorley edmorley added documentation Improvements or additions to documentation libcnb-test labels Sep 20, 2023
@edmorley edmorley self-assigned this Sep 20, 2023
A few small tweaks:
* `BuildpackReference`  is only publicly exported at the root of the
  `libcnb-test` crate, so end users can't use it via the `build_config`
  module - so the `build_config::` references have been removed.
* The new `BuildpackReference::WorkspaceBuildpack` variant supports only
  libcnb.rs and composite buildpacks, not eg bash buildpacks, so the
  "any buildpack" reference in the changelog has been clarified.
  Similarly, the rustdocs for `BuildpackReference` previously didn't
  mention composite buildpacks, only `libcnb.rs` buildpacks.
* The "Rust workspace" references have been changed to
  "Cargo workspace" since it's Cargo not Rust that has the concept of a
  workspace: https://doc.rust-lang.org/book/ch14-03-cargo-workspaces.html
* The rustdocs for `.buildpacks()` has been updated to include an example
  of using the new variant, and made to be consistent ordering wise with
  the example in the `libcnb-test` README.
* The two changelog entries under "Added" have been consolidated, since
  they are covering the same newly added variant.
@edmorley edmorley force-pushed the edmorley/update-changelog-docs branch from 15957db to d43dbf8 Compare September 20, 2023 20:16
@edmorley edmorley marked this pull request as ready for review September 20, 2023 20:26
@edmorley edmorley requested a review from a team as a code owner September 20, 2023 20:26
@edmorley edmorley enabled auto-merge (squash) September 20, 2023 21:42
@edmorley edmorley merged commit 0e1caa7 into main Sep 21, 2023
4 checks passed
@edmorley edmorley deleted the edmorley/update-changelog-docs branch September 21, 2023 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation libcnb-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants