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
10 changed files with 65 additions and 0 deletions
2
.config/nextest.toml
Normal file
2
.config/nextest.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[profile.default]
|
||||||
|
fail-fast = false
|
||||||
11
Cargo.lock
generated
Normal file
11
Cargo.lock
generated
Normal 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
8
Cargo.toml
Normal 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"
|
||||||
6
crates/remora-api/Cargo.toml
Normal file
6
crates/remora-api/Cargo.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[package]
|
||||||
|
name = "remora-api"
|
||||||
|
edition.workspace = true
|
||||||
|
publish = false
|
||||||
|
rust-version.workspace = true
|
||||||
|
version.workspace = true
|
||||||
11
crates/remora-api/src/lib.rs
Normal file
11
crates/remora-api/src/lib.rs
Normal 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
3
crates/remora-api/src/main.rs
Normal file
3
crates/remora-api/src/main.rs
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
fn main() {
|
||||||
|
println!("{}", remora_api::COMPONENT_NAME);
|
||||||
|
}
|
||||||
6
crates/remora-worker/Cargo.toml
Normal file
6
crates/remora-worker/Cargo.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[package]
|
||||||
|
name = "remora-worker"
|
||||||
|
edition.workspace = true
|
||||||
|
publish = false
|
||||||
|
rust-version.workspace = true
|
||||||
|
version.workspace = true
|
||||||
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);
|
||||||
|
}
|
||||||
4
rust-toolchain.toml
Normal file
4
rust-toolchain.toml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
[toolchain]
|
||||||
|
channel = "1.97.0"
|
||||||
|
components = ["clippy", "rustfmt"]
|
||||||
|
profile = "minimal"
|
||||||
Loading…
Reference in a new issue