aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: d724eb546b2899e58d4384a4b0a5b6507690b334 (plain) (blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "ocularium"
description = "firmware for tiny kite-borne sensor node"
include = ["build.rs", "/src/", "Cargo.toml", "README.md", "LICENSE"]
version.workspace = true
edition.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true

[workspace]
members = [
    "common",
    "host"
]

exclude = [
    "pio_i2s",
    "test_fw/ui"
]

[workspace.package]
version = "0.1.0-alpha0"
edition = "2021"
authors = [
    "Nathan Perry <np@npry.dev>"
]
license = "MIT"
homepage = "https://blog.npry.dev/resenv/ocularium"
repository = "https://pub.npry.dev/ocularium"

[workspace.dependencies]
serde = { version = "1.0", default-features = false }

[features]
disable_sd = []
disable_i2s = []

[dependencies]
veml7700_async = { git = "https://pub.npry.dev/veml7700_async" }
drogue_bme680_async = { git = "https://pub.npry.dev/drogue_bme680_async", features = ["dump", "defmt"] }
lsm6dsm = { git = "https://pub.npry.dev/lsm6dsm" }

serde = { workspace = true, default-features = false, features = ["derive", "alloc"] }

embassy-net = { git = "https://pub.npry.dev/embassy", features = ["medium-ethernet", "tcp", "proto-ipv4", "dns"] }
embassy-executor = { git = "https://pub.npry.dev/embassy", features = ["executor-interrupt", "executor-thread", "arch-cortex-m", "nightly"] }
cortex-m-rt = { version = "0.7", default-features = false }

ocularium_common = { path = "common" }

reqwless = { version = "0.13", default-features = false, features = ["alloc", "defmt"] }

pio = "0.2"

[dependencies.molybdos]
git = "https://pub.npry.dev/molybdos"
features = [
    "rp",
    "defmt",
    "rtt",
    "sd",
    "runtime",
    "postcard",
    "serde",
    "chrono",
    "alloc",
    "impl_alloc",
]


[build-dependencies]
molybdos_build = { git = "https://pub.npry.dev/molybdos", features = ["defmt", "vergen"] }

[patch]
#"https://pub.npry.dev/molybdos".molybdos = { path = "../molybdos" }
#"https://pub.npry.dev/veml7700_async".veml7700_async = { path = "../../fork/veml7700" }
#"https://pub.npry.dev/drogue_bme680_async".drogue_bme680_async = { path = "../../fork/drogue_bme680_async" }
#"https://pub.npry.dev/lsm6dsm".lsm6dsm = { path = "../lsm6dsm" }

[patch."https://github.com/embassy-rs/embassy"]
embassy-sync = { git = "https://pub.npry.dev/embassy" }
embassy-executor = { git = "https://pub.npry.dev/embassy" }
embassy-time = { git = "https://pub.npry.dev/embassy" }
embassy-time-driver = { git = "https://pub.npry.dev/embassy" }
embassy-usb = { git = "https://pub.npry.dev/embassy" }
embassy-rp = { git = "https://pub.npry.dev/embassy" }
embassy-net = { git = "https://pub.npry.dev/embassy" }

[profile.dev]
codegen-units = 1
debug = true
debug-assertions = true
incremental = false
opt-level = 'z'
overflow-checks = true

[profile.release]
codegen-units = 1
debug = 2
debug-assertions = false
lto = 'fat'
opt-level = 3
overflow-checks = false