Use workspace inheritance. (#701)

Consolidate package configuration where possible. This also
removes the `homepage` key as it only points to the repository
so isn't providing anything additional.

Use workspace dependencies for the crates provided by the workspace
and used within the workspace. This centralizes the version number
maintenance a bit.
This commit is contained in:
Bruce Mitchener
2024-08-12 14:41:37 +07:00
committed by GitHub
parent 84b8365425
commit 39a39555c0
9 changed files with 107 additions and 92 deletions
+12 -10
View File
@@ -1,17 +1,24 @@
[package]
name = "core-text"
version = "21.0.0"
authors = ["The Servo Project Developers"]
description = "Bindings to the Core Text framework."
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/core-foundation-rs"
edition = "2018"
rust-version = "1.65"
authors.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-apple-darwin"
[dependencies]
core-foundation.workspace = true
core-graphics.workspace = true
foreign-types = "0.5"
[features]
default = ["mountainlion", "link"]
# For OS X 10.7 compat, exclude this feature. It will exclude some things from
@@ -19,8 +26,3 @@ default = ["mountainlion", "link"]
mountainlion = []
# Disable to manually link. Enabled by default.
link = ["core-foundation/link", "core-graphics/link"]
[dependencies]
foreign-types = "0.5"
core-foundation = { default-features = false, path = "../core-foundation", version = "0.10" }
core-graphics = { default-features = false, path = "../core-graphics", version = "0.24" }