TimelyDataflow / timely-dataflow

A modular implementation of timely dataflow in Rust
MIT License
3.29k stars 272 forks source link

Failed to compile `timely_communication` #584

Closed nooberfsh closed 1 month ago

nooberfsh commented 1 month ago

cargo check --package timely_communication

Checking timely_communication v0.12.0 (/home/tom/hdx/projects/timely-dataflow/communication) error: cannot find derive macro Serialize in this scope --> communication/src/networking.rs:25:51 25 #[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, Serialize, Deserialize)] ^^^^^^^^^
note: Serialize is imported here, but it is only a trait, without a derive macro --> communication/src/networking.rs:12:26 12 use serde::{Deserialize, Serialize}; ^^^^^^^^^ help: consider importing this derive macro

3 + use serde_derive::Serialize;

Import the macro in communication/src/lib.rs would fix this.

#[macro_use]
extern crate serde_derive;