mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade font-kit, raqote, and stop using dirs-next
(#33120)
`dirs-next` is still used by the version of the `term` crate we are using, but this also remoes a version of `cstr` so our dependency count does not change. A new version of `raqote` hasn't been released, so this depends on the upstream repository directly. It's been almost 4 months since the release has been ready -- so it's unclear when it will happen. Fixes #32801. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
2f6745c0c6
commit
f45c98496e
5 changed files with 42 additions and 27 deletions
|
@ -21,7 +21,7 @@ canvas_traits = { workspace = true }
|
|||
crossbeam-channel = { workspace = true }
|
||||
cssparser = { workspace = true }
|
||||
euclid = { workspace = true }
|
||||
font-kit = { version = "0.13" }
|
||||
font-kit = { version = "0.14" }
|
||||
fnv = { workspace = true }
|
||||
fonts = { path = "../fonts" }
|
||||
half = "2"
|
||||
|
@ -34,7 +34,7 @@ parking_lot = { workspace = true }
|
|||
pathfinder_geometry = "0.5"
|
||||
pixels = { path = "../pixels" }
|
||||
range = { path = "../range" }
|
||||
raqote = "0.8.4"
|
||||
raqote = { git = "https://github.com/jrmuizel/raqote", rev = "64716c8" }
|
||||
servo_arc = { workspace = true }
|
||||
sparkle = { workspace = true }
|
||||
style = { workspace = true }
|
||||
|
|
|
@ -25,4 +25,4 @@ style_config = { workspace = true }
|
|||
url = { workspace = true }
|
||||
|
||||
[target.'cfg(not(target_os = "android"))'.dependencies]
|
||||
dirs-next = "2.0"
|
||||
dirs = "5.0"
|
||||
|
|
|
@ -15,7 +15,7 @@ use std::path::PathBuf;
|
|||
not(target_os = "android")
|
||||
))]
|
||||
pub fn default_config_dir() -> Option<PathBuf> {
|
||||
let mut config_dir = ::dirs_next::config_dir().unwrap();
|
||||
let mut config_dir = ::dirs::config_dir().unwrap();
|
||||
config_dir.push("servo");
|
||||
config_dir.push("default");
|
||||
Some(config_dir)
|
||||
|
@ -30,14 +30,14 @@ pub fn default_config_dir() -> Option<PathBuf> {
|
|||
pub fn default_config_dir() -> Option<PathBuf> {
|
||||
// FIXME: use `config_dir()` ($HOME/Library/Preferences)
|
||||
// instead of `data_dir()` ($HOME/Library/Application Support) ?
|
||||
let mut config_dir = ::dirs_next::data_dir().unwrap();
|
||||
let mut config_dir = ::dirs::data_dir().unwrap();
|
||||
config_dir.push("Servo");
|
||||
Some(config_dir)
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
pub fn default_config_dir() -> Option<PathBuf> {
|
||||
let mut config_dir = ::dirs_next::config_dir().unwrap();
|
||||
let mut config_dir = ::dirs::config_dir().unwrap();
|
||||
config_dir.push("Servo");
|
||||
Some(config_dir)
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ freetype-sys = { workspace = true }
|
|||
servo_allocator = { path = "../allocator" }
|
||||
|
||||
[target.'cfg(all(target_os = "linux", not(target_env = "ohos")))'.dependencies]
|
||||
fontconfig_sys = { package = "yeslogic-fontconfig-sys", version = "5" }
|
||||
fontconfig_sys = { package = "yeslogic-fontconfig-sys", version = "6" }
|
||||
|
||||
[target.'cfg(target_os = "android")'.dependencies]
|
||||
xml-rs = "0.8"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue