blob: f6f1781e29fd56036566ef6a5fd7e935998f19c3 [file] [log] [blame]
Alice Wang0b9e1102023-02-02 09:57:06 +00001// Copyright 2023, The Android Open Source Project
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//! Implements safe wrappers around the public API of libopen-dice for
16//! both std and nostd usages.
17
18#![cfg_attr(not(feature = "std"), no_std)]
19
Alice Wang856d6562023-02-03 13:51:08 +000020#[cfg(not(feature = "std"))]
21extern crate core as std;
22
Alice Wang0b9e1102023-02-02 09:57:06 +000023mod dice;
Alice Wang856d6562023-02-03 13:51:08 +000024mod error;
Alice Wang0b9e1102023-02-02 09:57:06 +000025
26pub use dice::{Config, Hash, Hidden, InlineConfig, InputValues, HASH_SIZE, HIDDEN_SIZE};
Alice Wang856d6562023-02-03 13:51:08 +000027pub use error::{check_result, DiceError, Result};