aigc_api/
lib.rs

1// Copyright 2021 The Aigc Developers
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
15use aigc_chain as chain;
16use aigc_core as core;
17use aigc_p2p as p2p;
18use aigc_pool as pool;
19
20use aigc_util as util;
21
22#[macro_use]
23extern crate failure_derive;
24#[macro_use]
25extern crate lazy_static;
26
27#[macro_use]
28extern crate serde_derive;
29extern crate serde_json;
30#[macro_use]
31extern crate log;
32
33#[macro_use]
34mod web;
35pub mod auth;
36pub mod client;
37mod foreign;
38mod foreign_rpc;
39mod handlers;
40pub mod json_rpc;
41mod owner;
42mod owner_rpc;
43mod rest;
44mod router;
45pub mod types;
46
47pub use crate::auth::{
48	BasicAuthMiddleware, BasicAuthURIMiddleware, AIGC_BASIC_REALM, AIGC_FOREIGN_BASIC_REALM,
49};
50pub use crate::foreign::Foreign;
51pub use crate::foreign_rpc::ForeignRpc;
52pub use crate::handlers::node_apis;
53pub use crate::owner::Owner;
54pub use crate::owner_rpc::OwnerRpc;
55pub use crate::rest::*;
56pub use crate::router::*;
57pub use crate::types::*;
58pub use crate::web::*;