Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denoland/cargo_gn
Cargo GN integration
https://github.com/denoland/cargo_gn
Last synced: 27 days ago
JSON representation
Cargo GN integration
- Host: GitHub
- URL: https://github.com/denoland/cargo_gn
- Owner: denoland
- Created: 2019-04-02T05:13:13.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-17T16:36:15.000Z (about 3 years ago)
- Last Synced: 2024-09-28T06:24:26.149Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 45.9 KB
- Stars: 42
- Watchers: 18
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - denoland/cargo_gn - Cargo GN integration (Rust)
README
# Cargo GN integration
[![Travis Status](https://travis-ci.com/denoland/cargo_gn.svg?branch=master)](https://travis-ci.com/denoland/cargo_gn)
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`
```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/exampleUse `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.