Skip to content

Commit

Permalink
:(
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSprenger committed Oct 3, 2024
1 parent 2123424 commit c13ffb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ postcard = { version = "1.0.4", features = ["alloc"] }

[features]
default = ["mavlink/embedded-hal-02", "mavlink/uorocketry"]
std = ["mavlink/std", "mavlink/tcp", "mavlink/udp", "mavlink/direct-serial", "mavlink/serde", "dep:proptest", "dep:proptest-derive"]
std = ["chrono/std", "mavlink/std", "mavlink/tcp", "mavlink/udp", "mavlink/direct-serial", "mavlink/serde", "dep:proptest", "dep:proptest-derive"]
4 changes: 2 additions & 2 deletions messages-proc-macros-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use quote::quote;

/// Simple macro to easily add derives that are common for the messages crates.
#[proc_macro_attribute]
pub fn common_derives(args: TokenStream, input: TokenStream) -> TokenStream {
pub fn common_derives(args: TokenStream, input: TokenStream) -> TokenStream {
let mut output = TokenStream::from(quote! {
#[derive(serde::Serialize, serde::Deserialize, Clone, Debug)]
#[cfg_attr(feature = "ts", derive(ts_rs::TS))]
Expand All @@ -20,4 +20,4 @@ pub fn common_derives(args: TokenStream, input: TokenStream) -> TokenStream {

output.extend(input);
output
}
}
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
#![no_main]

//! # HYDRA Messages
//! # Messages
//!
//! This crate contains all the message definitions that will be used for inter-board communication
//! and ground-station communication.
Expand Down Expand Up @@ -29,7 +29,7 @@ pub use logging::{ErrorContext, Event, Log, LogLevel};

/// Topmost message. Encloses all the other possible messages, and is the only thing that should
/// be sent over the wire.
#[common_derives("NoFormat")]
#[common_derives(NoFormat)]
pub struct Message {
pub timestamp: NaiveDateTime,

Expand Down Expand Up @@ -60,7 +60,7 @@ impl Message {
}
}

#[cfg(all(test, feature = "std"))]
#[cfg(test)]
mod test {
use crate::{Message, MAX_SIZE};
use proptest::prelude::*;
Expand Down

0 comments on commit c13ffb5

Please sign in to comment.