All Projects → denoland → cargo_gn

denoland / cargo_gn

Licence: other
Cargo GN integration

Programming Languages

rust
11053 projects
shell
77523 projects
python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].