forked from copper-project/copper-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
72 lines (63 loc) · 2.55 KB
/
Cargo.toml
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
[package]
name = "cu-rp-balancebot"
description = "This is a full robot example for the Copper project. It runs on the Raspberry Pi with the balance bot hat to balance a rod."
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true
homepage.workspace = true
repository.workspace = true
default-run = "balancebot-sim"
[package.metadata.cargo-machete]
ignored = ["cu29-log", "cu29-log-runtime", "cu29-unifiedlog", "copper-traits"] # proc macro
[dependencies]
# Core dependencies
cu29 = { workspace = true }
cu29-traits = { workspace = true }
cu29-derive = { workspace = true } #, features = ["macro_debug"] }
cu29-helpers = { workspace = true }
cu29-log = { workspace = true }
cu29-log-runtime = { workspace = true }
cu29-log-derive = { workspace = true }
cu29-intern-strs = { workspace = true }
cu29-unifiedlog = { workspace = true }
compact_str = { workspace = true }
bincode = { workspace = true }
cu-ads7883-new = { path = "../../components/sources/cu_ads7883" }
cu-rp-sn754410-new = { path = "../../components/sinks/cu_rp_sn754410" }
cu-rp-encoder = { path = "../../components/sources/cu_rp_encoder" }
cu-consolemon = { path = "../../components/monitors/cu_consolemon" }
cu-pid = { path = "../../components/tasks/cu_pid" }
ctrlc = "3.4.5"
# Log reader depencies
cu29-export = { workspace = true, optional = true }
# Sim dependencies
bevy = { version = "0.14.2", default-features = false, features = ["wayland", "default_font", "bevy_render", "bevy_core_pipeline", "bevy_pbr", "bevy_scene", "bevy_sprite", "bevy_gltf", "tonemapping_luts", "bevy_ui", "ktx2", "jpeg", "png"], optional = true }
bevy_mod_picking = { version = "0.20.1", features = ["backend_avian"], optional = true }
bevy_editor_pls = "0.10.0"
avian3d = { version = "0.1.2", default-features = false, features = ["bevy_scene", "collider-from-mesh", "debug-plugin", "parallel"], optional = true }
parry3d = { version = "0.17.1", optional = true }
cached-path = { version = "0.6.1", optional = true }
[features]
default = ["logreader", "sim"]
# generates an executable to read the logs
logreader = ["cu29-export"]
# dependencies to build to matrix for copper
sim = ["bevy", "bevy_mod_picking", "avian3d", "parry3d", "cached-path"]
[[bin]]
name = "balancebot"
path = "src/main.rs"
[[bin]]
name = "balancebot-logreader"
path = "src/logreader.rs"
required-features = ["logreader"]
[[bin]]
name = "balancebot-sim"
path = "src/sim.rs"
required-features = ["sim"]
[[bin]]
name = "balancebot-resim"
path = "src/resim.rs"
required-features = ["sim"]