Skip to content

Commit 03132bc

Browse files
authored
Merge pull request #71 from embed-rs/generators
Add support for async/await
2 parents ea695d5 + 5cad19f commit 03132bc

File tree

24 files changed

+1339
-76
lines changed

24 files changed

+1339
-76
lines changed

.cargo/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ runner = "sh gdb.sh"
66
rustflags = [
77
"-C", "link-arg=-Tlink.x",
88
"-C", "linker=rust-lld",
9-
"-Z", "linker-flavor=ld.lld",
9+
"-C", "linker-flavor=ld.lld",
1010
]

Cargo.lock

Lines changed: 111 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ categories = ["embedded", "no-std"]
44
license = "MIT OR Apache-2.0"
55
name = "stm32f7-discovery"
66
version = "0.1.0"
7+
edition = "2018"
78

89
[dependencies]
910
cortex-m = "0.5.2"
@@ -16,6 +17,8 @@ volatile = "0.2.4"
1617
bit_field = "0.9.0"
1718
bare-metal = "0.2.3"
1819
embedded-hal = "0.2.1"
20+
pin-utils = "0.1.0-alpha"
21+
core = {path = "core"}
1922

2023
[dependencies.stm32f7]
2124
version = "0.3.2"
@@ -30,7 +33,7 @@ version = "1.0"
3033
default-features = false
3134

3235
[dependencies.smoltcp]
33-
git = "https://github.com/m-labs/smoltcp.git"
36+
version = "0.5.0"
3437
default-features = false
3538
features = ["alloc", "socket-raw", "socket-udp", "socket-tcp", "socket-icmp", "proto-ipv4"]
3639

@@ -39,7 +42,16 @@ version = "0.2.4"
3942
default-features = false
4043
features = ["unicode"]
4144

45+
[dependencies.futures-preview]
46+
version = "0.3.0-alpha"
47+
default-features = false
48+
features = ["alloc"]
49+
4250
[profile.release]
4351
codegen-units = 1 # better optimizations
4452
debug = true
4553
lto = true # better optimizations
54+
55+
[patch.crates-io.futures-preview]
56+
git = "https://github.com/embed-rs/futures-rs.git"
57+
branch = "alloc"

core/Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[package]
2+
name = "core"
3+
version = "0.1.0"
4+
authors = ["Philipp Oppermann <[email protected]>"]
5+
edition = "2018"
6+
7+
[dependencies]

0 commit comments

Comments
 (0)