14 releases

0.0.15 Jan 5, 2020
0.0.14 Jan 4, 2020
0.0.13 Jul 31, 2019
0.0.5 Apr 2, 2019

#322 in Build Utils

Download history 146/week @ 2024-07-22 129/week @ 2024-07-29 125/week @ 2024-08-05 196/week @ 2024-08-12 118/week @ 2024-08-19 167/week @ 2024-08-26 163/week @ 2024-09-02 138/week @ 2024-09-09 135/week @ 2024-09-16 211/week @ 2024-09-23 144/week @ 2024-09-30 8/week @ 2024-10-07 120/week @ 2024-10-14 111/week @ 2024-10-21 129/week @ 2024-10-28 130/week @ 2024-11-04

491 downloads per month
Used in 13 crates (2 directly)

MIT license

13KB
274 lines

Cargo GN integration

Travis Status

https://crates.io/crates/cargo_gn

This package allows Rust users to quickly hook into the GN build system. It provides built-in gn and ninja tools that hook semi-automatically into Cargo's build.rs.

Put the following in your Cargo.toml

[build-dependencies]
cargo_gn = "0.0.13"

Now you should be able to add a .gn file in the root of your project and start using BUILD.gn. See the example directory for a complete example: https://github.com/denoland/cargo_gn/tree/master/example

Use cargo build -vv in order to see ninja output.

Read more about gn here: https://gn.googlesource.com/gn

The GN/Ninja executables are assumed to be "gn" and "ninja" unless $GN and $NINJA environmental variables are set.

No runtime deps