forked from copper-project/copper-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (89 loc) · 2.77 KB
/
Copy pathCargo.toml
File metadata and controls
98 lines (89 loc) · 2.77 KB
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
[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, features = ["macro_debug"] }
cu29 = { workspace = true }
cu29-helpers = { workspace = true }
serde = { workspace = true }
cu-ads7883-new = { path = "../../components/sources/cu_ads7883", version = "0.11.0" }
cu-rp-sn754410-new = { path = "../../components/sinks/cu_rp_sn754410", version = "0.11.0" }
cu-rp-encoder = { path = "../../components/sources/cu_rp_encoder", version = "0.11.0" }
cu-consolemon = { path = "../../components/monitors/cu_consolemon", version = "0.11.0" } # needed
cu-pid = { path = "../../components/tasks/cu_pid", version = "0.11.0" }
# Log reader depencies
cu29-export = { workspace = true, optional = true }
# Sim dependencies
bevy = { version = "0.17.3", 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",
"bevy_ui_render",
"ktx2",
"jpeg",
"png",
"zstd_rust",
"trace",
"reflect_auto_register",
], optional = true }
avian3d = { version = "0.4.1", default-features = false, features = ["bevy_scene", "collider-from-mesh", "debug-plugin", "parallel", "f32", "3d", "parry-f32", "xpbd_joints"], optional = true }
cached-path = { version = "0.10.0", features=["progress-bar"], optional = true }
bevy_anti_alias = { version = "0.17.3", optional = true }
bevy_utils = { version = "0.17.3", features = ["debug"] }
[features]
default = ["logreader", "sim"]
# generates an executable to read the logs
logreader = ["dep:cu29-export"]
# dependencies to build to matrix for copper
sim = [
"dep:bevy",
"dep:bevy_anti_alias",
"dep:avian3d",
"dep:cached-path",
"dep:cu29-export",
] # required for exporting simulation data
[[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"]