From 193fdc202bd50eea1b4359281b0560b73da06eb2 Mon Sep 17 00:00:00 2001 From: Ziyang Hu Date: Wed, 30 Nov 2022 14:53:03 +0800 Subject: [PATCH] change build script license --- cozo-lib-c/build.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cozo-lib-c/build.rs b/cozo-lib-c/build.rs index 39c456e4..fca1b64c 100644 --- a/cozo-lib-c/build.rs +++ b/cozo-lib-c/build.rs @@ -6,9 +6,8 @@ * You can obtain one at https://mozilla.org/MPL/2.0/. */ -use std::env; - use cbindgen::{Config, Language}; +use std::env; fn main() { let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap(); @@ -25,7 +24,13 @@ fn main() { .with_autogen_warning( "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */", ) - .with_header("/* Copyright 2022, The Cozo Project Authors. Licensed under MIT/Apache-2.0/BSD-3-Clause. */") + .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")