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
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: cargo test glazier --doc
run: cargo test --doc --no-default-features --features=image,im
run: cargo test --doc --no-default-features --features=accesskit

# This tests the future rust compiler to catch errors ahead of time without
# breaking CI
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: cargo test glazier --doc
run: cargo test --doc --features=image,im
run: cargo test --doc --features=accesskit

check-docs:
name: Docs
Expand Down
43 changes: 17 additions & 26 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"] # 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 @@ -25,23 +29,6 @@ wayland = [
"wayland-backend",
]

# 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 = []
serde = ["kurbo/serde"]

accesskit = [
Expand All @@ -64,7 +51,6 @@ keyboard-types = { version = "0.6.2", default_features = false }
memchr = "2.5"

# Optional dependencies
image = { version = "0.24.4", optional = true, default_features = false }
raw-window-handle = { version = "0.5.0", default_features = false }
accesskit = { version = "0.11.0", optional = true }
once_cell = { version = "1", optional = true }
Expand Down Expand Up @@ -130,7 +116,6 @@ x11rb = { version = "0.11.1", features = [
rand = { version = "0.8.0", optional = true }
calloop = { version = "0.7.1", optional = true }
log = { version = "0.4.14", optional = true }
im = { version = "15.0.0", optional = true }

# Wayland dependencies
smithay-client-toolkit = { version = "0.17.0", optional = true }
Expand Down Expand Up @@ -170,6 +155,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
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
html_logo_url = "https://raw.githubusercontent.com/linebender/druid/screenshots/images/doc_logo.png"
)]

// Reexport the version of `image` we are using.
#[cfg(feature = "image")]
pub use image;

pub use kurbo;

// Reexport the version of `raw_window_handle` we are using.
Expand Down