Skip to content

Thoughts on a cargo-owned build script API #12

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

Open
epage opened this issue Oct 11, 2023 · 1 comment
Open

Thoughts on a cargo-owned build script API #12

epage opened this issue Oct 11, 2023 · 1 comment

Comments

@epage
Copy link

epage commented Oct 11, 2023

The cargo team is considering an official build script API (rust-lang/cargo#12432). We are looking at adopting build-rs package, mostly because the author reached out to us.

I understand build-env isn't a full build-script API but seems to handle

  • env variable tracking (seems really useful for a build script API)
  • fallback handling for target-specific env variables (seems too specialized of policy for a general API owned by cargo)

We'd be interested in input on this

  • Any concern over an official API and any particular package / package name being adopted
  • Feedback on API design choices made?
  • Thoughts on the role of cargo's crate and this crate moving forward (e.g. would you be interested in joining efforts and helping out with cargos?)
@codyps
Copy link
Owner

codyps commented Oct 13, 2023

Thanks for pinging me, I've commented in linked issue: rust-lang/cargo#12432 (comment) . Getting what this crate does into something with better support is certainly something I'm interested in helping with

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

No branches or pull requests

2 participants