chrmoritz / cargo_gn

Cargo GN integration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cargo GN integration

Build 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.5"

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

To test:

RUSTC_WRAPPER=sccache CXX="sccache clang++"  cargo test -vv --all

About

Cargo GN integration


Languages

Language:Rust 90.7%Language:C 5.3%Language:C++ 3.9%