# Third-Party Licenses

This file documents all third-party dependencies used by SynaDB and their respective licenses.

================================================================================

## bincode (1.3)

**License:** MIT

**Repository:** https://github.com/bincode-org/bincode

**Copyright:** Copyright (c) 2014 Ty Overby

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================

## serde (1.0)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/serde-rs/serde

**Copyright:** Copyright (c) 2014 The Rust Project Developers

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## serde_json (1.0)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/serde-rs/json

**Copyright:** Copyright (c) 2014 The Rust Project Developers

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================


## memmap2 (0.9)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/RazrFalcon/memmap2-rs

**Copyright:** Copyright (c) 2015 Dan Burkert, 2019 Yevhenii Reizner

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## once_cell (1.18)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/matklad/once_cell

**Copyright:** Copyright (c) 2018 Aleksey Kladov

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## parking_lot (0.12)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/Amanieu/parking_lot

**Copyright:** Copyright (c) 2016 The Rust Project Developers

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## libc (0.2)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/rust-lang/libc

**Copyright:** Copyright (c) 2014-2020 The Rust Project Developers

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## lz4_flex (0.11)

**License:** MIT

**Repository:** https://github.com/PSeitz/lz4_flex

**Copyright:** Copyright (c) 2020 Pascal Seitz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================


## thiserror (1.0)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/dtolnay/thiserror

**Copyright:** Copyright (c) 2019 David Tolnay

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## sha2 (0.10)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/RustCrypto/hashes

**Copyright:** Copyright (c) 2016-2023 RustCrypto Developers

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## uuid (1.8)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/uuid-rs/uuid

**Copyright:** Copyright (c) 2013-2014 The Rust Project Developers
              Copyright (c) 2018 Ashley Mannix, Christopher Armstrong,
              Dylan DPC, Hunar Roop Kahlon

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## tokio (1.0) [Optional - async feature]

**License:** MIT

**Repository:** https://github.com/tokio-rs/tokio

**Copyright:** Copyright (c) 2019 Tokio Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================

## faiss (0.12) [Optional - faiss feature]

**License:** MIT

**Repository:** https://github.com/Enet4/faiss-rs

**Copyright:** Copyright (c) 2019 Eduardo Pinho

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Note: The underlying FAISS library by Facebook AI Research is licensed under
the MIT License. See https://github.com/facebookresearch/faiss for details.

================================================================================


# Development Dependencies

The following dependencies are used only during development and testing,
and are not included in the distributed library.

================================================================================

## proptest (1.4)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/proptest-rs/proptest

**Copyright:** Copyright (c) 2017 Jason Lingle

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

## tempfile (3.10)

**License:** MIT OR Apache-2.0

**Repository:** https://github.com/Stebalien/tempfile

**Copyright:** Copyright (c) 2015 Steven Allen

Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
<LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
option. All files in the project carrying such notice may not be
copied, modified, or distributed except according to those terms.

================================================================================

# Summary

| Crate | Version | License |
|-------|---------|---------|
| bincode | 1.3 | MIT |
| serde | 1.0 | MIT OR Apache-2.0 |
| serde_json | 1.0 | MIT OR Apache-2.0 |
| memmap2 | 0.9 | MIT OR Apache-2.0 |
| once_cell | 1.18 | MIT OR Apache-2.0 |
| parking_lot | 0.12 | MIT OR Apache-2.0 |
| libc | 0.2 | MIT OR Apache-2.0 |
| lz4_flex | 0.11 | MIT |
| thiserror | 1.0 | MIT OR Apache-2.0 |
| sha2 | 0.10 | MIT OR Apache-2.0 |
| uuid | 1.8 | MIT OR Apache-2.0 |
| tokio | 1.0 | MIT |
| faiss | 0.12 | MIT |
| proptest | 1.4 | MIT OR Apache-2.0 |
| tempfile | 3.10 | MIT OR Apache-2.0 |

All dependencies are licensed under permissive open-source licenses (MIT and/or Apache-2.0),
which are compatible with SynaDB's license.
