sn_api/
lib.rs

1// Copyright 2023 MaidSafe.net limited.
2//
3// This SAFE Network Software is licensed to you under The General Public License (GPL), version 3.
4// Unless required by applicable law or agreed to in writing, the SAFE Network Software distributed
5// under the GPL Licence is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
6// KIND, either express or implied. Please review the Licences for the specific language governing
7// permissions and limitations relating to use of the SAFE Network Software.
8
9#![warn(clippy::unwrap_used)]
10
11#[cfg(feature = "app")]
12mod app;
13#[cfg(any(feature = "app", feature = "authd_client"))]
14mod ipc;
15
16#[cfg(feature = "authd_client")]
17mod authd_client;
18#[cfg(feature = "authenticator")]
19mod authenticator;
20mod common;
21mod constants;
22mod errors;
23mod safeurl;
24
25// re-export these useful types from sn_data_types
26pub use sn_interface::types::{DataAddress, Keypair, PublicKey, RegisterAddress, SecretKey};
27
28#[cfg(feature = "app")]
29pub use app::*;
30#[cfg(any(feature = "app", feature = "authd_client"))]
31pub use ipc::*;
32
33#[cfg(feature = "app")]
34pub use xor_name::XorName;
35
36#[cfg(feature = "authenticator")]
37pub use authenticator::*;
38
39#[cfg(feature = "authd_client")]
40pub use authd_client::*;
41
42#[cfg(any(feature = "authenticator", feature = "authd_client"))]
43pub use common::auth_types::*;
44
45pub use errors::{Error, Result};
46
47pub use safeurl::*;