mirror of https://codeberg.org/topola/topola.git
cargo: make pathfinder an optional, SDL2-only dependency
This commit is contained in:
parent
ec799fb107
commit
aa40c80d82
32
Cargo.toml
32
Cargo.toml
|
|
@ -17,15 +17,9 @@ required-features = ["sdl2"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
egui = ["dep:eframe", "dep:egui", "dep:rfd", "dep:futures"]
|
egui = ["dep:eframe", "dep:egui", "dep:rfd", "dep:futures"]
|
||||||
sdl2 = ["dep:sdl2"]
|
sdl2 = ["dep:sdl2", "dep:gl", "dep:pathfinder_canvas", "dep:pathfinder_geometry", "dep:pathfinder_gl", "dep:pathfinder_renderer", "dep:pathfinder_resources"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gl = "0.14.0"
|
|
||||||
pathfinder_canvas = { git = "https://github.com/servo/pathfinder" }
|
|
||||||
pathfinder_geometry = { git = "https://github.com/servo/pathfinder" }
|
|
||||||
pathfinder_gl = { git = "https://github.com/servo/pathfinder" }
|
|
||||||
pathfinder_renderer = { git = "https://github.com/servo/pathfinder" }
|
|
||||||
pathfinder_resources = { git = "https://github.com/servo/pathfinder" }
|
|
||||||
thiserror = "1.0.56"
|
thiserror = "1.0.56"
|
||||||
anyhow = "1.0.79"
|
anyhow = "1.0.79"
|
||||||
geo = "0.25.1"
|
geo = "0.25.1"
|
||||||
|
|
@ -65,6 +59,30 @@ version = "0.35.2"
|
||||||
default-features = false
|
default-features = false
|
||||||
features = ["bundled"]
|
features = ["bundled"]
|
||||||
|
|
||||||
|
[dependencies.gl]
|
||||||
|
optional = true
|
||||||
|
version = "0.14.0"
|
||||||
|
|
||||||
|
[dependencies.pathfinder_canvas]
|
||||||
|
optional = true
|
||||||
|
git = "https://github.com/servo/pathfinder"
|
||||||
|
|
||||||
|
[dependencies.pathfinder_geometry]
|
||||||
|
optional = true
|
||||||
|
git = "https://github.com/servo/pathfinder"
|
||||||
|
|
||||||
|
[dependencies.pathfinder_gl]
|
||||||
|
optional = true
|
||||||
|
git = "https://github.com/servo/pathfinder"
|
||||||
|
|
||||||
|
[dependencies.pathfinder_renderer]
|
||||||
|
optional = true
|
||||||
|
git = "https://github.com/servo/pathfinder"
|
||||||
|
|
||||||
|
[dependencies.pathfinder_resources]
|
||||||
|
optional = true
|
||||||
|
git = "https://github.com/servo/pathfinder"
|
||||||
|
|
||||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||||
env_logger = "0.10"
|
env_logger = "0.10"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue