librocksdb_sys/
lib.rs

1// Copyright 2020 Tyler Neely, Alex Regueiro
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![allow(
16    clippy::all,
17    non_snake_case,
18    non_camel_case_types,
19    non_upper_case_globals
20)]
21
22// Ensure the libraries are linked in, despite it not being used directly
23#[cfg(feature = "bzip2")]
24extern crate bzip2_sys;
25#[cfg(feature = "zlib")]
26extern crate libz_sys;
27#[cfg(feature = "lz4")]
28extern crate lz4_sys;
29#[cfg(feature = "jemalloc")]
30extern crate tikv_jemalloc_sys;
31#[cfg(feature = "zstd")]
32extern crate zstd_sys;
33
34include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
35
36#[cfg(test)]
37mod test;