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

#369 in Build Utils

Download history 63/week @ 2024-11-15 139/week @ 2024-11-22 173/week @ 2024-11-29 395/week @ 2024-12-06 335/week @ 2024-12-13 106/week @ 2024-12-20 47/week @ 2024-12-27 191/week @ 2025-01-03 252/week @ 2025-01-10 194/week @ 2025-01-17 163/week @ 2025-01-24 189/week @ 2025-01-31 312/week @ 2025-02-07 145/week @ 2025-02-14 183/week @ 2025-02-21 143/week @ 2025-02-28

828 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