rolldown_common 1.2.0

This crate is mostly for sharing code between rolldwon crates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use arcstr::ArcStr;
use rustc_hash::FxHashMap;

/// Per-client input for selecting the factories an HMR push ships. The server never
/// sees execution state — the selection reads only `shipped[C]`, the record of the
/// server's own deliveries (module stable id → rebuild stamp of the copy this client
/// holds).
#[derive(Debug)]
pub struct ClientHmrInput<'a> {
  pub client_id: &'a str,
  /// The ship map `shipped[C]`: module stable id → rebuild stamp.
  pub shipped: &'a FxHashMap<ArcStr, u32>,
}