chore(m0): initialize cargo workspace, crate skeletons and ci gate
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
[package]
|
||||
name = "server"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
rust-version.workspace = true
|
||||
authors.workspace = true
|
||||
description = "Replay validation service (referee)"
|
||||
|
||||
[dependencies]
|
||||
sim.workspace = true
|
||||
content.workspace = true
|
||||
@@ -0,0 +1,14 @@
|
||||
//! Replay validation service. Filled in at M4 (axum, sqlx, HMAC tokens).
|
||||
|
||||
/// Reports which simulation version this server validates against.
|
||||
pub fn validated_sim_version() -> &'static str {
|
||||
sim::SIM_VERSION
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn reports_sim_version() {
|
||||
assert_eq!(super::validated_sim_version(), sim::SIM_VERSION);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user