trust_graph/
lib.rs

1/*
2 * Copyright 2020 Fluence Labs Limited
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#![recursion_limit = "512"]
18#![warn(rust_2018_idioms)]
19#![deny(
20    dead_code,
21    nonstandard_style,
22    unused_imports,
23    unused_mut,
24    unused_variables,
25    unused_unsafe,
26    unreachable_patterns
27)]
28#![allow(dead_code)]
29
30mod certificate;
31pub mod certificate_serde;
32mod chain;
33mod misc;
34mod public_key_hashable;
35mod revoke;
36mod trust;
37mod trust_graph;
38mod trust_graph_storage;
39mod trust_relation;
40
41pub use crate::certificate::{Certificate, CertificateError};
42pub use crate::misc::current_time;
43pub use crate::public_key_hashable::PublicKeyHashable;
44pub use crate::revoke::Revocation;
45pub use crate::trust::{Trust, TrustError};
46pub use crate::trust_graph::{TrustGraph, TrustGraphError, WeightFactor, MAX_WEIGHT_FACTOR};
47pub use crate::trust_graph_storage::{Storage, StorageError};
48pub use crate::trust_relation::{Auth, TrustRelation};