mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-14 05:28:07 +00:00
Improve Rust SDK build flags / reduce dependencies.
This reduces the amount of dependencies in case not all features are being used. E.g. tonic is only needed if using gRPC and pbjson, pbjson-types and serde are only needed if using the JSON serialization.
This commit is contained in:
3
api/rust/src/common.rs
vendored
3
api/rust/src/common.rs
vendored
@ -2,7 +2,8 @@ use std::error::Error;
|
||||
use std::fmt;
|
||||
use std::str::FromStr;
|
||||
|
||||
tonic::include_proto!("common/common");
|
||||
include!(concat!(env!("OUT_DIR"), "/common/common.rs"));
|
||||
#[cfg(feature = "json")]
|
||||
include!(concat!(env!("OUT_DIR"), "/common/common.serde.rs"));
|
||||
|
||||
#[allow(clippy::from_over_into)]
|
||||
|
Reference in New Issue
Block a user