/*
 * Copyright 2022, The Cozo Project Authors.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
 * If a copy of the MPL was not distributed with this file,
 * You can obtain one at https://mozilla.org/MPL/2.0/.
 */

use cbindgen::{Config, Language};
use std::env;

fn main() {
    let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

    let mut config = Config::default();
    config.cpp_compat = true;

    cbindgen::Builder::new()
        .with_config(config)
        .with_crate(crate_dir)
        .with_language(Language::C)
        .with_include_guard("COZO_C_H")
        .with_autogen_warning(
            "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */",
        )
        .with_header(
            r#"/*
  Copyright 2022, The Cozo Project Authors.

  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file,
  You can obtain one at https://mozilla.org/MPL/2.0/.
*/"#,
        )
        .with_documentation(true)
        .generate()
        .expect("Unable to generate bindings")
        .write_to_file("cozo_c.h");
}

Homonyms

cyb/shell/build.rs
soft3/radio/iroh-relay/build.rs
soft3/radio/iroh-blobs/build.rs
soft3/radio/iroh-ffi/build.rs
soft3/glia/import/build.rs
soft3/radio/iroh-dns-server/build.rs
neural/rs/codegen/build.rs
soft3/radio/iroh/build.rs
neural/rs/rsc/build.rs
cyb/wysm/crates/c_api/build.rs
warriors/trisha/.vendor/triton-vm/build.rs
soft3/radio/iroh-ffi/iroh-js/build.rs
soft3/radio/nettools/netwatch/build.rs
soft3/radio/quinn/quinn/build.rs
cyb/evy/forks/naga/build.rs
cyb/wysm/crates/ir/build.rs
neural/trident/src/cli/build.rs
soft3/radio/quinn/quinn-udp/build.rs
neural/inf/rs/cozo/cozo-lib-swift/build.rs
neural/inf/rs/cozo/cozorocks/build.rs

Graph