heroku / libcnb.rs

A framework for writing Cloud Native Buildpacks in Rust
BSD 3-Clause "New" or "Revised" License
34 stars 6 forks source link

libcnb-package: Only expose functions/types publicly if they are actually used #750

Closed edmorley closed 9 months ago

edmorley commented 9 months ago

In order to:

In the case of calculate_dir_size, I've moved it back to libcnb-cargo (where it was originally), since it's only used there.

I've checked that none of these APIs are used by our release automation: https://github.com/search?q=repo%3Aheroku%2Flanguages-github-actions+libcnb_package+language%3ARust&type=code&l=Rust (And longer term we should switch to having that automation call a new libcnb-cargo subcommand rather than use libcnb-package directly.)

I've not added a changelog entry, since we document libcnb-package as being for internal use only and having no stability guarantees: https://github.com/heroku/libcnb.rs/blob/main/libcnb-package/README.md

GUS-W-14512388.