Files
picar/car-rs/Cargo.toml
Piv d876fcbb2e Add grpc rust codegen + stubs, add rppal compile feature
for raspberry pi compilation.

This is because rppal won't compile on mac, so we
only want to bring in the dependency when actually compiling
for the raspberry pi, and so will manually need to enable the
dependency.
2022-08-06 20:34:00 +09:30

28 lines
583 B
TOML

[package]
name = "car-rs"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# https://github.com/golemparts/rppal
rppal = { version = "0.13.1", optional = true }
tokio = { version = "1", features = ["full"] }
prost = "0.11"
# https://github.com/hyperium/tonic
tonic = "0.8.0"
# https://docs.rs/serialport/4.0.1/serialport/index.html
serialport = "4.0.1"
[build]
target = "armv7-unknown-linux-gnueabihf"
[build-dependencies]
tonic-build = "0.8.0"
[features]
rppal = ["dep:rppal"]