85 lines
2.1 KiB
TOML
85 lines
2.1 KiB
TOML
[package]
|
|
name = "relm4"
|
|
documentation = "https://docs.rs/relm4/"
|
|
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
readme.workspace = true
|
|
license.workspace = true
|
|
description.workspace = true
|
|
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
|
|
keywords.workspace = true
|
|
categories.workspace = true
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustc-args = ["--cfg", "docsrs"]
|
|
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
|
|
# enable unstable features in the documentation
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
default = ["macros", "gnome_42"]
|
|
# The dox feature can be used for building the docs without the dependencies and requires Rust Nightly
|
|
dox = ["gtk/dox", "adw/dox"]
|
|
libadwaita = ["adw"]
|
|
# libpanel = ["panel"]
|
|
macros = ["relm4-macros"]
|
|
|
|
gnome_44 = ["gnome_43", "gtk/gnome_44", "adw/v1_3"]
|
|
gnome_43 = ["gnome_42", "gtk/gnome_43", "adw/v1_2"]
|
|
gnome_42 = ["gtk/gnome_42"]
|
|
|
|
# All features except docs. This is also used in the CI
|
|
all = ["macros", "libadwaita"] #, "panel"]
|
|
|
|
[dependencies]
|
|
adw = { version = "0.4", optional = true, package = "libadwaita", path="../../libadwaita-0.4.4" }
|
|
|
|
flume = "0.10.14"
|
|
futures = "0.3.28"
|
|
fragile = "2.0.0"
|
|
gtk = { version = "0.6", package = "gtk4" }
|
|
once_cell = "1.18"
|
|
# Wait for libpanel 0.3 release
|
|
# panel = { version = "0.3", optional = true, package = "libpanel" }
|
|
tokio = { version = "1.28", features = ["rt", "rt-multi-thread", "sync"] }
|
|
|
|
relm4-macros = { version = "0.6.2", path = "../relm4-macros", optional = true }
|
|
tracing = "0.1.37"
|
|
async-trait = "0.1.68"
|
|
|
|
[dev-dependencies]
|
|
relm4-macros = { path = "../relm4-macros" }
|
|
|
|
# For the benchmarks
|
|
criterion = { version = "0.5", default-features = false }
|
|
|
|
# For the examples
|
|
relm4-icons = { version = "0.6.0", features = ["plus", "minus"]}
|
|
tokio = { version = "1.28", features = [
|
|
"rt",
|
|
"macros",
|
|
"time",
|
|
"rt-multi-thread",
|
|
] }
|
|
rand = "0.8.5"
|
|
tracker = "0.2"
|
|
reqwest = "0.11.18"
|
|
tracing-subscriber = "0.3.17"
|
|
|
|
[[bench]]
|
|
name = "stress_test"
|
|
harness = false
|
|
|
|
# Make sure that the examples are scraped
|
|
[[example]]
|
|
name = "simple"
|
|
path = "examples/simple.rs"
|
|
doc-scrape-examples = true
|