From 9aba53be3ba45ce1f010d32b33e8c9a661ccaaf4 Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Wed, 2 Jun 2021 13:04:18 -0700 Subject: [PATCH] Add a note mentioning licensing of bundled native code --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cdac47..da89ec0 100644 --- a/README.md +++ b/README.md @@ -216,4 +216,14 @@ Currently there's a gitter channel set up for rusqlite [here](https://gitter.im/ ## License -Rusqlite is available under the MIT license. See the LICENSE file for more info. +Rusqlite and libsqlite3-sys are available under the MIT license. See the LICENSE file for more info. + +### Licenses of Bundled Software + +Depending on the set of enabled cargo `features`, rusqlite and libsqlite3-sys will also bundle other libraries, which have their own licensing terms: + +- If `--features=bundled-sqlcipher` is enabled, the vendored source of [SQLcipher](https://github.com/sqlcipher/sqlcipher) will be compiled and statically linked in. SQLcipher is distributed under a BSD-style license, as described [here](libsqlite3-sys/sqlcipher/LICENSE). + +- If `--features=bundled` is enabled, the vendored source of SQLite will be compiled and linked in. SQLite is in the public domain, as described [here](https://www.sqlite.org/copyright.html). + +Both of these are quite permissive, have no bearing on the license of the code in `rusqlite` or `libsqlite3-sys` themselves, and can be entirely ignored if you do not use the feature in question.