oxidize-rb / rb-sys

Easily build Ruby native extensions in Rust
https://oxidize-rb.github.io/rb-sys/
Apache License 2.0
222 stars 35 forks source link

Allow customizing manifest path in Rake task #405

Open cretz opened 1 month ago

cretz commented 1 month ago

Cargo metadata at https://github.com/oxidize-rb/rb-sys/blob/1da94ecc39774ea642d8f863bf23c979b2747f36/gem/lib/rb_sys/cargo/metadata.rb#L141 is run in the root, and with no way to configure --manifest-path (not env var configurable either that I can see), the Rake task basically requires that you have a Cargo.toml at the base dir.

Possible to provide an option to customize --manifest-path?

ianks commented 1 month ago

Currently it's not possible, but I would happily merge a PR with that functionality