trust-graph/src/lib.rs

47 lines
1.4 KiB
Rust
Raw Normal View History

2021-01-15 19:37:06 +03:00
/*
* Copyright 2020 Fluence Labs Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#![recursion_limit = "512"]
#![warn(rust_2018_idioms)]
2021-02-10 15:30:10 +03:00
#![deny(
dead_code,
nonstandard_style,
unused_imports,
unused_mut,
unused_variables,
unused_unsafe,
unreachable_patterns
)]
2021-01-15 19:37:06 +03:00
mod certificate;
pub mod certificate_serde;
mod misc;
mod public_key_hashable;
mod revoke;
mod trust;
mod trust_graph;
2021-01-18 03:57:10 +03:00
mod trust_graph_storage;
2021-01-18 18:26:17 +03:00
mod trust_node;
2021-01-15 19:37:06 +03:00
2021-02-11 17:57:09 +03:00
pub use crate::certificate::{Certificate, CertificateError};
2021-01-15 19:37:06 +03:00
pub use crate::misc::current_time;
pub use crate::public_key_hashable::PublicKeyHashable;
pub use crate::revoke::Revoke;
2021-01-20 16:14:20 +03:00
pub use crate::trust::Trust;
2021-02-11 17:57:09 +03:00
pub use crate::trust_graph::{TrustGraph, TrustGraphError, Weight};
2021-03-11 14:48:58 +03:00
pub use crate::trust_graph_storage::{Storage, StorageError, InMemoryStorage, InMemoryStorageError};
2021-01-20 16:14:20 +03:00
pub use crate::trust_node::{Auth, TrustNode};