-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathCargo.toml
60 lines (51 loc) · 2.24 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
[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 = ["cu-consolemon", "cu29-log", "cu29-log-runtime", "cu29-unifiedlog", "copper-traits"] # proc macro and console
[dependencies]
# Core dependencies
cu29 = { workspace = true }
cu29-helpers = { workspace = true }
cu-ads7883-new = { path = "../../components/sources/cu_ads7883", version = "0.6.0" }
cu-rp-sn754410-new = { path = "../../components/sinks/cu_rp_sn754410", version = "0.6.0" }
cu-rp-encoder = { path = "../../components/sources/cu_rp_encoder", version = "0.6.0" }
cu-consolemon = { path = "../../components/monitors/cu_consolemon", version = "0.6.0" } # needed
cu-pid = { path = "../../components/tasks/cu_pid", version = "0.6.0" }
ctrlc = "3.4.5"
# Log reader depencies
cu29-export = { workspace = true, optional = true }
# Sim dependencies
bevy = { version = "0.15.1", default-features = false, features = ["x11", "wayland", "default_font", "bevy_render", "bevy_window", "bevy_core_pipeline", "bevy_pbr", "bevy_scene", "bevy_sprite", "bevy_gltf", "animation", "bevy_picking", "bevy_mesh_picking_backend", "tonemapping_luts", "bevy_ui", "ktx2", "jpeg", "png"], optional = true }
avian3d = { version = "0.2.0", default-features = false, features = ["bevy_scene", "collider-from-mesh", "debug-plugin", "parallel", "f32", "3d", "parry-f32"], 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", "avian3d", "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"]