Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed May 13, 2023
1 parent b22aaf0 commit b8d4f6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ description = "An embedded-hal and embedded-graphics Display simulator."
repository = "https://github.com/ivmarkov/hal-sim"
license = "MIT OR Apache-2.0"
readme = "README.md"
rust-version = "1.67"

[patch.crates-io]
#edge-net = { git = "https://github.com/ivmarkov/edge-net" }
channel-bridge = { git = "https://github.com/ivmarkov/channel-bridge" }

[features]
default = ["nightly", "ui", "web", "middleware-local"]
Expand All @@ -32,13 +37,13 @@ embedded-graphics-core = { version = "0.3", optional = true }
# web
futures = { version = "0.3", optional = true }
embassy-futures = { version = "0.1", optional = true }
embassy-sync = { version = "0.1", optional = true }
embassy-sync = { version = "0.2", optional = true }
channel-bridge = { version = "0.2", default-features = false, features = ["nightly", "embedded-svc", "notification"], optional = true }
gloo-net = { version = "0.2", optional = true }
postcard = { version = "1", optional = true }

# ws
embedded-svc = { version = "0.24", default-features = false, features = ["experimental", "nightly"], optional = true }
embedded-svc = { version = "0.25", default-features = false, features = ["nightly"], optional = true }

# ui
yew = { version = "0.19", default-features = false, optional = true }
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(clippy::let_unit_value)]
#![feature(cfg_version)]
#![cfg_attr(feature = "web", feature(type_alias_impl_trait))]
#![cfg_attr(
all(feature = "web", not(version("1.65"))),
feature(generic_associated_types)
all(feature = "web", version("1.70")),
feature(impl_trait_in_assoc_type)
)]
#![cfg_attr(feature = "web", feature(type_alias_impl_trait))]
#![cfg_attr(feature = "ui", recursion_limit = "1024")]

#[cfg(feature = "sim")]
Expand Down

0 comments on commit b8d4f6d

Please sign in to comment.