Scaffold Rust API and worker workspace
Pin the Rust toolchain and nextest profile so both service crates share a reproducible verification baseline.
This commit is contained in:
parent
0834f291d9
commit
66991b85b2
2 changed files with 65 additions and 0 deletions
11
crates/remora-worker/src/lib.rs
Normal file
11
crates/remora-worker/src/lib.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
pub const COMPONENT_NAME: &str = "remora-worker";
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::COMPONENT_NAME;
|
||||
|
||||
#[test]
|
||||
fn exposes_component_name() {
|
||||
assert_eq!(COMPONENT_NAME, "remora-worker");
|
||||
}
|
||||
}
|
||||
3
crates/remora-worker/src/main.rs
Normal file
3
crates/remora-worker/src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("{}", remora_worker::COMPONENT_NAME);
|
||||
}
|
||||
Loading…
Reference in a new issue