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

#582 in Build Utils

Download history 348/week @ 2025-11-13 1324/week @ 2025-11-20 837/week @ 2025-11-27 318/week @ 2025-12-04 415/week @ 2025-12-11 302/week @ 2025-12-18 216/week @ 2025-12-25 373/week @ 2026-01-01 354/week @ 2026-01-08 349/week @ 2026-01-15 332/week @ 2026-01-22 485/week @ 2026-01-29 1096/week @ 2026-02-05 2557/week @ 2026-02-12 1554/week @ 2026-02-19 2442/week @ 2026-02-26

7,698 downloads per month
Used in 12 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