mirror of https://codeberg.org/topola/topola.git
Cargo.toml: get rid of unnecessary dependencies
This commit is contained in:
parent
85d661a8da
commit
507ca01bfc
10
Cargo.toml
10
Cargo.toml
|
|
@ -19,18 +19,16 @@ required-features = ["egui"]
|
||||||
[features]
|
[features]
|
||||||
default = ["disable_contracts"]
|
default = ["disable_contracts"]
|
||||||
cli = ["dep:clap"]
|
cli = ["dep:clap"]
|
||||||
egui = ["dep:sys-locale", "dep:unic-langid", "dep:fluent-templates", "dep:eframe", "dep:egui", "dep:rfd", "dep:futures"]
|
egui = ["dep:sys-locale", "dep:unic-langid", "dep:fluent-templates", "dep:eframe", "dep:egui", "dep:rfd", "dep:futures-executor"]
|
||||||
disable_contracts = ["contracts/disable_contracts"]
|
disable_contracts = ["contracts/disable_contracts"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
thiserror = "1.0.56"
|
thiserror = "1.0.56"
|
||||||
anyhow = "1.0.79"
|
|
||||||
rstar = "0.11.0"
|
rstar = "0.11.0"
|
||||||
petgraph = "0.6.3"
|
petgraph = "0.6.3"
|
||||||
spade = "2.2.0"
|
spade = "2.2.0"
|
||||||
serde_json = "1.0.117"
|
serde_json = "1.0.117"
|
||||||
enum_dispatch = "0.3.12"
|
enum_dispatch = "0.3.12"
|
||||||
itertools = "0.8.2"
|
|
||||||
contracts = "0.6.3"
|
contracts = "0.6.3"
|
||||||
bimap = "0.6.3"
|
bimap = "0.6.3"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
|
@ -79,14 +77,10 @@ version = "0.28.1"
|
||||||
optional = true
|
optional = true
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
|
|
||||||
[dependencies.futures]
|
[dependencies.futures-executor]
|
||||||
optional = true
|
optional = true
|
||||||
version = "0.3.30"
|
version = "0.3.30"
|
||||||
|
|
||||||
[dependencies.gl]
|
|
||||||
optional = true
|
|
||||||
version = "0.14.0"
|
|
||||||
|
|
||||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||||
env_logger = "0.10"
|
env_logger = "0.10"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
use futures::executor;
|
|
||||||
use geo::point;
|
use geo::point;
|
||||||
use petgraph::visit::{EdgeRef, IntoEdgeReferences};
|
use petgraph::visit::{EdgeRef, IntoEdgeReferences};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
@ -224,7 +223,7 @@ impl eframe::App for App {
|
||||||
|
|
||||||
#[cfg(not(target_arch = "wasm32"))]
|
#[cfg(not(target_arch = "wasm32"))]
|
||||||
pub fn execute<F: Future<Output = ()> + Send + 'static>(f: F) {
|
pub fn execute<F: Future<Output = ()> + Send + 'static>(f: F) {
|
||||||
std::thread::spawn(move || futures::executor::block_on(f));
|
std::thread::spawn(move || futures_executor::block_on(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_arch = "wasm32")]
|
#[cfg(target_arch = "wasm32")]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue