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// Rename the mssf_pal dependency
38// This is needed because windows_core macro looks for the `windows_core` token.
39extern crate mssf_pal as windows_core;
40// re-export some windows types
41pub use windows_core::{GUID, HRESULT, Interface, PCWSTR, Ref, WString};
42// Note cannot re-export windows_core::implement because the macro using it has hard coded mod name.
43/// Windows error type.
44pub use windows_core::Error as WinError;
45pub use windows_core::Result as WinResult;