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:
ms2k 2026-07-15 19:51:16 +09:00
commit 66991b85b2
10 changed files with 65 additions and 0 deletions

2
.config/nextest.toml Normal file
View file

@ -0,0 +1,2 @@
[profile.default]
fail-fast = false

11
Cargo.lock generated Normal file
View file

@ -0,0 +1,11 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "remora-api"
version = "0.0.0"
[[package]]
name = "remora-worker"
version = "0.0.0"

8
Cargo.toml Normal file
View file

@ -0,0 +1,8 @@
[workspace]
members = ["crates/remora-api", "crates/remora-worker"]
resolver = "3"
[workspace.package]
edition = "2024"
rust-version = "1.97"
version = "0.0.0"

View file

@ -0,0 +1,6 @@
[package]
name = "remora-api"
edition.workspace = true
publish = false
rust-version.workspace = true
version.workspace = true

View file

@ -0,0 +1,11 @@
pub const COMPONENT_NAME: &str = "remora-api";
#[cfg(test)]
mod tests {
use super::COMPONENT_NAME;
#[test]
fn exposes_component_name() {
assert_eq!(COMPONENT_NAME, "remora-api");
}
}

View file

@ -0,0 +1,3 @@
fn main() {
println!("{}", remora_api::COMPONENT_NAME);
}

View file

@ -0,0 +1,6 @@
[package]
name = "remora-worker"
edition.workspace = true
publish = false
rust-version.workspace = true
version.workspace = true

View 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");
}
}

View file

@ -0,0 +1,3 @@
fn main() {
println!("{}", remora_worker::COMPONENT_NAME);
}

4
rust-toolchain.toml Normal file
View file

@ -0,0 +1,4 @@
[toolchain]
channel = "1.97.0"
components = ["clippy", "rustfmt"]
profile = "minimal"