Skip to content

fix: Ignored target defined via cargo config file#654

Open
Stranger6667 wants to merge 1 commit intooxidize-rb:mainfrom
Stranger6667:dd/fix-cargo-config
Open

fix: Ignored target defined via cargo config file#654
Stranger6667 wants to merge 1 commit intooxidize-rb:mainfrom
Stranger6667:dd/fix-cargo-config

Conversation

@Stranger6667
Copy link

Fixes #568

Besides these tests, I've checked it with the rust_reverse example by adding examples/rust_reverse/ext/rust_reverse/.cargo/config.toml:

[build]
target = "x86_64-unknown-linux-gnu"

and building it.

I am very sorry for parsing toml with regexes :( Let me know if it would be better to pull the proper parser as a dependency (as per my understanding, no external dependencies is one of the goals?) - I also saw that the package name is parsed with a regex already (as a fallback). As of now, cargo config is unstable :(

P.S. I think that if a benchmark is defined first in Cargo.toml, then the name inference would take that instead of the package name

Signed-off-by: Dmitry Dygalo <dmitry@dygalo.dev>
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

Successfully merging this pull request may close these issues.

Support target/<triple>/release in the generated Makefile

2 participants