oysterpack_built
This builds upon built ... pun intended :)
How to integrate within your project
-
Add the following to Cargo.toml:
[] = "build.rs" [] = "0.1.0"
-
Include the following in build.rs:
Libraries
extern crate oysterpack_built;
Applications
extern crate oysterpack_built;
- includes application dependency info
- NOTE: dependency info can only be collected for standalone projects, i.e., this will not work for projects that are part of a Cargo workspace.
- Cargo.lock is used to get the application's dependencies. Since Cargo.lock is shared by all projects in a workspace, this approach won't work for workspaces.
- NOTE: dependency info can only be collected for standalone projects, i.e., this will not work for projects that are part of a Cargo workspace.
- includes application dependency info
-
The build script will by default write a file named built.rs into Cargo's output directory. It can be picked up like this:
// Use of a mod or pub mod is not actually necessary.