Skip to content

add "Compile and link statically to a bundled C library" example #292

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

Closed
Tracked by #236
budziq opened this issue Sep 25, 2017 · 4 comments
Closed
Tracked by #236

add "Compile and link statically to a bundled C library" example #292

budziq opened this issue Sep 25, 2017 · 4 comments

Comments

@budziq
Copy link
Collaborator

budziq commented Sep 25, 2017

Use cc-rs crate to compile and link statically to a bundled C library inside of a build.rs file.

Please note that it will be important to mention that this is a build time crate.
Most likely we will dedicate a separate (last) chapter like "build_time.md"

cc #236

@jaemk
Copy link
Contributor

jaemk commented Sep 25, 2017

Note: The trust repo is itself a basic example that could be copied and simplified.

@budziq
Copy link
Collaborator Author

budziq commented Sep 25, 2017

Right! @jaemk Would you be interested in taking lead on this example?

I see this as the first example that would have the longest explanation followed by the next 4 examples listed in #236 showing the possible minor differences (with much shorter descriptions)

@jaemk
Copy link
Contributor

jaemk commented Sep 26, 2017

Sure! I can take a look at this tomorrow and setup a new build_tools file

@budziq budziq added the claimed label Sep 26, 2017
jaemk added a commit to jaemk/rust-cookbook that referenced this issue Sep 27, 2017
issue rust-lang-nursery#292
- Add new `buil_tools.md` file/section
- Add a simple `cc` crate example
jaemk added a commit to jaemk/rust-cookbook that referenced this issue Sep 27, 2017
issue rust-lang-nursery#292
- Add new `build_tools.md` file/section
- Add a simple `cc` crate example
jaemk added a commit to jaemk/rust-cookbook that referenced this issue Sep 27, 2017
issue rust-lang-nursery#292
- Add new `build_tools.md` file/section
- Add a simple `cc` crate example
jaemk added a commit to jaemk/rust-cookbook that referenced this issue Sep 27, 2017
issue rust-lang-nursery#292
- Add new `build_tools.md` file/section
- Add a simple `cc` crate example
jaemk added a commit to jaemk/rust-cookbook that referenced this issue Sep 28, 2017
issue rust-lang-nursery#292
- Add new `build_tools.md` file/section
- Add a simple `cc` crate example
jaemk added a commit to jaemk/rust-cookbook that referenced this issue Sep 28, 2017
issue rust-lang-nursery#292
- Add new `build_tools.md` file/section
- Add a simple `cc` crate example
budziq pushed a commit that referenced this issue Sep 29, 2017
issue #292
- Add new `build_tools.md` file/section
- Add a simple `cc` crate example
@budziq
Copy link
Collaborator Author

budziq commented Sep 29, 2017

merged

@budziq budziq closed this as completed Sep 29, 2017
@budziq budziq added this to the impl period milestone Oct 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants