mssf_core/lib.rs
1// ------------------------------------------------------------
2// Copyright (c) Microsoft Corporation. All rights reserved.
3// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
4// ------------------------------------------------------------
5//! # Features
6//! All features are enabled by default unless otherwise noted.
7//! For most scenarios, you'll want the features. However, in some scenarios, such as:
8//! - integrating Rust into an existing Service Fabric Application written in another language
9//! - when you are using the lower-level COM API to do something more custom
10//! You might not need all of the functionality that the mssf-core crate provides
11//! In this case, you can configure only what you need to reduce dependencies and compile times.
12//!
13//! * ** config_source ** -
14//! Provides an implementation of config::Source. Requires config_rs crate
15//!
16//! * ** Tokio ** -
17//! A lot of the sophoisticated functionality in this crate requires Tokio.
18//! However, even without tokio, some of the higher level wrappers over COM types have utility.
19
20// lib that contains all common extensions for the raw fabric apis.
21
22// SF lib entrypoint apis.
23pub mod api;
24pub use api::API_TABLE;
25pub mod client;
26#[cfg(feature = "config_source")]
27pub mod conf;
28pub mod debug;
29mod error;
30pub use error::{Error, ErrorCode, Result};
31mod iter;
32pub mod runtime;
33pub mod strings;
34pub mod sync;
35pub mod types;
36
37// re-export some windows types
38pub use windows_core::{Interface, WString, GUID, HRESULT, PCWSTR};
39// Note cannot re-export windows_core::implement because the macro using it has hard coded mod name.
40/// Windows error type.
41pub use windows_core::Error as WinError;
42pub use windows_core::Result as WinResult;