aboutsummaryrefslogtreecommitdiff
path: root/embassy-usb-dfu/Cargo.toml
blob: 4f952a047bd9c8933f01d7900f195678090879de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[package]
edition = "2024"
name = "embassy-usb-dfu"
version = "0.2.0"
description = "An implementation of the USB DFU 1.1 protocol, using embassy-boot"
license = "MIT OR Apache-2.0"
repository = "https://github.com/embassy-rs/embassy"
documentation = "https://docs.embassy.dev/embassy-usb-dfu"
categories = [
    "embedded",
    "no-std",
    "asynchronous"
]

[package.metadata.embassy]
build = [
    { target = "thumbv7em-none-eabi", features = [ "defmt", "cortex-m", "dfu" ] },
    { target = "thumbv7em-none-eabi", features = [ "defmt", "cortex-m", "application" ] },
]

[package.metadata.embassy_docs]
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-usb-v$VERSION/embassy-usb-dfu/src/"
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-dfu/src/"
features = ["defmt", "cortex-m"]
target = "thumbv7em-none-eabi"
flavors = [
    { name = "dfu",         features = [ "dfu" ] },
    { name = "application", features = [ "application" ] },
]

[package.metadata.docs.rs]
features = ["defmt", "cortex-m", "dfu"]

[dependencies]
defmt = { version = "1.0.1", optional = true }
log = { version = "0.4.17", optional = true }

bitflags = "2.10.0"
cortex-m = { version = "0.7.7", features = ["inline-asm"], optional = true }
embassy-boot = { version = "0.6.1", path = "../embassy-boot" }
embassy-futures = { version = "0.1.2", path = "../embassy-futures" }
embassy-sync = { version = "0.7.2", path = "../embassy-sync" }
embassy-time = { version = "0.5.0", path = "../embassy-time" }
embassy-usb = { version = "0.5.1", path = "../embassy-usb", default-features = false }
embedded-storage = { version = "0.3.1" }
esp32c3-hal = { version = "0.13.0", optional = true, default-features = false }

[features]
dfu = []
application = []
defmt = ["dep:defmt", "embassy-boot/defmt", "embassy-usb/defmt"]
log = ["dep:log"]
cortex-m = ["dep:cortex-m"]  
esp32c3-hal = ["dep:esp32c3-hal"]
ed25519-dalek = ["embassy-boot/ed25519-dalek", "_verify"]
ed25519-salty = ["embassy-boot/ed25519-salty", "_verify"]

# Internal features
_verify = []