We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a package that builds multiple crate types:
[lib] crate-type = ["staticlib", "cdylib", "lib"]
One of my tests is calling build_current_project to build the cdylib crate, but the static C library is build instead.
build_current_project
cdylib
fn omc_test() { let dylib_path = test_cdylib::build_current_project(); println!("library: {:?}", dylib_path); }
I changed the order of crate-type in Cargo.toml to fix my test. Is there a way to only build the cdylib crate without changing the Cargo.toml?
crate-type
Cargo.toml
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I have a package that builds multiple crate types:
One of my tests is calling
build_current_project
to build thecdylib
crate, but the static C library is build instead.I changed the order of
crate-type
inCargo.toml
to fix my test. Is there a way to only build thecdylib
crate without changing theCargo.toml
?The text was updated successfully, but these errors were encountered: