Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Clean up druid-shell info and add new info to Cargo.toml. #125

Merged
merged 2 commits into from
Jul 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 31 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
[package]
name = "glazier"
version = "0.7.0"
license = "Apache-2.0"
authors = ["Raph Levien <[email protected]>"]
description = "Platform abstracting application shell used for druid toolkit."
repository = "https://github.com/linebender/druid"
readme = "README.md"
categories = ["os::macos-apis", "os::windows-apis", "gui"]
version = "0.1.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/linebender/glazier"
description = "Cross-platform native API abstraction for building GUI applications."
keywords = ["gui", "native", "window", "menu", "winit"]
categories = ["gui", "os", "os::windows-apis", "os::macos-apis", "os::linux-apis"]
exclude = ["/.github/"]
publish = false # Until it's ready

[package.metadata.docs.rs]
features = ["accesskit", "image"] # Try to keep all features enabled for docs
rustdoc-args = ["--cfg", "docsrs"]
default-target = "x86_64-pc-windows-msvc"
# rustdoc-scrape-examples tracking issue https://github.com/rust-lang/rust/issues/88791
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]

[features]
default = ["x11"]
Expand All @@ -27,21 +31,20 @@ wayland = [

# passing on all the image features. AVIF is not supported because it does not
# support decoding, and that's all we use `Image` for.
bmp = []
dds = []
dxt = []
farbfeld = []
gif = []
jpeg = []
png = []
ico = []
tiff = []
webp = []
tga = []
hdr = []
image_png = []
jpeg_rayon = []
pnm = []
bmp = ["image/bmp", "image"]
xStrom marked this conversation as resolved.
Show resolved Hide resolved
dds = ["image/dds", "image"]
dxt = ["image/dxt", "image"]
farbfeld = ["image/farbfeld", "image"]
gif = ["image/gif", "image"]
hdr = ["image/hdr", "image"]
ico = ["image/ico", "image"]
png = ["image/png", "image"]
jpeg = ["image/jpeg", "image"]
jpeg_rayon = ["image/jpeg_rayon", "image"]
pnm = ["image/pnm", "image"]
tga = ["image/tga", "image"]
tiff = ["image/tiff", "image"]
webp = ["image/webp", "image"]
serde = ["kurbo/serde"]

accesskit = [
Expand Down Expand Up @@ -170,6 +173,12 @@ wgpu = "0.15.0"
bindgen = { version = "0.60.1", optional = true }
pkg-config = { version = "0.3.25", optional = true }

[[example]]
name = "shello"
# This actually enables scraping for all examples, not just `shello`.
# However it is possible to add another [[example]] entry to disable it for a specific example.
doc-scrape-examples = true

[[example]]
name = "accesskit"
required-features = ["accesskit"]
Expand Down