crates/libs/core/Cargo.toml (59 lines of code) (raw):
[package]
name = "mssf-core"
version = "0.0.22"
edition = "2021"
license = "MIT"
description = "Rust for Azure Service Fabric. Rust safe APIs."
documentation = "https://learn.microsoft.com/en-us/azure/service-fabric/"
repository = "https://github.com/Azure/service-fabric-rs"
readme = "README.md"
authors = ["youyuanwu@outlook.com"]
include = ["**/*.rs", "Cargo.toml"]
[features]
default = ["config_source", "tokio_async", "tracing"]
# Required for a lot of callback functionality.
# Also requires ctrlc for signal handling
tokio_async = ["dep:tokio", "dep:tokio-util"]
# Config crate required to implement its interface.
config_source = ["dep:config"]
tracing = ["dep:tracing"]
[dependencies]
tracing = { workspace = true, optional = true }
tokio = { version = "1", features = ["sync", "rt"], optional = true }
tokio-util = { version = "0.7", optional = true }
trait-variant = "0.1"
bitflags = "2"
config = { version = "0.14", default-features = false, optional = true }
libloading = "0.8"
lazy_static = "1"
[dev-dependencies]
# need time for testing
tokio = { version = "1", features = [
"sync",
"rt-multi-thread",
"rt",
"macros",
"time",
] }
# windows dep is only enabled on windows os.
[target.'cfg(windows)'.dependencies.windows]
workspace = true
features = [
"Win32_System_Diagnostics_Debug_Extensions", # for debug api
]
# treat pal as the windows core.
# see mssf-pal documentation why it is used this way.
[dependencies.windows-core]
package = "mssf-pal"
path = "../pal"
version = "0.0.22"
[dependencies.mssf-com]
path = "../com"
version = "0.0.22"
default-features = false
features = [
"ServiceFabric_FabricClient",
"ServiceFabric_FabricCommon",
"ServiceFabric_FabricTypes",
"ServiceFabric_FabricRuntime",
]