quest_sys/
lib.rs

1// Copyright © 2021 HQS Quantum Simulations GmbH. All Rights Reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
4// in compliance with the License. You may obtain a copy of the License at
5//
6//     http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software distributed under the
9// License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
10// express or implied. See the License for the specific language governing permissions and
11// limitations under the License.
12
13//! # quest-sys
14//!
15//! Rust bindings for the QuEST quantum computer simulator library.
16//!
17//! Conforming with the sys crate naming convention this package only provides very thin bindings.
18#![allow(non_camel_case_types)]
19#![allow(non_upper_case_globals)]
20#![allow(non_snake_case)]
21#![cfg_attr(test, allow(deref_nullptr))]
22
23#[cfg(feature = "rebuild")]
24use std::env;
25use std::include;
26#[cfg(feature = "openmp")]
27extern crate openmp_sys;
28
29#[cfg(feature = "rebuild")]
30include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
31
32#[cfg(not(feature = "rebuild"))]
33include!("bindings.rs");