Skip to content
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

Documentation does not explain details of linking binaries with native libraries #2236

Closed
kornelski opened this issue Dec 19, 2015 · 0 comments · Fixed by #7565
Closed

Documentation does not explain details of linking binaries with native libraries #2236

kornelski opened this issue Dec 19, 2015 · 0 comments · Fixed by #7565
Labels
A-build-scripts Area: build.rs scripts A-documenting-cargo-itself Area: Cargo's documentation

Comments

@kornelski
Copy link
Contributor

Cargo documentation of build scripts doesn't say that the build script is only for the library target, and not (always) for binary targets.

Following conversation: https://users.rust-lang.org/t/does-cargo-run-a-build-script-for-bin-targets-too/3946/4

it'd be good to clarify that in documentation and recommend bin targets to link with the lib target from the same crate in order to take advantage of the build scripts.

@alexcrichton alexcrichton added the A-documenting-cargo-itself Area: Cargo's documentation label Dec 20, 2015
@ehuss ehuss added the A-build-scripts Area: build.rs scripts label Oct 23, 2019
@bors bors closed this as completed in 22b08c4 Nov 7, 2019
@bors bors closed this as completed in #7565 Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build-scripts Area: build.rs scripts A-documenting-cargo-itself Area: Cargo's documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants